CheckRadioButtonfunction
Checks a specified menu item and makes it a radio item.
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.
Syntax
FUNCTION CheckRadioButton (BYVAL hMenu AS HMENU, BYVAL first AS LONG, BYVAL last AS LONG, BYVAL check AS LONG, BYVAL fByPosition AS BOOLEAN = FALSE) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hMenu | Handle to the menu that contains the menu item. | |
first | The identifier or position of the first menu item in the group. | |
last | The identifier or position of the last menu item in the group. | |
check | The identifier or position of the menu item to check. | |
fByPosition | The meaning of item. If this parameter is FALSE, item is a menu item identifier. Otherwise, it is a menu item position, where position = 1 for the first position, position = 2 for the second, and so on. |
Return value
Returns TRUE if the function succeeds; FALSE otherwise.
Description
Checks a specified menu item and makes it a radio item. At the same time, the function clears all other menu items in the associated group and clears the radio-item type flag for those items.
Example
CMenu.CheckRadioButton(hMenu, ID_OPEN, ID_EXIT, ID_EXIT) ' By item identifier CMenu.CheckRadioButton(GetSubMenu(hMenu, 0), 1, 2, 2, TRUE) ' By position
Reference
- Documented in Windows/WIndows Controls/CMenu Class.md
- Topic: About Menus