September 9th, 2003, 01:33 PM
radio button trouble
I have a group of radio buttons. The user selects one. The dialog then closes. When the user open the dialog back up I would like the same radio button selected. There are 5 radio buttons selected and by default when the app starts it selects the third button. I know how to find out which button is selected but I am not sure how to display it, the next time that dialog opens.
Here is how I set my default:
CheckRadioButton(IDC_RADIO1, IDC_RADIO5, IDC_RADIO3);
Thanks in advance
September 9th, 2003, 02:16 PM
Are you wondering how to store which radio button the user chose and then have that same radio selected when you restart your application?
If that's what you mean, you'll have to store that information outside your program like in a text file or in the registry, then read it back in when you start your application. I can give you an example using the registry to store the user's choice, please let me know if you would like it and I'll post it.