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

按钮控件

开发平台:

Visual C++

  1. // ex11View.h : interface of the CEx11View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_EX11VIEW_H__289CB96E_3A41_11D1_9774_004033298A13__INCLUDED_)
  5. #define AFX_EX11VIEW_H__289CB96E_3A41_11D1_9774_004033298A13__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #include "MyBtn.h"
  10. class CEx11View : public CFormView
  11. {
  12. protected: // create from serialization only
  13. CEx11View();
  14. DECLARE_DYNCREATE(CEx11View)
  15. public:
  16. //{{AFX_DATA(CEx11View)
  17. enum{ IDD = IDD_EX11_FORM };
  18. // NOTE: the ClassWizard will add data members here
  19. //}}AFX_DATA
  20. // Attributes
  21. public:
  22. CEx11Doc* GetDocument();
  23. CMyBtn    m_MyBtn;
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CEx11View)
  29. public:
  30. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  31. virtual void OnInitialUpdate();
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  34. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  35. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  36. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  37. virtual void OnPrint(CDC* pDC, CPrintInfo*);
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. public:
  41. virtual ~CEx11View();
  42. #ifdef _DEBUG
  43. virtual void AssertValid() const;
  44. virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46. protected:
  47. // Generated message map functions
  48. protected:
  49. //{{AFX_MSG(CEx11View)
  50. // NOTE - the ClassWizard will add and remove member functions here.
  51. //    DO NOT EDIT what you see in these blocks of generated code !
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. };
  55. #ifndef _DEBUG  // debug version in ex11View.cpp
  56. inline CEx11Doc* CEx11View::GetDocument()
  57.    { return (CEx11Doc*)m_pDocument; }
  58. #endif
  59. /////////////////////////////////////////////////////////////////////////////
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_EX11VIEW_H__289CB96E_3A41_11D1_9774_004033298A13__INCLUDED_)