请教一个关于richedit的问题
问一个可能很菜鸟的问题,我用vc7.0在对话框中加入一个richedit2.0control,结果程序就不能正常运行了,其他什么代码也没有写。我debug发现在InitInstance中执行dlg.DoModal();以后返回值为-1,然后跟踪进入进入dlgcore.cpp的DoModal发现
if (hWndParent && hWndParent != ::GetDesktopWindow() && ::IsWindowEnabled(hWndParent))
{
::EnableWindow(hWndParent, FALSE);
bEnableParent = TRUE;
}没有被执行也就是判断为假了请问这是为什么?我去掉richedit就没有问题了