隐藏MFC中的关键提示 [英] Hiding Key Tips in MFC

查看:60
本文介绍了隐藏MFC中的关键提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CMFCRibbonBar有一个成员EnableKeyTips(BOOL bEnable)


但它没有完全按照它在盒子上说的那样: - (    如果您启用了KeyKeyTips(  FALSE),它不仅会停止弹出关键提示(带字母的小方框);它会完全禁用键盘
中使用Alt键的所有命令。  ; 


我希望Alt键继续工作,只是没有弹出关键提示。  (尤其是因为我出于自己的目的使用Alt +箭头键这些也停止了工作。)  


有没有一种简单的方法可以做到这一点?


 




David Webber莫扎特音乐记谱软件的作者http://www.mozart.co.uk

解决方案

< blockquote>

嗨David Webber,


感谢您在这里发帖。


>>我想让Alt键去在工作中,没有弹出关键提示。  (尤其是因为我为我自己的目的使用Alt +箭头键,这些也停止工作。)  


有没有一种简单的方法可以实现这一目标?


我在自己的MFC功能区测试项目中完成了测试,它确实存在这个问题。你可以连接给微软并发布此问题。


我只是做得有点棘手,用功能区按钮删除所有键。它不会像禁用一样弹出。我知道这有点不专业,但在我看来,没有其他方法可以禁用它。



实际上,当您启用此功能时,当用户按下ALT或F10按钮时会显示关键提示。当用户按下ALT键时,显示的键提示延迟为200毫秒。此延迟允许执行快捷方式,以便按下的
ALT键不会干扰包含ALT键的其他组合。你可以忽略它。


最好的问候,


Sera Yu




CMFCRibbonBar has a member EnableKeyTips( BOOL bEnable )

But it doesn't quite do what it says on the box :-(     If you EnableKeyTips( FALSE ) it doesn't just stop the key tips (the little boxes with letters) from popping up;  it completely disables all commands from the keyboard which use the Alt key.  

I want the Alt key to go on working, just without the key tips popping up.   (Not least because I use Alt+arrow keys for my own purposes and these stop working too.)  

Is there an easy way to accomplish this?

 


David Webber Author of Mozart music notation software http://www.mozart.co.uk

解决方案

Hi David Webber,

thanks for posting here.

>>I want the Alt key to go on working, just without the key tips popping up.   (Not least because I use Alt+arrow keys for my own purposes and these stop working too.)  

Is there an easy way to accomplish this?

I have done that test in my own MFC ribbon test project, it really has this issue. You could connect to Microsoft and post this issue on it.

I just done a little tricky, delete all the keys with ribbon buttons. It won't pop up like disabled. I know it's a little unprofessional but in my opinion, there is no other way to disable it.

Actually when you enable this feature, key tips are displayed when the user presses the ALT or F10 button. When the user presses ALT key, key tips are displayed with a 200 millisecond delay. This delay allows for shortcuts to be executed so that the pressed ALT key does not interfere with other combinations that include the ALT key. You could ignore it.

Best Regards,

Sera Yu


这篇关于隐藏MFC中的关键提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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