Does anyone know how to fill a radio box with a black mark. I know that it can be done in real time with the mouse, but I need to put it to a 'filled' state without user interaction.
lhilliard got it! What an easy implementation to check a Radio Button. His referance to the function "CheckDlgButton(hDlg,ID_BUTTON_NAME,BST_CHECKED);" was the easiest to implement(at least for me). I stumbled thru all the SetCheck stuff and MFC Help with no success. I used the Dialog Editor the create a Radio button, then added a function called Hex which MFC turns into "void CPIODlg::OnHex()". In my "BOOL CPIODlg::OnInitDialog()" function I placed the line of code,
"CheckDlgButton(IDC_Hex, BST_CHECKED)". Now as soon as I run the app that radio button is checked. THANKS!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.