我在一个对话框的OnInitDialog事件中,调用CDialog::Create创建了另一个对话框,
为什么这个对话框总是显示在原来对话框的上层。无论在Create中是否使用this最为父窗口。
SetWindowPos也没用。
为什么这个对话框总是显示在原来对话框的上层。无论在Create中是否使用this最为父窗口。
SetWindowPos也没用。
解决方案 »
- 求问!!VC编程,怎么把一个小数存到数据库的numeric类型里?
- 能不能用C调用TXT文件或者其他能存原来数据的文件来当变量?
- 为什么ColeDataTime类型使用会出错 难道微软出BUG了
- [求助]50分求解:如何将屏幕的子区域copy成内存中,最好是一个CBitmap对象。。
- 在Unicode工程设置中使用AfxGetApp()函数为什么不可以?
- CFormView 与 CDocument得问题
- 怪事,GETCURRENTDIRECTORY()返回值為NULL
- 如何检测到telnet的客户端退出
- 血的教训!!Rose覆盖了我的程序文件
- 重绘制树形列表框后,改变item的高度,滚动条不正常
- 如何在com接口中传递类?在线等待
- 一个CListCtrl的高级问题,在线等待
或者ShowWindow(SW_HIDE);
CDialogTestDlg dlg;
m_pMainWnd = &dlg;
////在这里Create另一个对话框。
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
} // Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;