| QMenuTopSelect | Function (ROM Call 0x41A)

AMS 2.00 or higher | menus.h

unsigned short QMenuTopSelect (HANDLE ExecHandle);

Returns the currently selected top-level menu item.

QMenuTopSelect returns the currently selected top-level menu item (0 = first, 1 = second, etc.) or -1 if none is selected. ExecHandle refers to a menu-draw handle returned from MenuBegin. MenuTopSelect is normally used with redefinable menus.

See also: MenuBegin, MenuTopSelect