get_menu_item_rectangle


bool get_menu_item_rectangle(handle window,
                             handle menu,
                             unsigned item, 
                             irectangle* bounds)

This function obtains the rectangle that bounds the item of a menu.

Parameters

handle window

The handle of the window containing the menu. This parameter may be null when the specified menu is a popup menu.

handle menu

The handle of the menu containing the item.

unsigned item

The zero-based offset into the menu of the item.

irectangle* bounds

A pointer to a rectangle to hold bounding rectangle of the item (in screen coordinates).

Return

bool

true The function succeeded.
false The call failed.