protected: // control bar embedded members CStatusBar m_wndStatusBar; CToolBar m_wndToolBar; CSplitterWnd m_splitter;BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { // TODO: Add your specialized code here and/or call the base class m_splitter.CreateStatic(this,1,2); m_splitter.CreateView(0,0,RUNTIME_CLASS(CMyTreeView),CSize(100,100),pContext); m_splitter.CreateView(0,1,RUNTIME_CLASS(CSView),CSize(0,0),pContext); return TRUE; }
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CSplitterWnd m_splitter;BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
m_splitter.CreateStatic(this,1,2);
m_splitter.CreateView(0,0,RUNTIME_CLASS(CMyTreeView),CSize(100,100),pContext);
m_splitter.CreateView(0,1,RUNTIME_CLASS(CSView),CSize(0,0),pContext);
return TRUE;
}
我窗口已经分割好了的啊,默认的MFC单文档例子(vs样式的),不是传统的那种。