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 / gridsvw4.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-27  |  1.6 KB  |  72 lines

  1. // gridsvw4.h : interface of the CGridSample4View 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.  
  16. #ifndef _MYGRIDVW_H_
  17. #include "mygridvw.h"
  18. #endif
  19.  
  20. class CMyProperties : public CGXProperties
  21. {
  22.     DECLARE_SERIAL(CMyProperties)
  23. public:
  24.     CMyProperties();
  25.  
  26.     // substitute tokens
  27.     virtual CString SubstTokenText(int nToken, CString& sRest);
  28.  
  29. protected:
  30.     int m_nTokDate;
  31.     int m_nTokText;
  32. };
  33.  
  34. class CGridSample4View : public CMyGridView
  35. {
  36. protected: // create from serialization only
  37.     CGridSample4View();
  38.     DECLARE_DYNCREATE(CGridSample4View)
  39.  
  40. // Attributes
  41. public:
  42.     CGridSampleDoc* GetDocument();
  43.  
  44. // Operations
  45.     BOOL ConnectParam();
  46.     void SetupProperties();
  47.  
  48. // Implementation
  49. public:
  50.     virtual ~CGridSample4View();
  51.     virtual void OnInitialUpdate();
  52. #ifdef _DEBUG
  53.     virtual void AssertValid() const;
  54.     virtual void Dump(CDumpContext& dc) const;
  55. #endif
  56.  
  57. // Generated message map functions
  58. protected:
  59.     //{{AFX_MSG(CGridSample4View)
  60.     afx_msg void OnViewUseractions();
  61.     afx_msg void OnViewSplitterview();
  62.     //}}AFX_MSG
  63.     DECLARE_MESSAGE_MAP()
  64. };
  65.  
  66. #ifndef _DEBUG  // debug version in gridsvw.cpp
  67. inline CGridSampleDoc* CGridSample4View::GetDocument()
  68.    { return (CGridSampleDoc*) m_pDocument; }
  69. #endif
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72.