home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / stingray / gridsdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-27  |  1.6 KB  |  56 lines

  1. // gridsdoc.h : interface of the CGridSampleDoc class
  2. //
  3.  
  4. // This is a part of the Objective Grid C++ Library.
  5. // Copyright (C) 1995,1996 ClassWorks, Stefan Hoenig.
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to
  9. // the Objective Grid Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding
  12. // the Objective Grid product.
  13. //
  14.  
  15. class CGridSampleDoc : public CDocument
  16. {
  17. protected: // create from serialization only
  18.     CGridSampleDoc();
  19.     DECLARE_DYNCREATE(CGridSampleDoc)
  20.  
  21. // Attributes
  22. public:
  23.     CObArray    m_ParamArray;
  24.     CByteArray  m_bOwnParamArray;
  25.  
  26. // Operations
  27. public:
  28.     CObject* GetParam(int nViewID);
  29.     void SetParam(int nViewID, CObject* pParam, BOOL bMustDelete = TRUE);
  30.  
  31. // Implementation
  32. public:
  33.     virtual ~CGridSampleDoc();
  34.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  35. #ifdef _DEBUG
  36.     virtual void AssertValid() const;
  37.     virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39. protected:
  40.     virtual BOOL OnNewDocument();
  41.     virtual BOOL OnOpenDocument(LPCTSTR pszPathName);
  42.     virtual BOOL OnSaveDocument(LPCTSTR pszPathName);
  43.     virtual void DeleteContents();
  44.     virtual BOOL CanCloseFrame(CFrameWnd* pFrame);
  45.  
  46. // Generated message map functions
  47. protected:
  48.     //{{AFX_MSG(CGridSampleDoc)
  49.         // NOTE - the ClassWizard will add and remove member functions here.
  50.         //    DO NOT EDIT what you see in these blocks of generated code !
  51.     //}}AFX_MSG
  52.     DECLARE_MESSAGE_MAP()
  53. };
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56.