vFacciamo
override totale della funzione CMainFrame::OnCreateClient
v
vBOOL
CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
v{
v m_SplitWnd.CreateStatic(this,1,2);
v if(!m_SplitWnd.CreateView(0,0,RUNTIME_CLASS(CMBView),
v CSize(300,100),pContext)){
v return
FALSE;
v };
v if(!m_SplitWnd.CreateView(0,1,RUNTIME_CLASS(CMBGLView),
v CSize(100,100),pContext)){
v return FALSE;
v }
v m_fview
= (CMBView *) m_SplitWnd.GetPane(0,0);
v m_glview
= (CMBGLView *) m_SplitWnd.GetPane(0,1);
v m_bSplitterCreated=true;
v return true;
v}
v