123456789101112131415161718192021222324252627282930313233 |
- // ButtonExt.h: interface for the CButtonExt class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_BUTTONEXT_H__89B645C4_311D_4364_B810_6BB77A628FDA__INCLUDED_)
- #define AFX_BUTTONEXT_H__89B645C4_311D_4364_B810_6BB77A628FDA__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /*
- * Button Procduce Routine
- */
- #define STATUS_BUTTON_NORMAL 0x00000000
- #define STATUS_BUTTON_HOVER 0x00000001
- #define STATUS_BUTTON_DOWN 0x00000002
- class CButtonExt
- {
- public:
- CButtonExt();
- virtual ~CButtonExt();
- static UINT m_nStatus;
- static WNDPROC m_cWndProc;
- static LRESULT DefWindowProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam );
- static LRESULT OnLButtonDown( CWnd *pWnd, UINT nFlags, CPoint point );
- static LRESULT OnLButtonUp( CWnd *pWnd, UINT nFlags, CPoint point ) ;
- static LRESULT OnMouseMove( CWnd *pWnd, UINT nFlags, CPoint point );
- static LRESULT OnPaint( CWnd *pWnd );
- static void DrawInsideBorder(CDC *pDC, CRect* rect);
- static void DoGradientFill(CDC *pDC, CRect* rect);
- };
- #endif // !defined(AFX_BUTTONEXT_H__89B645C4_311D_4364_B810_6BB77A628FDA__INCLUDED_)
|