CoolButton.h
上传用户:ledldq
上传日期:2007-01-04
资源大小:95k
文件大小:2k
- #if !defined(AFX_COOLBUTTON_H__121C99B1_5BC7_11D1_A688_0000B43382FE__INCLUDED_)
- #define AFX_COOLBUTTON_H__121C99B1_5BC7_11D1_A688_0000B43382FE__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // CoolButton.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CCoolButton window
- class CCoolButton : public CButton
- {
- // Construction
- public:
- CCoolButton();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCoolButton)
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- protected:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- CFont fUnderline;
- HCURSOR hHand;
- bool bLBtnDown;
- bool bHighlight;
- virtual ~CCoolButton();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CCoolButton)
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_COOLBUTTON_H__121C99B1_5BC7_11D1_A688_0000B43382FE__INCLUDED_)