PopUpMenu

PopUpGetLast

Find the last selectable item

Syntax

Signature
int         PopUpGetLast( const PopUpMenu *popUp );

Return value

The one-based position of the last selectable item, or 0 if there is none or the object is NULL.

Description

The search skips disabled items and separators. Call `PopUpSelect()` to make the returned position current.

See also