core/vgui/impl/mfc/vgui_mfc_view.h
Go to the documentation of this file.
00001 // This is core/vgui/impl/mfc/vgui_mfc_view.h
00002 #ifndef AFX_VGUIMFCVIEW_H__E03278BF_9B92_4B98_A4EF_43C38014407A__INCLUDED_
00003 #define AFX_VGUIMFCVIEW_H__E03278BF_9B92_4B98_A4EF_43C38014407A__INCLUDED_
00004 //:
00005 // \file
00006 // \author  Oxford RRG
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include <vgui/impl/mfc/vgui_mfc_adaptor.h>
00013 
00014 class vgui_mfc_view : public vgui_mfc_adaptor
00015 {
00016  protected: // create from serialization only
00017   vgui_mfc_view();
00018   DECLARE_DYNCREATE(vgui_mfc_view)
00019 
00020   // Attributes
00021  public:
00022   CDocument* GetDocument();
00023 
00024   // Operations
00025  public:
00026 
00027   // Overrides
00028   // ClassWizard generated virtual function overrides
00029   //{{AFX_VIRTUAL(CAwfmfcView)
00030  public:
00031   virtual void OnDraw(CDC* pDC);  // overridden to draw this view
00032   virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00033  protected:
00034   virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
00035   virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
00036   virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
00037   //}}AFX_VIRTUAL
00038 
00039   // Implementation
00040  public:
00041   virtual ~vgui_mfc_view();
00042 #ifdef _DEBUG
00043   virtual void AssertValid() const;
00044   virtual void Dump(CDumpContext& dc) const;
00045 #endif
00046 
00047   // Generated message map functions
00048  protected:
00049   //{{AFX_MSG(vgui_mfc_view)
00050   afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00051   //}}AFX_MSG
00052   DECLARE_MESSAGE_MAP()
00053 };
00054 
00055 #ifndef _DEBUG  // debug version in awfmfcView.cpp
00056 inline CDocument* vgui_mfc_view::GetDocument()
00057 {
00058   return (CDocument*)m_pDocument;
00059 }
00060 #endif
00061 
00062 /////////////////////////////////////////////////////////////////////////////
00063 
00064 //{{AFX_INSERT_LOCATION}}
00065 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00066 
00067 #endif // AFX_VGUIMFCVIEW_H__E03278BF_9B92_4B98_A4EF_43C38014407A__INCLUDED_