虚拟键盘/对话框中的按钮效果 [英] Push button effect in virtual keyboard/Dialog

查看:73
本文介绍了虚拟键盘/对话框中的按钮效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我的虚拟键盘/对话框上有一个按钮,其文本属性设置为"A".我知道我可以调用它的click事件来处理相应的代码,但是谁能告诉我如何使按钮看起来像是被单击了吗?
换句话说,我需要它走下去".然后回来备份".任何可以帮助我使用键盘并在屏幕上显示相应效果的特定代码?与Mfc相关....

请告诉我.
谢谢.

Let''s say I have a button on my virtual keyboard/dialog with its text property set to "A". I know I can call its click event to process the corresponding code, but can anyone tell me how to make the button appear to have been clicked?
In other words, I need it to "go down" and then "come back up".Any specific code that can help me on using keyboard and the corresponding effect to be displayed on the screen?? Mfc related....

Please let me know.
Thanks.

推荐答案

如果为复选框提供 BS_PUSHLIKE 样式,它将看起来像一个按钮.在未选中状态下,它看起来像是一个未按下的按钮,在选中状态下,它将看起来像是一个按下的按钮.
If you give a checkbox the style BS_PUSHLIKE, it will look like a push button. In unchecked state it will look like an unpressed button and when checked it will look like a pressed button.


这篇关于虚拟键盘/对话框中的按钮效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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