home *** CD-ROM | disk | FTP | other *** search
/ Using Visual C++ 4 (Special Edition) / Using_Visual_C_4_Special_Edition_QUE_1996.iso / ch08 / oserver / oserve~2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-22  |  1.3 KB  |  53 lines

  1. // OServerView.h : interface of the COServerView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class COServerView : public CView
  6. {
  7. protected: // create from serialization only
  8.     COServerView();
  9.     DECLARE_DYNCREATE(COServerView)
  10.  
  11. // Attributes
  12. public:
  13.     COServerDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(COServerView)
  21.     public:
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  24.     protected:
  25.     //}}AFX_VIRTUAL
  26.  
  27. // Implementation
  28. public:
  29.     virtual ~COServerView();
  30. #ifdef _DEBUG
  31.     virtual void AssertValid() const;
  32.     virtual void Dump(CDumpContext& dc) const;
  33. #endif
  34.  
  35. protected:
  36.  
  37. // Generated message map functions
  38. protected:
  39.     //{{AFX_MSG(COServerView)
  40.         // NOTE - the ClassWizard will add and remove member functions here.
  41.         //    DO NOT EDIT what you see in these blocks of generated code !
  42.     afx_msg void OnCancelEditSrvr();
  43.     //}}AFX_MSG
  44.     DECLARE_MESSAGE_MAP()
  45. };
  46.  
  47. #ifndef _DEBUG  // debug version in OServerView.cpp
  48. inline COServerDoc* COServerView::GetDocument()
  49.    { return (COServerDoc*)m_pDocument; }
  50. #endif
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53.