C++ Win32 How to Create a “toggle” Pushbutton

六眼飞鱼酱① 提交于 2019-12-06 16:48:05

Create a check box, then set the "push like" property for that check box to true.

You want a checkbox with BS_PUSHLIKE style. To toggle it programmatically, use Button_SetCheck

The "staying down" and "rising back up" are a matter of how you draw the button.

You could create your own button class by using the Paint and Redraw methods.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!