1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0024548: Ray Tracing mode not available in MFC samples

Ray tracing functionality was added to OCCT MFC samples.
This commit is contained in:
ski
2014-10-30 16:03:24 +03:00
committed by bugmaster
parent a806787bd6
commit 2c5b6d9c12
15 changed files with 140 additions and 1 deletions

View File

@@ -47,5 +47,17 @@ int OCC_3dChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
// Create toolbar for RayTracing functionality
if (!m_RTToolBar.Create(this) || !m_RTToolBar.LoadToolBar(IDR_RAY_TRACING))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
m_RTToolBar.SetBarStyle(m_RTToolBar.GetBarStyle() | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
m_RTToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_RTToolBar);
return 0;
}