C++ MFC : How to open immediately a secondary dialog after the first modal dialog was created

标签 c++ windows mfc dialog modal-dialog

如何在不按任何按钮的情况下从对话框中打开 C++ MFC 中的辅助模式对话框? (如果我在 OnInitDialog() 中创建一个对话框,第一个对话框将不会出现。)

最佳答案

只需在显示辅助对话框之前在 OnInitDialog 中调用 ShowWindow(SW_SHOW); 即可。

关于C++ MFC : How to open immediately a secondary dialog after the first modal dialog was created,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3708237/

相关文章:

C++友情与继承

c++ - 使用模板参数设置特定成员

c++ - 在 V8 中定义通用访问器回调

windows - cabal 安装 glib 出错

Windows:批处理文件:仅以管理员身份运行

c++ - MFC 窗口工具栏创建失败且没有错误消息

c++ - 如何防止手动实例化所有模板类型?

windows - 修改InstallShield X(版本10.5)的exe list

c++ - MFC中GDI修改字体

dll - _DllMain @ 12已定义