如何在模态对话框中调用 IsDialogMessage
在我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不知道。模态对话框函数自动从其自己的消息循环中调用 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.