HRESULT AddRadioGroup(LPCWSTR groupName, int radioControlId)

This method adds a control to a named radio button group, as shown in Table 33. You must call this before the InitFields method, because that method uses attributes on the RadioGroup element to control settings for all the radio button controls in the group. Radio groups can be locked, for example, so that all the radio buttons are disabled, but child controls are enabled or disabled based only on which radio button is selected. This method always returns S_OK.

Table 33. HRESULT AddRadioGroup




A string that defines a group of radio buttons on this page


The ID of a single radio button to add to this group


Related Topics

IFormController Interface