home *** CD-ROM | disk | FTP | other *** search
/ Mastering Microsoft Visual C++ 4 (2nd Edition) / VisualC4.ISO / servdemo / servdevw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-30  |  1.6 KB  |  64 lines

  1. // ServDeVw.h : interface of the CServDemoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CServDemoView : public CView
  6. {
  7. protected:
  8.    CString m_ClassName;
  9.    int m_Dragging;
  10.    HCURSOR m_HCross;
  11.    CPoint m_PointOld;
  12.    CPoint m_PointOrigin;
  13. public:
  14.    CSize m_ViewSize;
  15.  
  16. protected: // create from serialization only
  17.    CServDemoView();
  18.    DECLARE_DYNCREATE(CServDemoView)
  19.  
  20. // Attributes
  21. public:
  22.    CServDemoDoc* GetDocument();
  23.  
  24. // Operations
  25. public:
  26.  
  27. // Overrides
  28.    // ClassWizard generated virtual function overrides
  29.    //{{AFX_VIRTUAL(CServDemoView)
  30.    public:
  31.    virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  32.    virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33.    protected:
  34.    //}}AFX_VIRTUAL
  35.  
  36. // Implementation
  37. public:
  38.    virtual ~CServDemoView();
  39. #ifdef _DEBUG
  40.    virtual void AssertValid() const;
  41.    virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43.  
  44. protected:
  45.  
  46. // Generated message map functions
  47. protected:
  48.    //{{AFX_MSG(CServDemoView)
  49.    afx_msg void OnCancelEditSrvr();
  50.    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  51.    afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  52.    afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  53.    afx_msg void OnSize(UINT nType, int cx, int cy);
  54.    //}}AFX_MSG
  55.    DECLARE_MESSAGE_MAP()
  56. };
  57.  
  58. #ifndef _DEBUG  // debug version in ServDeVw.cpp
  59. inline CServDemoDoc* CServDemoView::GetDocument()
  60.    { return (CServDemoDoc*)m_pDocument; }
  61. #endif
  62.  
  63. /////////////////////////////////////////////////////////////////////////////
  64.