Syntax
int ButtonBarGetShortct( const ButtonBar *buttonBar, int key );
Arguments
buttonBar the button bar.
key the shortcut key code to find. 0 returns 0 immediately.
Return value
The one-based position of the first matching selectable button, or 0 if there is no match or the object is NULL.
Description
The search checks item shortcut codes in bar order and skips disabled items and separators.