von pospiech | Juni 7, 2007 | MFC
Radiobuttons in MFC are a mess. It is nevertheless possible to get its values with the following instructions. If one wants to have a group of radiobuttons the most important principle is to add them one ofter the other so that they have a ascending Resource number...
von pospiech | Juni 7, 2007 | MFC
The following code sets the value of a radio button to checked: CButton *pButton = reinterpret_cast(GetDlgItem(IDC_RADIO1)); pButton->SetCheck(1); // Button is “checked”