home *** CD-ROM | disk | FTP | other *** search
- // gridfrms.h : header file
- //
-
- // This is a part of the Objective Grid C++ Library.
- // Copyright (C) 1995,1996 ClassWorks, Stefan Hoenig.
- // All rights reserved.
- //
- // This source code is only intended as a supplement to
- // the Objective Grid Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding
- // the Objective Grid product.
- //
-
- #ifndef _GRIDFRMS_H_
- #define _GRIDFRMS_H_
-
- /////////////////////////////////////////////////////////////////////////////
- // CMyMultiDocTemplate Template
-
- // this derived class allows me to change the view class at runtime,
- // which is usable for creating dynamic spliiter views based on the
- // current ciew class.
-
- class CMyMultiDocTemplate: public CMultiDocTemplate
- {
- public:
- CMyMultiDocTemplate(UINT nIDResource, CRuntimeClass* pDocClass,
- CRuntimeClass* pFrameClass, CRuntimeClass* pViewClass)
- : CMultiDocTemplate(nIDResource, pDocClass, pFrameClass, pViewClass)
- { }
-
- // need access to the m_pViewClass member
- void SetViewClass(CRuntimeClass* pViewClass)
- {
- m_pViewClass = pViewClass;
- }
- };
-
- /////////////////////////////////////////////////////////////////////////////
- // CSplitterMDIChildWnd frame
-
- class CSplitterMDIChildWnd : public CMDIChildWnd
- {
- DECLARE_DYNCREATE(CSplitterMDIChildWnd)
- protected:
- CSplitterMDIChildWnd(); // protected constructor used by dynamic creation
-
- // Attributes
- public:
- CSplitterWnd
- m_wndSplitter;
-
- // Operations
- public:
-
- // Implementation
- protected:
- virtual ~CSplitterMDIChildWnd();
- virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
-
- // Generated message map functions
- //{{AFX_MSG(CSplitterMDIChildWnd)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- #endif // _GRIDFRMS_H_
- /////////////////////////////////////////////////////////////////////////////
-