Store a radio button glyph in a SFT_PICTURE as a SFT_PICTURE_RB slot.
C
void Sft_SetPictureRadioButton(LPSFT_PICTURE lpPicture, int state, int w, int h, BOOL fEnabled);lpPicture
Pointer to a SFT_PICTURE. Must not be NULL.
state
0 = cleared, 1 = selected. The implementation also stores the value verbatim, so -1 (indeterminate) is accepted but renders the same as cleared.
w, h
Width and height of the glyph in pixels. h must be greater than zero - calling with h <= 0 clears the slot but does not assign a glyph.
fEnabled
TRUE for enabled appearance, FALSE for disabled (grayed) appearance.
Sft_SetPictureRadioButton calls Sft_ClearPicture internally before assigning the new glyph. The radio button is rendered through Windows themes when themes are active, falling back to the legacy GDI rendering when not.
The function asserts that state is 0 or 1 in debug builds.
See Also SftPicture2 | SFT_PICTURE | SFT_PICTURE_RB | Sft_SetPictureCheckBox | Sft_IsPictureRadioButton