home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / acdual / server / aclikvw.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  2KB  |  63 lines

  1. // AClikVw.h : interface of the CAutoClickView class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12. /////////////////////////////////////////////////////////////////////////////
  13.  
  14. class CAutoClickView : public CView
  15. {
  16. protected: // create from serialization only
  17.     CAutoClickView();
  18.     DECLARE_DYNCREATE(CAutoClickView)
  19.  
  20. // Attributes
  21. public:
  22.     CAutoClickDoc* GetDocument();
  23.  
  24. // Operations
  25. public:
  26.  
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CAutoClickView)
  30.     public:
  31.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  32.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33.     protected:
  34.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  35.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  36.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  37.     //}}AFX_VIRTUAL
  38.  
  39. // Implementation
  40. public:
  41.     virtual ~CAutoClickView();
  42. #ifdef _DEBUG
  43.     virtual void AssertValid() const;
  44.     virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46.  
  47. protected:
  48.  
  49. // Generated message map functions
  50. protected:
  51.     //{{AFX_MSG(CAutoClickView)
  52.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  53.     //}}AFX_MSG
  54.     DECLARE_MESSAGE_MAP()
  55. };
  56.  
  57. #ifndef _DEBUG  // debug version in ClikView.cpp
  58. inline CAutoClickDoc* CAutoClickView::GetDocument()
  59.    { return (CAutoClickDoc*)m_pDocument; }
  60. #endif
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63.