Gets the ID of the checked radio button in a radio group.
Takes group (Int).
Returns 0 if parentHWND is NULL.
BGI GUI
Parameters & Returns
Parameters
groupInt
Returns
Int
Quick Summary
Gets the ID of the checked radio button in a radio group.
Takes group (Int).
Returns 0 if parentHWND is NULL.
Technical Exegesis...
Gets the ID of the currently checked radio button within a radio button group. Searches gizmoMap for all gizmos with parentID matching group parameter. Collects matching gizmos into list, stores parentHWND. Returns 0 if parentHWND is NULL. Iterates through collected gizmos, calling IsDlgButtonChecked on each. Returns ID of first gizmo with BST_CHECKED state. Returns 0 if no radio button is checked.
This function finds which radio button is selected in a group.
Gets the ID of the currently checked radio button within a radio button group. Searches gizmoMap for all gizmos with parentID matching group parameter. Collects matching gizmos into list, stores parentHWND. Returns 0 if parentHWND is NULL. Iterates through collected gizmos, calling IsDlgButtonChecked on each. Returns ID of first gizmo with BST_CHECKED state. Returns 0 if no radio button is checked.
This function finds which radio button is selected in a group. group parameter is the radio group ID created with bgiCreateGizmoRadioGroup. Searches all child controls of the group, returns ID of the checked one. Returns 0 if none checked or group not found. Radio button groups created with bgiCreateGizmoRadioGroup use group ID as parent. Use after user selection to determine chosen option. Only one radio button should be checked per group.