在父窗口的WM_COMMAND消息事件中有如下代码:
SendMessage(hwndButton[2],BM_SETCHECK,NULL,NULL);
//其中hwndButton[2] 子窗口风格是 BS_CHECKBOX
任凭你怎么点这个checkbox,前面的圆点始终出不来呢?
SendMessage(hwndButton[2],BM_SETCHECK,NULL,NULL);
//其中hwndButton[2] 子窗口风格是 BS_CHECKBOX
任凭你怎么点这个checkbox,前面的圆点始终出不来呢?
解决方案 »
- 在现在IM的基础上,增加P2P点对点文件传输功能,请提供思路和经验,来者有分!
- MessageBox使用范围有限制么?是不是只能在文档和对话框类当中使用,别的类如App等不能用啊?为什么啊?
- 一个游戏,只允许一个实例,我怎么让他运行多个
- 用TIMER还是另外开个线程?
- 关于钩子的很简单的问题
- 多线程编程,希望有人帮忙
- 请问是先学VC还是先学WINDOWS编程?
- 谁知道针对oracle数据库较好的第三方控件?
- 若何计算time的加法???
- 为十么使用定时器WM_TIMER,却没有效果?
- 请教:CDatabase类和CRecordset类在功能上和其对象在内存中的状态有什么区别?
- odbc数据源连结,是不是不用在程序里进行用户名密码的验证了
msdn里面有说的吗?请问楼上的大哥您从哪里得知的?
An application sends a BM_SETCHECK message to set the check state of a radio button or check box. To send this message, call the SendMessage function with the following parameters. SendMessage(
(HWND) hWnd, // handle to destination window
BM_SETCHECK, // message to send
(WPARAM) wParam, // check state
(LPARAM) lParam // not used; must be zero
);
Parameters
wParam
Specifies the check state. This parameter can be one of the following values. Value Meaning
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 Values
This message always returns zero.