DemoView.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // DemoView.h : interface of the CDemoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DEMOVIEW_H__3D2A41E4_C897_4064_AD75_DC3F1B237D00__INCLUDED_)
  5. #define AFX_DEMOVIEW_H__3D2A41E4_C897_4064_AD75_DC3F1B237D00__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. CStatic m_icon1;
  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. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. virtual void OnInitialUpdate(); // called first time after construct
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. void DialogToFormView();
  36. void FormViewToDialog();
  37. virtual ~CDemoView();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. // Generated message map functions
  43. protected:
  44. //{{AFX_MSG(CDemoView)
  45. afx_msg void OnButton2();
  46. afx_msg void OnButton1();
  47. afx_msg void OnRadio2();
  48. afx_msg void OnRadio1();
  49. virtual BOOL OnInitDialog();
  50. afx_msg void OnRadio3();
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. };
  54. #ifndef _DEBUG // debug version in DemoView.cpp
  55. inline CDemoDoc* CDemoView::GetDocument()
  56. { return (CDemoDoc*)m_pDocument; }
  57. #endif
  58. /////////////////////////////////////////////////////////////////////////////
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_DEMOVIEW_H__3D2A41E4_C897_4064_AD75_DC3F1B237D00__INCLUDED_)