原文链接 -> 传送门
宏功能:
Button_SetCheck 宏设置单选按钮或复选框的选中状态。
你可以通过直接发送 BM_SETCHECK 消息实现与该宏相同的功能。
宏原型:
LRESULT Button_SetCheck( HWND hwndCtl, int check );
参数解析:
|
参数 |
含义 |
||||||||
|
hwndCtl |
指向按钮的句柄 |
||||||||
|
check |
1. 指定按钮的选中状态
|
返回值:
该宏总是返回 0。
备注:
Button_SetCheck 宏对普通的 push 按钮无效。
需求:
|
Minimum supported client |
Windows Vista [仅桌面应用程序] |
|
Minimum supported server |
Windows 2003 服务器版 [仅桌面应用程序] |
|
Header |
Windowsx.h |




