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

  1. // gridfrms.h : header file
  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. #ifndef _GRIDFRMS_H_
  16. #define _GRIDFRMS_H_
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CMyMultiDocTemplate Template
  20.  
  21. // this derived class allows me to change the view class at runtime,
  22. // which is usable for creating dynamic spliiter views based on the
  23. // current ciew class.
  24.  
  25. class CMyMultiDocTemplate: public CMultiDocTemplate
  26. {
  27. public:
  28.     CMyMultiDocTemplate(UINT nIDResource, CRuntimeClass* pDocClass,
  29.         CRuntimeClass* pFrameClass, CRuntimeClass* pViewClass)
  30.         : CMultiDocTemplate(nIDResource, pDocClass, pFrameClass, pViewClass)
  31.         { }
  32.  
  33.     // need access to the m_pViewClass member
  34.     void SetViewClass(CRuntimeClass* pViewClass)
  35.     {
  36.         m_pViewClass = pViewClass;
  37.     }
  38. };
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CSplitterMDIChildWnd frame
  42.  
  43. class CSplitterMDIChildWnd : public CMDIChildWnd
  44. {
  45.     DECLARE_DYNCREATE(CSplitterMDIChildWnd)
  46. protected:
  47.     CSplitterMDIChildWnd();            // protected constructor used by dynamic creation
  48.  
  49. // Attributes
  50. public:
  51.     CSplitterWnd
  52.             m_wndSplitter;
  53.  
  54. // Operations
  55. public:
  56.  
  57. // Implementation
  58. protected:
  59.     virtual ~CSplitterMDIChildWnd();
  60.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  61.  
  62.     // Generated message map functions
  63.     //{{AFX_MSG(CSplitterMDIChildWnd)
  64.     //}}AFX_MSG
  65.     DECLARE_MESSAGE_MAP()
  66. };
  67.  
  68. #endif // _GRIDFRMS_H_
  69. /////////////////////////////////////////////////////////////////////////////
  70.