// MeshContainerBar.cpp: implementation of the CMeshContainerBar class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "WorldCreator.h" #include "MeshContainerBar.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CMeshContainerBar::CMeshContainerBar() { } CMeshContainerBar::~CMeshContainerBar() { } void CMeshContainerBar::OnInitDialogBar() { m_MeshContainerSheet=new CMeshContainerSheet("Rainbow"); m_MeshContainerSheet->EnableStackedTabs( FALSE ); m_MeshContainerSheet->Create(this,WS_CHILD|WS_VISIBLE,0); m_MeshContainerSheet->ModifyStyleEx(0,WS_EX_CONTROLPARENT); m_MeshContainerSheet->ModifyStyle(0,WS_TABSTOP); m_MeshContainerSheet->MoveWindow(0,0,335,800); CTabCtrl * pTabCtrl = m_MeshContainerSheet->GetTabControl(); pTabCtrl->SetMinTabWidth( 10 ); pTabCtrl->SetWindowPos( NULL, 0,0,325,800, SWP_NOZORDER | SWP_NOMOVE ); } void CMeshContainerBar::Destory() { m_MeshContainerSheet->DestroyWindow(); delete m_MeshContainerSheet; }