2011-10-25 00:55:52 +04:00
|
|
|
// mfc1View.h : interface of the Cmfc1View class
|
|
|
|
//
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class Cmfc1View : public CView
|
|
|
|
{
|
|
|
|
protected: // create from serialization only
|
2016-05-16 17:34:04 +03:00
|
|
|
Cmfc1View();
|
|
|
|
DECLARE_DYNCREATE(Cmfc1View)
|
2011-10-25 00:55:52 +04:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
// Attributes
|
2011-10-25 00:55:52 +04:00
|
|
|
public:
|
2016-05-16 17:34:04 +03:00
|
|
|
Cmfc1Doc* GetDocument() const;
|
2011-10-25 00:55:52 +04:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
// Operations
|
|
|
|
public:
|
|
|
|
// Overrides
|
2011-10-25 00:55:52 +04:00
|
|
|
public:
|
2016-05-16 17:34:04 +03:00
|
|
|
virtual void OnDraw(CDC* pDC); // overridden to draw this view
|
|
|
|
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
2011-10-25 00:55:52 +04:00
|
|
|
|
|
|
|
protected:
|
2016-05-16 17:34:04 +03:00
|
|
|
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
|
|
|
|
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
|
|
|
|
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
|
2011-10-25 00:55:52 +04:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
// Implementation
|
2011-10-25 00:55:52 +04:00
|
|
|
public:
|
2016-05-16 17:34:04 +03:00
|
|
|
virtual ~Cmfc1View();
|
2011-10-25 00:55:52 +04:00
|
|
|
#ifdef _DEBUG
|
2016-05-16 17:34:04 +03:00
|
|
|
virtual void AssertValid() const;
|
|
|
|
virtual void Dump(CDumpContext& dc) const;
|
2011-10-25 00:55:52 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
protected:
|
2016-05-16 17:34:04 +03:00
|
|
|
// Generated message map functions
|
2011-10-25 00:55:52 +04:00
|
|
|
protected:
|
2016-05-16 17:34:04 +03:00
|
|
|
DECLARE_MESSAGE_MAP()
|
2011-10-25 00:55:52 +04:00
|
|
|
};
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
#ifndef _DEBUG // debug version in mfc1View.cpp
|
2011-10-25 00:55:52 +04:00
|
|
|
inline Cmfc1Doc* Cmfc1View::GetDocument() const
|
2016-05-16 17:34:04 +03:00
|
|
|
{
|
|
|
|
return reinterpret_cast<Cmfc1Doc*>(m_pDocument);
|
|
|
|
}
|
2011-10-25 00:55:52 +04:00
|
|
|
#endif
|