Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.2 KiB

  1. // InsertionStringMenu.h: interface for the CInsertionStringMenu class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_INSERTIONSTRINGMENU_H__12A665E5_9783_11D3_BE94_0000F87A3912__INCLUDED_)
  5. #define AFX_INSERTIONSTRINGMENU_H__12A665E5_9783_11D3_BE94_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CInsertionStringMenu;
  10. class CHMObject;
  11. class CHiddenWnd : public CWnd
  12. {
  13. // BackPointer
  14. public:
  15. CInsertionStringMenu* m_pMenu;
  16. // Construction/Destruction
  17. public:
  18. CHiddenWnd()
  19. {
  20. m_pMenu = NULL;
  21. }
  22. // Command Handler
  23. protected:
  24. virtual BOOL OnCommand( WPARAM wParam, LPARAM lParam );
  25. };
  26. class CInsertionStringMenu : public CMenu
  27. {
  28. // Construction/Destruction
  29. public:
  30. CInsertionStringMenu();
  31. virtual ~CInsertionStringMenu();
  32. // Create
  33. public:
  34. bool Create(CWnd* pEditControl, CHMObject* pObject, bool bRuleMenu=true);
  35. // Menu Members
  36. public:
  37. void DisplayMenu(CPoint& pt);
  38. BOOL OnCommand( WPARAM wParam, LPARAM lParam );
  39. // Attributes
  40. protected:
  41. CWnd* m_pEditCtl;
  42. CStringArray m_saInsertionStrings;
  43. CHiddenWnd m_HiddenWnd;
  44. };
  45. #endif // !defined(AFX_INSERTIONSTRINGMENU_H__12A665E5_9783_11D3_BE94_0000F87A3912__INCLUDED_)