// child_mfcView.h : interface of the Cchild_mfcView class
//
#pragma once
#include "afxwin.h"
#include "child.h"
class Cchild_mfcView : public CView
{
protected: // create from serialization only
Cchild_mfcView();
DECLARE_DYNCREATE(Cchild_mfcView)
// Attributes
public:
Cchild_mfcDoc* 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 ~Cchild_mfcView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
public:
Cchild* m_pchild;
CString m_name;
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnShow();
afx_msg void OnSend();
};
#ifndef _DEBUG // debug version in child_mfcView.cpp
inline Cchild_mfcDoc* Cchild_mfcView::GetDocument() const
{ return reinterpret_cast<Cchild_mfcDoc*>(m_pDocument); }
#endif