VC 中热键的奇怪行为++
我有一个用 VC++ 编写的对话框,如下所示:
Label1 Control1
Button1
如果 Control1 被禁用,则使用 Label1 的热键会导致 Button1 的 Click 事件。 我怎样才能避免这种情况呢? 由于 Control1 被禁用,Label1 的热键不应该也被禁用吗?
I have a dialog written in VC++ as shown below:
Label1 Control1
Button1
If Control1 is disabled, using Label1's hotkey results in Button1's Click event. How could I avoid that? As Control1 is disabled shouldn't the hotkey for Label1 too?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它是 CStatic,您是否尝试过在它引用的控件的同时禁用它?
If it's a CStatic, have you tried disabling it at the same time as the control it's referencing?