//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: ChildFrm.cpp // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Source file of ChildFrm.cpp //---------------------------------------------------------------------------- // ChildFrm.cpp : implementation of the CChildFrame class // #include "stdafx.h" #include "BoardReceiver.h" #include "ChildFrm.h" #include "BoardReceiverDoc.h" #include "BoardReceiverList.h" #include "BoardReceiverView.h" #include "BoardReceiverVariableList.h" /* #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif */ ///////////////////////////////////////////////////////////////////////////// // CChildFrame IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd) BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd) //{{AFX_MSG_MAP(CChildFrame) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CChildFrame construction/destruction CChildFrame::CChildFrame() { // TODO: add member initialization code here } CChildFrame::~CChildFrame() { } BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs if( !CMDIChildWnd::PreCreateWindow(cs) ) return FALSE; return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CChildFrame diagnostics #ifdef _DEBUG void CChildFrame::AssertValid() const { CMDIChildWnd::AssertValid(); } void CChildFrame::Dump(CDumpContext& dc) const { CMDIChildWnd::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CChildFrame message handlers BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { BOOL bCreateSpltr = m_wndSplitter.CreateStatic( this, 1, 3); m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CBoardReceiverList), CSize(100,0), pContext ); m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CBoardReceiverVariableList), CSize(0,0), pContext ); m_wndSplitter.CreateView(0,2,RUNTIME_CLASS(CBoardReceiverView), CSize(0,0), pContext ); return (bCreateSpltr); }