OAMFLATBUTTON.H
上传用户:lvjun8202
上传日期:2013-04-30
资源大小:797k
文件大小:2k
- #if !defined(AFX_OAMFLATBUTTON_H__112ECEE3_0C04_11D3_BAAE_12345600558E__INCLUDED_)
- #define AFX_OAMFLATBUTTON_H__112ECEE3_0C04_11D3_BAAE_12345600558E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // OAMFlatButton.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // COAMFlatButton window
- class COAMFlatButton : public CButton
- {
- // Construction
- public:
- COAMFlatButton();
- // Attributes
- public:
- protected:
- UINT m_nState;
- CRect m_rcItem;
- BOOL m_bLBtnDown;
- BOOL m_bFlatLook;
- CSize m_sizeIcon;
- COLORREF m_clrHilite;
- COLORREF m_clrShadow;
- COLORREF m_clrDkShad;
- COLORREF m_clrNormal;
- COLORREF m_clrTextGy;
- COLORREF m_clrTextNm;
- BOOL m_bPainted;
- // Operations
- public:
- void DisableFlatLook() { m_bFlatLook = FALSE; }
- void SetIcon(HICON hIcon, CSize size);
- protected:
- virtual void DrawIcon(CDC* pDC);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(COAMFlatButton)
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~COAMFlatButton();
- // Generated message map functions
- protected:
- //{{AFX_MSG(COAMFlatButton)
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnSysColorChange();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_OAMFLATBUTTON_H__112ECEE3_0C04_11D3_BAAE_12345600558E__INCLUDED_)