MenuDlg.h 527 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "DlgControlItem.h"
  3. // CMenuDlg 对话框
  4. class CMenuDlg : public CDlgControlItem
  5. {
  6. DECLARE_DYNAMIC(CMenuDlg)
  7. protected:
  8. CMenu m_MenuBar;
  9. public:
  10. CMenuDlg(CWnd* pParent = NULL); // 标准构造函数
  11. virtual ~CMenuDlg();
  12. protected:
  13. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  14. DECLARE_MESSAGE_MAP()
  15. public:
  16. virtual BOOL OnInitDialog();
  17. //鼠标右键
  18. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  19. protected:
  20. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  21. };