If the IDs of the groups of radio button is consecutive, you can use:
int iCheckedID = GetCheckRadioButton(ID_FIRST_RADIO, ID_LAST_RADIO);
int iCheckedIndex = iCheckedID - ID_FIRST_RADIO;
If the IDs are not consecutive, you have to construct the index using multiple...