Go to the documentation of this file.00001
00002 #ifndef AFX_VGUIMFCVIEW_H__E03278BF_9B92_4B98_A4EF_43C38014407A__INCLUDED_
00003 #define AFX_VGUIMFCVIEW_H__E03278BF_9B92_4B98_A4EF_43C38014407A__INCLUDED_
00004
00005
00006
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:
00017 vgui_mfc_view();
00018 DECLARE_DYNCREATE(vgui_mfc_view)
00019
00020
00021 public:
00022 CDocument* GetDocument();
00023
00024
00025 public:
00026
00027
00028
00029
00030 public:
00031 virtual void OnDraw(CDC* pDC);
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
00038
00039
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
00048 protected:
00049
00050 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00051
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
00065
00066
00067 #endif // AFX_VGUIMFCVIEW_H__E03278BF_9B92_4B98_A4EF_43C38014407A__INCLUDED_