Graphisoft®

Dialog ManagerVersion: 2.0

ListBox::GetItemRect

Retrieves the bounding rectangle of a list box item.

bool GetItemRect (
    short               listItem,
    Rect *              rect
) const;

Parameters

listItem
1-based index of the list box item, use TopItem or BottomItem of Item type to specify the first or last item of the list box control.
rect
Output parameter: The item rectangle of the list box item.

Return Value

Value Meaning
true The rectangle of the list box item is in the visible part of the list box.
false The rectangle of the list box item is not in the visible part of the list box or the function parameters are incorrect.