cmake/Tests/MFC/mfc1/mfc1View.h

48 lines
998 B
C
Raw Normal View History

2012-02-18 12:40:36 +02:00
// mfc1View.h : interface of the Cmfc1View class
//
#pragma once
class Cmfc1View : public CView
{
protected: // create from serialization only
2016-07-09 11:21:54 +02:00
Cmfc1View();
DECLARE_DYNCREATE(Cmfc1View)
2012-02-18 12:40:36 +02:00
2016-07-09 11:21:54 +02:00
// Attributes
2012-02-18 12:40:36 +02:00
public:
2016-07-09 11:21:54 +02:00
Cmfc1Doc* GetDocument() const;
2012-02-18 12:40:36 +02:00
2016-07-09 11:21:54 +02:00
// Operations
public:
// Overrides
2012-02-18 12:40:36 +02:00
public:
2016-07-09 11:21:54 +02:00
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
2012-02-18 12:40:36 +02:00
protected:
2016-07-09 11:21:54 +02:00
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
2012-02-18 12:40:36 +02:00
2016-07-09 11:21:54 +02:00
// Implementation
2012-02-18 12:40:36 +02:00
public:
2016-07-09 11:21:54 +02:00
virtual ~Cmfc1View();
2012-02-18 12:40:36 +02:00
#ifdef _DEBUG
2016-07-09 11:21:54 +02:00
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
2012-02-18 12:40:36 +02:00
#endif
protected:
2016-07-09 11:21:54 +02:00
// Generated message map functions
2012-02-18 12:40:36 +02:00
protected:
2016-07-09 11:21:54 +02:00
DECLARE_MESSAGE_MAP()
2012-02-18 12:40:36 +02:00
};
2016-07-09 11:21:54 +02:00
#ifndef _DEBUG // debug version in mfc1View.cpp
2012-02-18 12:40:36 +02:00
inline Cmfc1Doc* Cmfc1View::GetDocument() const
2016-07-09 11:21:54 +02:00
{
return reinterpret_cast<Cmfc1Doc*>(m_pDocument);
}
2012-02-18 12:40:36 +02:00
#endif