PropertyGridInplaceButton.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. // class forwards
  3. class CPropertyGridView;
  4. class CPropertyGridItem;
  5. //////////////////////////////////////////////////////////////////////
  6. // CPropertyGridInplaceButton is a CStatic derived class.
  7. // It is an internal class used by Property Grid control
  8. //
  9. class CPropertyGridInplaceButton : public CStatic
  10. {
  11. DECLARE_DYNAMIC(CPropertyGridInplaceButton)
  12. public:
  13. CPropertyGridInplaceButton();
  14. virtual ~CPropertyGridInplaceButton();
  15. virtual void HideWindow();
  16. virtual void Create(CPropertyGridItem* pItem, CRect rect);
  17. virtual void DestroyItem();
  18. private:
  19. CWnd* m_pGrid;
  20. CPropertyGridItem* m_pItem;
  21. BOOL m_bPressed;
  22. BOOL m_bOver;
  23. protected:
  24. //{{AFX_VIRTUAL(CPropertyGridInplaceButton)
  25. //}}AFX_VIRTUAL
  26. //{{AFX_MSG(CPropertyGridInplaceButton)
  27. afx_msg void OnPaint();
  28. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  29. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  30. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  31. afx_msg void OnCaptureChanged(CWnd *pWnd);
  32. //}}AFX_MSG
  33. DECLARE_MESSAGE_MAP()
  34. friend class CPropertyGridItem;
  35. };