www.pudn.com > OCXDemo.rar > OCXDemoView.h
// OCXDemoView.h : interface of the COCXDemoView class
//
/////////////////////////////////////////////////////////////////////////////
class COCXDemoView : public CView
{
protected: // create from serialization only
COCXDemoView();
DECLARE_DYNCREATE(COCXDemoView)
// Attributes
public:
COCXDemoDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COCXDemoView)
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);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~COCXDemoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(COCXDemoView)
afx_msg void OnAppAbout();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in OCXDemoView.cpp
inline COCXDemoDoc* COCXDemoView::GetDocument()
{ return (COCXDemoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////