mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
51
samples/mfc/standard/Common/OCC_3dChildFrame.cpp
Executable file
51
samples/mfc/standard/Common/OCC_3dChildFrame.cpp
Executable file
@@ -0,0 +1,51 @@
|
||||
// OCC_3dChildFrame.cpp: implementation of the OCC_3dChildFrame class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "OCC_3dChildFrame.h"
|
||||
|
||||
#include "res\OCC_Resource.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
IMPLEMENT_DYNCREATE (OCC_3dChildFrame, OCC_BaseChildFrame)
|
||||
|
||||
BEGIN_MESSAGE_MAP(OCC_3dChildFrame, OCC_BaseChildFrame)
|
||||
//{{AFX_MSG_MAP(OCC_3dChildFrame)
|
||||
ON_WM_CREATE()
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
OCC_3dChildFrame::OCC_3dChildFrame()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
OCC_3dChildFrame::~OCC_3dChildFrame()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int OCC_3dChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
||||
{
|
||||
if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
|
||||
return -1;
|
||||
|
||||
if (!m_wndToolBar.Create(this) || !m_wndToolBar.LoadToolBar(IDR_3dCHILDFRAME))
|
||||
{
|
||||
TRACE0("Failed to create toolbar\n");
|
||||
return -1; // fail to create
|
||||
}
|
||||
|
||||
m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
|
||||
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
|
||||
EnableDocking(CBRS_ALIGN_ANY);
|
||||
DockControlBar(&m_wndToolBar);
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user