Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

ChildFrm.h

Go to the documentation of this file.
00001 /* QuestDesigner - Open Zelda's Project
00002    Copyright (C) 2003 Kronuz
00003    Copyright (C) 2001/2003 Open Zelda's Project
00004  
00005    This program is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU General Public License
00007    as published by the Free Software Foundation; either version 2
00008    of the License, or (at your option) any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software
00017    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 */
00020 
00025 #pragma once
00026 
00028 // Forward declarations
00029 class CMainFrame;
00030 
00031 enum _child_type { tUnknown=0, tScriptEditor, tHtmlView, tMapEditor, tWorldEditor };
00033 // This is the common childs class
00034 typedef CWinTraits<WS_OVERLAPPEDWINDOW | WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, WS_EX_MDICHILD> CChildFrameTraits;
00035 class CChildFrame : public 
00036     CTabbedMDIChildWindowImpl<CChildFrame, CMDIWindow, CChildFrameTraits>
00037 {
00038     typedef CTabbedMDIChildWindowImpl<CChildFrame, CMDIWindow, CChildFrameTraits> baseClass;
00039 protected:
00040 
00041     // Pointer to main frame
00042     CMainFrame *m_pMainFrame;
00043 
00044 public:
00045     DECLARE_FRAME_WND_CLASS(NULL, IDR_MDICHILD)
00046 
00047     BEGIN_MSG_MAP(CScriptEditorFrame)
00048         CHAIN_MSG_MAP(baseClass)
00049     END_MSG_MAP()
00050 
00051     CTabbedMDICommandBarCtrl *m_pCmdBar;
00052     // Type of the child window
00053     _child_type m_ChildType;
00054     // Name given to the child window
00055     CString m_sChildName;
00056 
00057     LRESULT Register(_child_type ChildType);
00058     LRESULT Unregister();
00059 };

Generated on Wed Apr 16 19:12:22 2003 for QuestDesigner by doxygen1.2.18