PopUpMenu

PopUpGetWidth

Return the width needed inside the menu frame

Syntax

Signature
int         PopUpGetWidth( const PopUpMenu *popUp );

Return value

The maximum width required by an item, or 0 for an empty menu or a NULL object.

Description

The width of each item is the character count of its caption with the accelerator marker removed, plus two columns. An item with a submenu uses one more column for its indicator. The full frame adds two columns.

See also