Friday, August 8, 2008

CSplitterwnd with different number of rows and cloumns

On Mainframe class , we have to override OncreateClient function

m_wndSplitter1.CreateStatic(this,2,1);

m_wndSplitter.CreateStatic( &m_wndSplitter1 ,1,2,WS_CHILD WS_VISIBLE WS_BORDER,m_wndSplitter1.IdFromRowCol(0, 0) );m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CMyTreeView),CSize(70,70), pContext);m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CMyBroser),CSize(70,70), pContext);m_wndSplitter1.CreateView( 1,0,RUNTIME_CLASS(CMyListView),CSize(70,70), pContext);

bSplitterInit = TRUE;

return TRUE;

}

No comments: