How do i set a Radio Button's state in with win32 api's?
-
SendMessage(
(HWND) hWnd, // handle to destination window
BM_SETCHECK, // message to send
(WPARAM) wParam; // check state
(LPARAM) lParam; // not used; must be zero
);For
wParam
use BST_CHECKED, BST_UNCHECKED or BST_INDETERMINATE. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com -
SendMessage(
(HWND) hWnd, // handle to destination window
BM_SETCHECK, // message to send
(WPARAM) wParam; // check state
(LPARAM) lParam; // not used; must be zero
);For
wParam
use BST_CHECKED, BST_UNCHECKED or BST_INDETERMINATE. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.comSendMessage is Great but there is a macro which do the same BOOL CheckDlgButton( HWND hDlg, // handle to dialog box int nIDButton, // button identifier UINT uCheck // check state );
-
SendMessage is Great but there is a macro which do the same BOOL CheckDlgButton( HWND hDlg, // handle to dialog box int nIDButton, // button identifier UINT uCheck // check state );
You're right,
CheckDlgButton()
is easier to use. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com