如何在模态对话框中调用 IsDialogMessage

发布于 2024-08-12 06:37:10 字数 196 浏览 3 评论 0原文

在我的 Win32 应用程序中,我有一个模式对话框,其中显示我必须添加更多设置的设置。为了适应新的设置,我在对话框中放置了一个 TabCtrl 并实现了两个无模式对话框。 UI 正在它们之间切换,但无模式对话框不响应键盘。在常规应用程序中,将调用 IsDialogMessage (hWndCurModelessDialog)。我该如何为包含非模式对话框的模态对话框执行此操作?

In my Win32 app, I had a modal dialog that displays settings that I had to add more settings to. In order to fit the new settings, I dropped a TabCtrl in the dialog and implemented two modeless dialogs. The UI is working switching between them but the modeless dialogs don't respond to the keyboard. In a regular app, IsDialogMessage (hWndCurModelessDialog) would be called. How would I do this for my Modal dialog containing a modeless dialog?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏有森光若流苏 2024-08-19 06:37:10

你不知道。模态对话框函数自动从其自己的消息循环中调用 IsDialogMessage。

无模式对话框是“页面”?确保它们是主对话框(而不是选项卡控件)的父级并且具有 DS_CONTROL 样式。此样式允许 IsDialogMessage 在选项卡切换时递归到子对话框控件中。

You dont. The modal dialog box function calls IsDialogMessage from its own message loop automatically.

The modeless dialogs are the 'pages' ? Make sure they are parented to the main dialog (rather than the tab control) and have the DS_CONTROL style. This style allows IsDialogMessage to recurse into a child dialogs controls when tabbing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文