Debian Codegraph @

Tests/MFC/mfc1/mfc1View.h

raw
1 // mfc1View.h : interface of the Cmfc1View class
2 //
3
4 #pragma once
5
6 class Cmfc1View : public CView
7 {
8 protected: // create from serialization only
9 Cmfc1View();
10 DECLARE_DYNCREATE(Cmfc1View)
11
12 // Attributes
13 public:
14 Cmfc1Doc* GetDocument() const;
15
16 // Operations
17 public:
18 // Overrides
19 public:
20 virtual void OnDraw(CDC* pDC); // overridden to draw this view
21 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
22
23 protected:
24 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
25 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
26 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
27
28 // Implementation
29 public:
30 virtual ~Cmfc1View();
31 #ifdef _DEBUG
32 virtual void AssertValid() const;
33 virtual void Dump(CDumpContext& dc) const;
34 #endif
35
36 protected:
37 // Generated message map functions
38 protected:
39 DECLARE_MESSAGE_MAP()
40 };
41
42 #ifndef _DEBUG // debug version in mfc1View.cpp
43 inline Cmfc1Doc* Cmfc1View::GetDocument() const
44 {
45 return reinterpret_cast<Cmfc1Doc*>(m_pDocument);
46 }
47 #endif