Hi,
I am using a splitter to divide the screen into 2.
In each part i use a CTabCtrl driven class. So i aim to place 4 View classes. The problem occurs when i try to place the (AppName)View class (I don't know the term used for this class, sorry).
Here are the code snippets:
// Application's name is Bitirme
// CMainFrame::OnCreateClient
m_Splitter.CreateStatic( this, 1, 2 );
m_Splitter.CreateView( 0, 0, RUNTIME_CLASS( CMenuView ), CSize ( 200, 0 ), pContext );
m_Splitter.CreateView( 0, 1, RUNTIME_CLASS( CSonucView ), CSize ( 0, 0 ), pContext );
// CMenuView works fine, so i skip it.
// CSonucView::OnCreate
m_pNumerikView = ( CNumerikView * ) m_SonucTab.AddTabView( RUNTIME_CLASS( CNumerikView ), GetDocument(), this, 0, "Numerik Analiz" ); // This works
m_pBitirmeView = ( CBitirmeView * ) m_SonucTab.AddTabView( RUNTIME_CLASS( CBitirmeView ), GetDocument(), this, 1, "Grafik" ); // This causes trouble
I would be very grateful if could help me on this one. Thanks.
I am using a splitter to divide the screen into 2.
In each part i use a CTabCtrl driven class. So i aim to place 4 View classes. The problem occurs when i try to place the (AppName)View class (I don't know the term used for this class, sorry).
Here are the code snippets:
// Application's name is Bitirme
// CMainFrame::OnCreateClient
m_Splitter.CreateStatic( this, 1, 2 );
m_Splitter.CreateView( 0, 0, RUNTIME_CLASS( CMenuView ), CSize ( 200, 0 ), pContext );
m_Splitter.CreateView( 0, 1, RUNTIME_CLASS( CSonucView ), CSize ( 0, 0 ), pContext );
// CMenuView works fine, so i skip it.
// CSonucView::OnCreate
m_pNumerikView = ( CNumerikView * ) m_SonucTab.AddTabView( RUNTIME_CLASS( CNumerikView ), GetDocument(), this, 0, "Numerik Analiz" ); // This works
m_pBitirmeView = ( CBitirmeView * ) m_SonucTab.AddTabView( RUNTIME_CLASS( CBitirmeView ), GetDocument(), this, 1, "Grafik" ); // This causes trouble
I would be very grateful if could help me on this one. Thanks.