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 28 29 30 31 32 33
|
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (!m_wndSplitter.CreateView(0, 0,
RUNTIME_CLASS(CForm_RXD), CSize(0, 300), pContext))
{
TRACE0("Pb a la creation du 1er splitter \n");
return FALSE;
}
// création du 2eme splitter
if (!m_wndSplitter2.Create (
&m_wndSplitter, // la fenêtre parent est le 1er splitter
1, 3, // 0 ligne, 3 colonnes
CSize(0,0), // taille x, y
pContext,
WS_CHILD|WS_VISIBLE|WS_BORDER, // WS_BORDER est nécessaire
m_wndSplitter.IdFromRowCol(1, 0) )) // Splitter 2 dans 2eme colonne
{
TRACE0("Pb a la creation du splitter 2\n");
return FALSE;
}
// création des vues du splitter 2
if (!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CForm_TXD), CSize(250, 0), pContext) ||
!m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CEsComProView), CSize(250,0), pContext) ||
!m_wndSplitter2.CreateView(0, 2, RUNTIME_CLASS(CEsComProView), CSize(0,0), pContext))
{
m_wndSplitter2.DestroyWindow();
return FALSE;
}
return TRUE;
} |
Partager