15,979
社区成员
发帖
与我相关
我的任务
分享
BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: 在此添加专用代码和/或调用基类
m_wndSplitter.CreateStatic(this, 1, 2);
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CTestVeiw), CSize(1100,1100), NULL);
m_wndSplitter.CreateView(0, 1, pContext->m_pNewViewClass, CSize(0, 0), pContext);
return TRUE/*CMDIChildWndEx::OnCreateClient(lpcs, pContext)*/;
}
void CTestVeiw::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
MessageBox("123"); //这会弹出两次
// TODO: 在此添加专用代码和/或调用基类
}