使用"ALT + O"之类的助记符导航时出现问题 [英] Problem when navigating using Mnemonics such as 'ALT+O'

查看:92
本文介绍了使用"ALT + O"之类的助记符导航时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我使用助记键(如(ALT + O)的确定"按钮)导航控件时,出现了问题.我有一个父对话框,在它下面放置了一个子对话框.在父对象"对话框上,有一个带下划线的O字母的确定"按钮.在子对话框中,我有一个带下划线的M按钮的移动"按钮.当焦点位于父"对话框上并且按ALT + M时,应按移动"按钮,但不要按.当焦点放在子对话框上时,也会发生同样的情况,确定"按钮没有响应.



我很困惑.请建议我该怎么办?

-Abhay

Hi,

I''ve got a problem when I navigate controls using Mnemonics such as (ALT + O) for Ok button. I have a parent dialog, under it I''ve placed a child dialog. On Parent dialog there is a Ok button with O letter underlined. On child dialog, I''ve a Move button with M button underlined. When the focus is on Parent dialog and I press ALT + M, the Move button should be pressed, but it doesn''t. Same happens when focus is on child dialog, the Ok button doesn''t respond.



I am very much confused. Please suggest me what should I do?

- Abhay

推荐答案

如今,这似乎是一种常见的困惑.

主对话框启动子对话框后,子窗口即会获得焦点,并且您只能访问子窗口的命令.在子级关闭之前,父级对话框将被停用,并且不会收到任何消息.如果需要同时访问两个对话框的命令,则必须使子对话框成为无模式.
This seems to be a common confusion these days.

As soon as your main dialog starts the child dialog the child has the focus and you can only access the commands of the child. Until the child closes the parent dialog is deactivated and will not receive any messages. If you need to access commands of both dialogs at the same time then you must make the child dialog modeless.


确保子对话框在资源编辑器中的样式为Control = true.我认为它与WS_EX_CONTROLPARENT样式相对应.
Make sure your child dialog has the style Control=true in the resource editor. I think it corresponds to the WS_EX_CONTROLPARENT style.


这篇关于使用"ALT + O"之类的助记符导航时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆