一个简单的sdi窗口怎么分割
											看来看去都要求RUNTIME_CLASS,我一写就错,正在绝望中……
看来看去都要求RUNTIME_CLASS,我一写就错,正在绝望中……
 2007-06-07 16:21
	    2007-06-07 16:21
  
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
 // TODO: Add your specialized code here and/or call the base class
 
 m_wndSplitter1.CreateStatic(this,1,2,WS_CHILD | WS_VISIBLE, AFX_IDW_PANE_FIRST ); 
 m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CMyView),CSize(200,10),pContext);
 m_wndSplitter2.CreateStatic(&m_wndSplitter1,2,1,WS_CHILD|WS_VISIBLE,
                           m_wndSplitter1.IdFromRowCol(0,1));
 m_wndSplitter2.CreateView(0,0,RUNTIME_CLASS(CMyView2),CSize(0,300),pContext);
 m_wndSplitter2.CreateView(1,0,RUNTIME_CLASS(CMyView3),CSize(0,0),pContext);
 return TRUE;
// return CFrameWnd::OnCreateClient(lpcs, pContext);
}
加载以上函数,再定义相关变量,视图类就可以了.

 2007-06-07 17:24
	    2007-06-07 17:24
   2007-06-07 17:24
	    2007-06-07 17:24