我在调试时看到了Dialog创建失败
CCcDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
nResponse r的值为-1
请问为什么出现这个现象,我用的这Dlg,且我在OnInitDialog()中将所有我自己加上去的语句都
屏掉了
CCcDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
nResponse r的值为-1
请问为什么出现这个现象,我用的这Dlg,且我在OnInitDialog()中将所有我自己加上去的语句都
屏掉了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货