RibbonMDISampleView.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // RibbonMDISampleView.h : interface of the CRibbonMDISampleView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_RIBBONMDISAMPLEVIEW_H__1DA10B36_73A6_4712_A870_CD24CE1D8969__INCLUDED_)
  5. #define AFX_RIBBONMDISAMPLEVIEW_H__1DA10B36_73A6_4712_A870_CD24CE1D8969__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CRibbonMDISampleCntrItem;
  10. class CRibbonMDISampleView : public CRichEditView
  11. {
  12. protected: // create from serialization only
  13. CRibbonMDISampleView();
  14. DECLARE_DYNCREATE(CRibbonMDISampleView)
  15. // Attributes
  16. public:
  17. CRibbonMDISampleDoc* GetDocument();
  18. // Operations
  19. public:
  20. // Overrides
  21. // ClassWizard generated virtual function overrides
  22. //{{AFX_VIRTUAL(CRibbonMDISampleView)
  23. public:
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. protected:
  26. virtual void OnInitialUpdate(); // called first time after construct
  27. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. public:
  31. virtual ~CRibbonMDISampleView();
  32. #ifdef _DEBUG
  33. virtual void AssertValid() const;
  34. virtual void Dump(CDumpContext& dc) const;
  35. #endif
  36. protected:
  37. void OnFilePrintPreview();
  38. // Generated message map functions
  39. protected:
  40. //{{AFX_MSG(CRibbonMDISampleView)
  41. // NOTE - the ClassWizard will add and remove member functions here.
  42. //    DO NOT EDIT what you see in these blocks of generated code !
  43. afx_msg void OnDestroy();
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. };
  47. #ifndef _DEBUG  // debug version in RibbonMDISampleView.cpp
  48. inline CRibbonMDISampleDoc* CRibbonMDISampleView::GetDocument()
  49.    { return (CRibbonMDISampleDoc*)m_pDocument; }
  50. #endif
  51. /////////////////////////////////////////////////////////////////////////////
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_RIBBONMDISAMPLEVIEW_H__1DA10B36_73A6_4712_A870_CD24CE1D8969__INCLUDED_)