1 // OCC_3dChildFrame.cpp: implementation of the OCC_3dChildFrame class.
3 //////////////////////////////////////////////////////////////////////
7 #include "OCC_3dChildFrame.h"
9 #include "res\OCC_Resource.h"
11 //////////////////////////////////////////////////////////////////////
12 // Construction/Destruction
13 //////////////////////////////////////////////////////////////////////
16 IMPLEMENT_DYNCREATE (OCC_3dChildFrame, OCC_BaseChildFrame)
18 BEGIN_MESSAGE_MAP(OCC_3dChildFrame, OCC_BaseChildFrame)
19 //{{AFX_MSG_MAP(OCC_3dChildFrame)
24 OCC_3dChildFrame::OCC_3dChildFrame()
29 OCC_3dChildFrame::~OCC_3dChildFrame()
34 int OCC_3dChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
36 if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
39 if (!m_wndToolBar.Create(this) || !m_wndToolBar.LoadToolBar(IDR_3dCHILDFRAME))
41 TRACE0("Failed to create toolbar\n");
42 return -1; // fail to create
45 m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
46 m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
47 EnableDocking(CBRS_ALIGN_ANY);
48 DockControlBar(&m_wndToolBar);