|
// [!output PROJECT_NAME]View.h : interface of the C[!output PROJECT_NAME]View class
//
#pragma once
class C[!output PROJECT_NAME]Doc;
class C[!output PROJECT_NAME]View : public CView
{
protected: // create from serialization only
C[!output PROJECT_NAME]View();
DECLARE_DYNCREATE(C[!output PROJECT_NAME]View)
// Attributes
public:
C[!output PROJECT_NAME]Doc* GetDocument() const;
// Operations
public:
// Overrides
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
// Implementation
public:
virtual ~C[!output PROJECT_NAME]View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in [!output PROJECT_NAME]View.cpp
inline C[!output PROJECT_NAME]Doc* C[!output PROJECT_NAME]View::GetDocument() const
{ return reinterpret_cast<C[!output PROJECT_NAME]Doc*>(m_pDocument); }
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here