#pragma once // CMyBtn class CMyBtn : public CButton { DECLARE_DYNAMIC(CMyBtn) public: CMyBtn(); virtual ~CMyBtn(); protected: DECLARE_MESSAGE_MAP() public: afx_msg void OnRButtonUp(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); int m_nClick; };