radio buttons and integer index
There must be a way to associate an int member var with a radio button and have that value updated automatically by mfc when other radio buttons are clicked
I cant remember how to do this without having to check each individual button to see if ts checked or not.
:wave:
Got it UpdateData(); was missing before checking the value :D
[358 byte] By [
Saeed] at [2007-11-20 11:45:33]

# 1 Re: radio buttons and integer index
First, you set the tab order so that all the radio buttons in the group are in a sequence.
Then, set the first radio button style to "Group". The other radio buttons in the group should have this style disabled.
Add an int member variable for the first radio button in the group.
This will create the necessary DDX_Radio macro.
Finally, create BN_CLICKED handlers for all radio buttons and call UpdateData(TRUE);
zerver at 2007-11-10 22:22:32 >
