PropertyGridItemButton.h 784 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. class CPropertyGridItemButton : public CPropertyGridItem
  3. {
  4. public:
  5. // 构造函数,参数说明:
  6. // strCaption -属性名称
  7. // hNotifyWnd -接收自定义消息的窗口句柄
  8. // hNotifyMsg -自定义消息
  9. CPropertyGridItemButton(CString strCaption, HWND hNotifyWnd, UINT nNotifyMsg);
  10. // 构造函数,参数说明:
  11. // nID -属性ID
  12. // hNotifyWnd -接收自定义消息的窗口句柄
  13. // hNotifyMsg -自定义消息
  14. CPropertyGridItemButton(UINT nID, HWND hNotifyWnd, UINT nNotifyMsg);
  15. virtual ~CPropertyGridItemButton();
  16. protected:
  17. // 当用户点击按钮时,调用此虚函数
  18. virtual void OnInplaceButtonDown();
  19. // 当用户双击属性项时,调用此虚函数
  20. virtual void OnLButtonDblClk();
  21. HWND m_hNotifyWnd; // 接收自定义消息的窗口句柄
  22. UINT m_nNotifyMsg; // 自定义消息
  23. };