(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. 条码扫描枪如何与自己的vc程序进行连接。 C#调用DLL出错,请帮忙! 线程池 让程序全面实现Unicode支持,有哪些工作 对于高手的小问题!!!快进来呀!! 16位程序和32位程序的区别 属性页的问题! 位图显示问题,急!!! 在MFC中插入图片,怎么会失真的 如何在程序中修改TOOLBAR的TOOLTIP? 请教一个很菜的问题! 学过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.