MyBtn.h
上传用户:cesper001
上传日期:2007-01-01
资源大小:50k
文件大小:1k
源码类别:

按钮控件

开发平台:

Visual C++

  1. #if !defined(AFX_MYBTN_H__289CB976_3A41_11D1_9774_004033298A13__INCLUDED_)
  2. #define AFX_MYBTN_H__289CB976_3A41_11D1_9774_004033298A13__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // MyBtn.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMyBtn window
  10. class CMyBtn : public CButton
  11. {
  12. // Construction
  13. public:
  14. CMyBtn();
  15. // Attributes
  16. public:
  17. // Operations
  18. public:
  19. void DrawWhiteText(CDC* pDC, CRect* pRect, CString& text );
  20. void GradientFill (CDC* pDC, CRect* pRect);
  21. void SetRound(void);
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CMyBtn)
  25. public:
  26. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. public:
  30. virtual ~CMyBtn();
  31. // Generated message map functions
  32. protected:
  33. //{{AFX_MSG(CMyBtn)
  34. // NOTE - the ClassWizard will add and remove member functions here.
  35. //}}AFX_MSG
  36. DECLARE_MESSAGE_MAP()
  37. };
  38. /////////////////////////////////////////////////////////////////////////////
  39. //{{AFX_INSERT_LOCATION}}
  40. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  41. #endif // !defined(AFX_MYBTN_H__289CB976_3A41_11D1_9774_004033298A13__INCLUDED_)