Graphisoft®

Dialog ManagerVersion: 2.0

PopUp::GetItemText

Retrieves the text of a popup item.

long GetItemText (
    short               popupItem,
    char *              text,
    long                size
) const;

Parameters

popupItem
1-based index of the popup item, use TopItem or BottomItem of Item type to specify the first or last item of the popup control.
text
Output parameter: pointer to a buffer to receive the text. This parameter can be NULL.
size
Size of the text buffer. If text is NULL, this parameter is ignored.

Return Value

The length of the item text (including the 0 terminator), or zero if size is less than the size of the item text.

Description

Use NULL for the text parameter to determine the necessary buffer size.