Syntax
int TopBarGetShortct( const TopBarMenu *topBar, int key );
Arguments
topBar the top bar menu.
key the shortcut key code to find. 0 returns 0 immediately.
Return value
The one-based position of the first matching item, or 0 if there is no match, key is 0 or the object is NULL.
Description
This lookup lets the menu system find shortcuts stored on top bar items. It searches the bar's items in order, including disabled items and items that own submenus. The caller determines whether a match can be activated.