#endif // !defined(AFX_MYPREVIEWVIEW_H__9FCA8680_907C_11D3_8412_9D0C7145F5C4__INCLUDED_)
WrapperView.h
1 //WrapperView.h
2
3 #if !defined(AFX_WRAPPERVIEW_H__AC579D20_8E3D_11D3_8410_E1CD9A2C01DC__INCLUDED_)
4 #define AFX_WRAPPERVIEW_H__AC579D20_8E3D_11D3_8410_E1CD9A2C01DC__INCLUDED_
5
6 #if _MSC_VER > 1000
7 #pragma once
8 #endif // _MSC_VER > 1000
9 // WrapperView.h : header file
10 //
11
12 #include "MyPreviewView.h"
13 #include "MainFrm.h"
14
15 /////////////////////////////////////////////////////////////////////////////
16 // CWrapperView view
17
18 class CWrapperView : public CScrollView
19 {
20 protected:
21 DECLARE_DYNCREATE(CWrapperView)
22
23 CFrameWnd* m_pFrameWnd;
24 public:
25 CWrapperView();
26 virtual ~CWrapperView();
27
28 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
29 void OnFilePrintPreview(CFrameWnd *pFrame);
30 BOOL DoPrintPreview(UINT nIDResource, CView* pPrintView,CRuntimeClass*
pPreviewViewClass, CPrintPreviewState* pState);
31 void OnEndPrintPreview(CDC* pDC, CPrintInfo* pInfo,POINT, CMyPreviewView* pView);
32 // Overrides
33 // ClassWizard generated virtual function overrides
34 //{{AFX_VIRTUAL(CWrapperView)
35 protected:
36 virtual void OnPrint(CDC* pDC,CPrintInfo* pInfo); // overridden to draw this
view