DemoView.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // DemoView.h : interface of the CDemoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DEMOVIEW_H__20781705_5C0F_4E72_ACAE_50F448A9B9DC__INCLUDED_)
  5. #define AFX_DEMOVIEW_H__20781705_5C0F_4E72_ACAE_50F448A9B9DC__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "ResizableFormView.h"
  10. class CDemoView : public CResizableFormView
  11. {
  12. protected: // create from serialization only
  13. CDemoView();
  14. DECLARE_DYNCREATE(CDemoView)
  15. public:
  16. //{{AFX_DATA(CDemoView)
  17. enum{ IDD = IDD_DEMO_FORM };
  18. // NOTE: the ClassWizard will add data members here
  19. //}}AFX_DATA
  20. // Attributes
  21. public:
  22. CDemoDoc* GetDocument();
  23. // Operations
  24. public:
  25. // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CDemoView)
  28. public:
  29. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  30. protected:
  31. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  32. virtual void OnInitialUpdate(); // called first time after construct
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. public:
  36. virtual ~CDemoView();
  37. #ifdef _DEBUG
  38. virtual void AssertValid() const;
  39. virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41. protected:
  42. // Generated message map functions
  43. protected:
  44. //{{AFX_MSG(CDemoView)
  45. virtual BOOL OnInitDialog();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. #ifndef _DEBUG // debug version in DemoView.cpp
  50. inline CDemoDoc* CDemoView::GetDocument()
  51. { return (CDemoDoc*)m_pDocument; }
  52. #endif
  53. /////////////////////////////////////////////////////////////////////////////
  54. //{{AFX_INSERT_LOCATION}}
  55. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  56. #endif // !defined(AFX_DEMOVIEW_H__20781705_5C0F_4E72_ACAE_50F448A9B9DC__INCLUDED_)