// ClientView.cpp : implementation of the CClientView class // #include "stdafx.h" #include "Client.h" #include "ClientDoc.h" #include "ClientView.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CClientView IMPLEMENT_DYNCREATE(CClientView, CView) BEGIN_MESSAGE_MAP(CClientView, CView) END_MESSAGE_MAP() // CClientView construction/destruction CClientView::CClientView() { // TODO: add construction code here } CClientView::~CClientView() { } BOOL CClientView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CView::PreCreateWindow(cs); } // CClientView drawing void CClientView::OnDraw(CDC* /*pDC*/) { CClientDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); if (!pDoc) return; // TODO: add draw code for native data here } // CClientView diagnostics #ifdef _DEBUG void CClientView::AssertValid() const { CView::AssertValid(); } void CClientView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CClientDoc* CClientView::GetDocument() const // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CClientDoc))); return (CClientDoc*)m_pDocument; } #endif //_DEBUG // CClientView message handlers