home *** CD-ROM | disk | FTP | other *** search
/ Using Visual C++ 4 (Special Edition) / Using_Visual_C_4_Special_Edition_QUE_1996.iso / ch09 / autocvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-13  |  1.3 KB  |  53 lines

  1. // autocvw.h : interface of the CClikView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CClikView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CClikView();
  9.     DECLARE_DYNCREATE(CClikView)
  10.  
  11. // Attributes
  12. public:
  13.     CClikDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CClikView)
  21.     public:
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23.     protected:
  24.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  25.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  26.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  27.     //}}AFX_VIRTUAL
  28.  
  29. // Implementation
  30. public:
  31.     virtual ~CClikView();
  32. #ifdef _DEBUG
  33.     virtual void AssertValid() const;
  34.     virtual void Dump(CDumpContext& dc) const;
  35. #endif
  36.  
  37. protected:
  38.  
  39. // Generated message map functions
  40. protected:
  41.     //{{AFX_MSG(CClikView)
  42.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  43.     //}}AFX_MSG
  44.     DECLARE_MESSAGE_MAP()
  45. };
  46.  
  47. #ifndef _DEBUG  // debug version in autocvw.cpp
  48. inline CClikDoc* CClikView::GetDocument()
  49.    { return (CClikDoc*)m_pDocument; }
  50. #endif
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53.