问题描述
- MFC创建分割窗口出现问题
-
if (!m_WndSplitter.CreateView(0, 0, pContext->m_pNewViewClass, CSize(250, 0), pContext))
{
TRACE0("Failed to create first pane
");
return FALSE;
}// add the second splitter pane - an input view in column 1 if (!m_WndSplitter.CreateView(0, 1, RUNTIME_CLASS(CMyView), CSize(0, 0), pContext)) { TRACE0("Failed to create second pane "); return FALSE; } SetActiveView((CView*)m_WndSplitter.GetPane(0, 1));
解决方案
看你的右边的View的OnDraw,有没有在更新大小后刷新客户区
解决方案二:
MFC中使用线程创建窗口的问题
时间: 2024-11-18 07:39:26