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

  1. // autocdoc.h : interface of the CClikDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CClikDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     CClikDoc();
  9.     DECLARE_DYNCREATE(CClikDoc)
  10.  
  11. // Attributes
  12. public:
  13.     CPoint m_pt;
  14. // Operations
  15. public:
  16.  
  17. // Overrides
  18.     // ClassWizard generated virtual function overrides
  19.     //{{AFX_VIRTUAL(CClikDoc)
  20.     public:
  21.     virtual BOOL OnNewDocument();
  22.     //}}AFX_VIRTUAL
  23.  
  24. // Implementation
  25. public:
  26.     virtual ~CClikDoc();
  27.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  28. #ifdef _DEBUG
  29.     virtual void AssertValid() const;
  30.     virtual void Dump(CDumpContext& dc) const;
  31. #endif
  32.  
  33. protected:
  34.  
  35. // Generated message map functions
  36. protected:
  37.     //{{AFX_MSG(CClikDoc)
  38.     afx_msg void OnEditChangetext();
  39.     //}}AFX_MSG
  40.     DECLARE_MESSAGE_MAP()
  41.  
  42.     // Generated OLE dispatch map functions
  43. public:
  44.     //{{AFX_DISPATCH(CClikDoc)
  45.     CString m_str;
  46.     afx_msg short GetX();
  47.     afx_msg void SetX(short nNewValue);
  48.     afx_msg short GetY();
  49.     afx_msg void SetY(short nNewValue);
  50.     afx_msg LPDISPATCH GetPosition();
  51.     afx_msg void SetPosition(LPDISPATCH newValue);
  52.     afx_msg void Refresh();
  53.     afx_msg void SetAllProps(short x, short y, LPCTSTR text);
  54.     afx_msg void ShowWindow();
  55.     //}}AFX_DISPATCH
  56.     DECLARE_DISPATCH_MAP()
  57. };
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60.