楼主好,我想问个比较弱的问题。我在用VC把窗口切分为左右两部分之后,编译通过了就是不能显示。
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { // TODO: Add your specialized code here and/or call the base class CRect cr; GetClientRect(&cr); CSize paneSize(cr.Width()/4,cr.Height()/4); CSize paneright(cr.Width()*3/4,cr.Height()*3/4); m_wndSplitter.CreateStatic(this,1,2,WS_CHILD|WS_VISIBLE); m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CDamagetreeView),paneSize,pContext); m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CSimulationView),paneright,pContext);
return TRUE; // return CFrameWnd::OnCreateClient(lpcs, pContext); }
其中CSimulationView是基于CView的,提示遇到问题需要关闭。
谢谢楼主了!!!!!!!!!
|