CaptionDemoView.h
上传用户:zhoushen
上传日期:2022-06-15
资源大小:84k
文件大小:2k
源码类别:

对话框与窗口

开发平台:

Visual C++

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