// ClientView.h : interface of the CClientView class // #pragma once class CClientView : public CView { protected: // create from serialization only CClientView(); DECLARE_DYNCREATE(CClientView) // Attributes public: CClientDoc* GetDocument() const; // Operations public: // Overrides public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: // Implementation public: virtual ~CClientView(); #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 ClientView.cpp inline CClientDoc* CClientView::GetDocument() const { return reinterpret_cast(m_pDocument); } #endif