Name
GetMenuAttributes -- get menu item attributes (V9.0)
Synopsis
int ok = GetMenuAttributes(APTR display, struct hwMenuTreeInfo *item,
             ULONG *flags, struct hwTagList *tags);
Function
This function is optional and must only be implemented if the HWEXT_DISPLAYADAPTER_MENUADAPTER extension bit has been set. See Extension plugins for details. If that is the case, GetMenuAttributes() will be called by Hollywood to find out if the menu item specified by item is selected or disabled. You need to write the result to the flags pointer.

The following menu item flags are recognized by GetMenuAttributes():

HWMENUFLAGS_SELECTED:
Set this flag if the menu item is currently selected.

HWMENUFLAGS_DISABLED:
Set this flag if the menu item is currently disabled.

If the menu item is neither selected nor disabled, write 0 to flags.

Inputs
handle
display handle returned by OpenDisplay()
item
menu item to query
flags
pointer that receives the return value
tags
reserved for future use, currently always NULL
Results
ok
return True to indicate success, False to indicate failure

Show TOC