1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
BOOL CChildFrame::OnCreateClient( LPCREATESTRUCT /*lpcs*/,
CCreateContext* pContext)
{
// create splitter window
if (!m_wndSplitter.CreateStatic(this, 1, 2))
return FALSE;
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftView), CSize(100, 100), pContext) ||
!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CModelView), CSize(100, 100), pContext))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
CWnd *pWnd=m_wndSplitter.GetPane(0,1);
if(m_barre.Create(pWnd,IDD_DIALOGBAR,CBRS_BOTTOM,IDD_DIALOGBAR)==TRUE)
{
MessageBox("Ok!");
m_wndSplitter.RecalcLayout();
}
else
MessageBox("Problème!");
return TRUE;
} |
Partager