1 // ChildFrm.cpp : implementation of the CChildFrame class
5 #include "logic_editor.h"
8 #include "LogicTreeView.h"
9 #include "EditorFormView.h"
15 static char THIS_FILE
[] = __FILE__
;
18 /////////////////////////////////////////////////////////////////////////////
21 IMPLEMENT_DYNCREATE(CChildFrame
, CMDIChildWnd
)
23 BEGIN_MESSAGE_MAP(CChildFrame
, CMDIChildWnd
)
24 //{{AFX_MSG_MAP(CChildFrame)
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
) )
53 /////////////////////////////////////////////////////////////////////////////
54 // CChildFrame diagnostics
57 void CChildFrame::AssertValid() const
59 CMDIChildWnd::AssertValid();
62 void CChildFrame::Dump(CDumpContext
& dc
) const
64 CMDIChildWnd::Dump(dc
);
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);