1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
BOOL CMyChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
if (!m_wndSplitter.CreateStatic(this, 2, 3))return FALSE;
if ( !m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CDeveloppezView), CSize(100, 100), pContext) ||
!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CDeveloppezView), CSize(100, 100), pContext) ||
!m_wndSplitter.CreateView(0, 2, RUNTIME_CLASS(CDeveloppezView), CSize(100, 100), pContext) ||
!m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CDeveloppezView), CSize(100, 100), pContext) ||
!m_wndSplitter.CreateView(1, 1, RUNTIME_CLASS(CDeveloppezView), CSize(100, 100), pContext) ||
!m_wndSplitter.CreateView(1, 2, RUNTIME_CLASS(CDeveloppezView), CSize(100, 100), pContext)
)
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
// return CMDIChildWnd::OnCreateClient(lpcs, pContext);
} |
Partager