(SDK)怎样用SendMessage函数反选一个checkButton control(checked->unchecked)呢? 关键就是SendMessage函数的第二,第三,第四个参数该如何指定呢?请多多指教:)如果能提供一个资料的来源就太感谢了:) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 BM_SETCHECK Message--------------------------------------------------------------------------------An application sends a BM_SETCHECK message to set the check state of a radio button or check box. SyntaxTo send this message, call the SendMessage function as follows. lResult = SendMessage( // returns LRESULT in lResult (HWND) hWndControl, // handle to destination control (UINT) BM_SETCHECK, // message ID (WPARAM) wParam, // = (WPARAM) () wParam; (LPARAM) lParam // = 0; not used, must be zero ); ParameterswParamSpecifies the check state. This parameter can be one of the following values. BST_CHECKEDSets the button state to checked.BST_INDETERMINATESets the button state to grayed, indicating an indeterminate state. Use this value only if the button has the BS_3STATE or BS_AUTO3STATE style.BST_UNCHECKEDSets the button state to cleared.lParamThis parameter is not used. Return ValueThis message always returns zero. ResThe BM_SETCHECK message has no effect on push buttons. Message InformationHeader Declared in Winuser.h, include Windows.h Minimum operating systems Windows 95, Windows NT 3.1 See AlsoButtons Overview, BM_GETCHECK, BM_GETSTATE, BM_SETSTATE--------------------------------------------------------------------------------© 2003 Microsoft Corporation. All rights reserved. 关于获取CPU步进和指令集等问题 终于升星星了! 为什么我的程序在系统注消之后还是没有退出? _beginthreadex 传递了一个参数,线程函数里应该怎么用这个参数呢? 请问最大能定义多大的float型二维数组? 怎样用VC实现给一些信息网站发布信息? 我和你妈同时落水,你先救谁?ZT 大家看看 怎么改变VC显示的默认字体???同一个程序,在不同的机子上显示的字体不一样,有的字体歪歪斜斜的,怎么改变啊??? 怎样使非激活的属性页能调用到它的OnInitDialog()? 送分问题 请教一个很菜的问题! 学过C# 的人请进
To send this message, call the SendMessage function as follows.
lResult = SendMessage( // returns LRESULT in lResult (HWND) hWndControl, // handle to destination control (UINT) BM_SETCHECK, // message ID (WPARAM) wParam, // = (WPARAM) () wParam; (LPARAM) lParam // = 0; not used, must be zero );
ParameterswParam
Specifies the check state. This parameter can be one of the following values.
BST_CHECKED
Sets the button state to checked.
BST_INDETERMINATE
Sets the button state to grayed, indicating an indeterminate state. Use this value only if the button has the BS_3STATE or BS_AUTO3STATE style.
BST_UNCHECKED
Sets the button state to cleared.
lParam
This parameter is not used.
Return ValueThis message always returns zero. ResThe BM_SETCHECK message has no effect on push buttons. Message InformationHeader Declared in Winuser.h, include Windows.h
Minimum operating systems Windows 95, Windows NT 3.1 See AlsoButtons Overview, BM_GETCHECK, BM_GETSTATE, BM_SETSTATE--------------------------------------------------------------------------------© 2003 Microsoft Corporation. All rights reserved.