I've been trying to change the state of a radio button programatically:
SendMessage(m_hwnd, WM_COMMAND, MAKEWPARAM(IDC_RADIO1, BST_CHECKED), (LPARAM)(hwnd_RADIO1));
Why won't this work?
I've been trying to change the state of a radio button programatically:
SendMessage(m_hwnd, WM_COMMAND, MAKEWPARAM(IDC_RADIO1, BST_CHECKED), (LPARAM)(hwnd_RADIO1));
Why won't this work?
How about using BM_SETCHECK? http://msdn.microsoft.com/en-us/library/bb775989(VS.85).aspx