谁有多文档切分主框架的源代码?
如题。
我在CMainFram中加入CSplitterWnd m_wndSplitter;
在
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (!m_wndSplitter.CreateStatic(this, 1, 2))
return FALSE;
m_wndSplitter.CreateView(0, 1, pContext->m_pNewViewClass,
CSize(100, 100), pContext)) // 出错的地方!
}
设了断点看,原来pContext为空,我在单文档中设断点,发现pContext不为空,我想知道在多文档中什么地方对pContext做了手脚