void fzchddra()
{
// TODO: Implement the commandA2004dlg* dlg=new A2004dlg;
dlg->Create(IDD_BOX);
dlg->ShowWindow(SW_SHOW);
}
BOOL 2004dlg::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
return CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
}编译出错
说error C2660: 'Create' : function does not take 1 parameters
这些参数 应该怎么样 写 ??
if ( !CDialogBar::Create (pParent, nIDTemplate, style, nID) )
return (FALSE) ;
mSizeCurrent =m_sizeDefault ;
return (TRUE) ;
}创建成功无模式对话框以后应该如何 显示他呢??? 调用什么函数??
void fzchdwin()
{ CAcDialogBar CAcDialog;
CAcDialog.Create(pParentWnd,NULL,NULL,IDD_BOX);
}
只能说明你的MFC的基本功还不够,看看MFC的书。