关键就是SendMessage函数的第二,第三,第四个参数该如何指定呢?
请多多指教:)
如果能提供一个资料的来源就太感谢了:)

解决方案 »

  1.   

    BM_SETCHECK Message--------------------------------------------------------------------------------An application sends a BM_SETCHECK message to set the check state of a radio button or check box. Syntax
    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.