OAMFLATBUTTON.H
上传用户:lvjun8202
上传日期:2013-04-30
资源大小:797k
文件大小:2k
源码类别:

SNMP编程

开发平台:

C/C++

  1. #if !defined(AFX_OAMFLATBUTTON_H__112ECEE3_0C04_11D3_BAAE_12345600558E__INCLUDED_)
  2. #define AFX_OAMFLATBUTTON_H__112ECEE3_0C04_11D3_BAAE_12345600558E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // OAMFlatButton.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // COAMFlatButton window
  10. class COAMFlatButton : public CButton
  11. {
  12. // Construction
  13. public:
  14. COAMFlatButton();
  15. // Attributes
  16. public:
  17. protected:
  18. UINT m_nState;
  19. CRect m_rcItem;
  20. BOOL m_bLBtnDown;
  21. BOOL m_bFlatLook;
  22. CSize m_sizeIcon;
  23. COLORREF m_clrHilite;
  24. COLORREF m_clrShadow;
  25. COLORREF m_clrDkShad;
  26. COLORREF m_clrNormal;
  27. COLORREF m_clrTextGy;
  28. COLORREF m_clrTextNm;
  29. BOOL m_bPainted;
  30. // Operations
  31. public:
  32. void DisableFlatLook() { m_bFlatLook = FALSE; }
  33. void SetIcon(HICON hIcon, CSize size);
  34. protected:
  35. virtual void DrawIcon(CDC* pDC);
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(COAMFlatButton)
  39. public:
  40. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. public:
  44. virtual ~COAMFlatButton();
  45. // Generated message map functions
  46. protected:
  47. //{{AFX_MSG(COAMFlatButton)
  48. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  49. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  50. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  51. afx_msg void OnTimer(UINT nIDEvent);
  52. afx_msg void OnSysColorChange();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. /////////////////////////////////////////////////////////////////////////////
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_OAMFLATBUTTON_H__112ECEE3_0C04_11D3_BAAE_12345600558E__INCLUDED_)