Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / logic / logic_editor_dll / ChildFrm.cpp
blob5e9a932463ab6d6539b255ae7db086fa19b602f7
1 // ChildFrm.cpp : implementation of the CChildFrame class
2 //
4 #include "stdafx.h"
5 #include "logic_editor.h"
7 #include "ChildFrm.h"
8 #include "LogicTreeView.h"
9 #include "EditorFormView.h"
12 #ifdef _DEBUG
13 #define new DEBUG_NEW
14 #undef THIS_FILE
15 static char THIS_FILE[] = __FILE__;
16 #endif
18 /////////////////////////////////////////////////////////////////////////////
19 // CChildFrame
21 IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)
23 BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
24 //{{AFX_MSG_MAP(CChildFrame)
25 //}}AFX_MSG_MAP
26 END_MESSAGE_MAP()
28 /////////////////////////////////////////////////////////////////////////////
29 // CChildFrame construction/destruction
31 CChildFrame::CChildFrame()
33 // TODO: add member initialization code here
37 CChildFrame::~CChildFrame()
41 BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
43 // TODO: Modify the Window class or styles here by modifying
44 // the CREATESTRUCT cs
46 if( !CMDIChildWnd::PreCreateWindow(cs) )
47 return FALSE;
49 return TRUE;
53 /////////////////////////////////////////////////////////////////////////////
54 // CChildFrame diagnostics
56 #ifdef _DEBUG
57 void CChildFrame::AssertValid() const
59 CMDIChildWnd::AssertValid();
62 void CChildFrame::Dump(CDumpContext& dc) const
64 CMDIChildWnd::Dump(dc);
67 #endif //_DEBUG
69 /////////////////////////////////////////////////////////////////////////////
70 // CChildFrame message handlers
72 BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
74 // create static splitter view with two panes
75 VERIFY(m_wndSplitter.CreateStatic( this,1,2, WS_CHILD | WS_VISIBLE ));
76 VERIFY(m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CLogicTreeView),CSize(180,0),pContext));
77 VERIFY(m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CEditorFormView),CSize(0,0),pContext));
79 //return CMDIChildWnd::OnCreateClient(lpcs, pContext);
80 return TRUE;