// twoPaneView.cpp : implementation of the CTwoPaneView class // #include "stdafx.h" #include "twoPane.h" #include "twoPaneDoc.h" #include "twoPaneView.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CTwoPaneView IMPLEMENT_DYNCREATE(CTwoPaneView, CEditView) BEGIN_MESSAGE_MAP(CTwoPaneView, CEditView) //{{AFX_MSG_MAP(CTwoPaneView) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CTwoPaneView construction/destruction CTwoPaneView::CTwoPaneView() { // TODO: add construction code here } CTwoPaneView::~CTwoPaneView() { } BOOL CTwoPaneView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CEditView::PreCreateWindow(cs); } ///////////////////////////////////////////////////////////////////////////// // CTwoPaneView drawing void CTwoPaneView::OnDraw(CDC* pDC) { CTwoPaneDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CTwoPaneView diagnostics #ifdef _DEBUG void CTwoPaneView::AssertValid() const { CEditView::AssertValid(); } void CTwoPaneView::Dump(CDumpContext& dc) const { CEditView::Dump(dc); } CTwoPaneDoc* CTwoPaneView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTwoPaneDoc))); return (CTwoPaneDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CTwoPaneView message handlers