MyBtn.h 523 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. // CMyBtn
  3. class CMyBtn : public CButton
  4. {
  5. DECLARE_DYNAMIC(CMyBtn)
  6. public:
  7. CMyBtn();
  8. virtual ~CMyBtn();
  9. protected:
  10. DECLARE_MESSAGE_MAP()
  11. public:
  12. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  13. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  14. afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
  15. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  16. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  17. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  18. int m_nClick;
  19. };