MyButton.h
上传用户:baina_li
上传日期:2013-03-23
资源大小:960k
文件大小:1k
源码类别:

射击游戏

开发平台:

Visual C++

  1. #if !defined(AFX_MYBUTTON_H__FBC28227_EA9A_11D6_9001_AE8F2895A429__INCLUDED_)
  2. #define AFX_MYBUTTON_H__FBC28227_EA9A_11D6_9001_AE8F2895A429__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // MyButton.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMyButton window
  10. class CMyButton : public CButton
  11. {
  12. // Construction
  13. public:
  14. CMyButton();
  15. // Attributes
  16. public:
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CMyButton)
  22. public:
  23. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. public:
  27. void SetMyBitmap(UINT nID);
  28. CBitmap m_bmp;
  29. virtual ~CMyButton();
  30. // Generated message map functions
  31. protected:
  32. //{{AFX_MSG(CMyButton)
  33. // NOTE - the ClassWizard will add and remove member functions here.
  34. //}}AFX_MSG
  35. DECLARE_MESSAGE_MAP()
  36. };
  37. /////////////////////////////////////////////////////////////////////////////
  38. //{{AFX_INSERT_LOCATION}}
  39. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  40. #endif // !defined(AFX_MYBUTTON_H__FBC28227_EA9A_11D6_9001_AE8F2895A429__INCLUDED_)