15,979
社区成员
发帖
与我相关
我的任务
分享
CNewForm newForm;
CView* pView = this->GetActiveView();
pView->ShowWindow(SW_HIDE);
if (!newForm.m_hWnd)
{
CCreateContext context;
context.m_pCurrentDoc = pView->GetDocument();
context.m_pNewViewClass = RUNTIME_CLASS(CNewForm);
if (!newForm.Create(NULL,NULL,AFX_WS_DEFAULT_VIEW,CRect(0,0,0,0),this,IDD_DIALOG1,
&context))
{
return ;
}
newForm.OnInitialUpdate();
this->RecalcLayout(TRUE);
}