在不使用对话框指针的情况下创建对话框
Modles dialog creation without using dialog pointer
为什么下面的第二行代码会出现异常
StatusDlg statusDlg (CWnd::GetDesktopWindow());
statusDlg.ShowWindow(SW_SHOW);
下面的代码没有问题
StatusDlg * statusDlg = new StatusDlg(NULL);
statusDlg->Create(StatusDlg::IDD,CWnd::GetDesktopWindow());
statusDlg->ShowWindow(SW_SHOW)
?
因为第一个剂量没有创建对话框的基础窗口?
相关文章:
- 在没有太多条件句的情况下,我如何避免被零除
- 为什么在没有显式默认构造函数的情况下,将另一个结构封装在联合中作为成员的结构不能编译
- 在未初始化映射的情况下,将值插入到映射的映射中
- 是默认情况下分配给char数组常量的值
- 为什么我不能在不创建字符串变量的情况下使用函数的字符串输出
- 如何在不产生任何垃圾的情况下获得C中的像素
- 在已经使用Git的情况下减少编译时间
- 为什么在Windows上的VS 2019和Clang 9中"size_t"在没有标题的情况下工作
- 如何在没有信号的情况下从C++执行QML插槽
- 如何在不知道向量大小的情况下输入向量内部的向量?
- 为什么在某些情况下不写入此文件?
- 为什么Mat类的两个对象可以在不重载运算符+的情况下添加
- 如何在Qbutton的帮助下更改Q对话框的宽度
- 如何在不停滞主循环的情况下实现对话系统?
- 按下热键时显示一个对话框实例
- 在不使用文本框的情况下接受来自条形码扫描仪的输入
- 带有下一步/后退按钮的Qt对话框/小部件
- 在对话框中按下键停止铃声
- 在不使用对话框指针的情况下创建对话框
- 在不使用tab键的情况下在Windows Mobile中的对话框控件之间移动