home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / propdlg / shapedoc.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  56 lines

  1. // shapesdoc.h : interface of the CShapesDoc 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. #include <afxtempl.h>
  14.  
  15. class CShapesDoc : public CDocument
  16. {
  17. protected: // create from serialization only
  18.     CShapesDoc();
  19.     DECLARE_DYNCREATE(CShapesDoc)
  20.  
  21. // Attributes
  22. public:
  23.     CTypedPtrList<CObList, CShape*> m_shapeList;
  24.  
  25. // Operations
  26. public:
  27.     void AddShape(CShape* pShapeNew);
  28.     CShape* HitTest(CPoint pt);
  29.  
  30. // Overrides
  31.     // ClassWizard generate virtual function overrides
  32.     //{{AFX_VIRTUAL(CShapesDoc)
  33.     protected:
  34.     virtual BOOL OnNewDocument();
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CShapesDoc();
  40.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  41. #ifdef _DEBUG
  42.     virtual void AssertValid() const;
  43.     virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45.  
  46. protected:
  47.  
  48. // Generated message map functions
  49. protected:
  50.     //{{AFX_MSG(CShapesDoc)
  51.     //}}AFX_MSG
  52.     DECLARE_MESSAGE_MAP()
  53. };
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56.