HeaderPane
Main
Hide
Share Link
Print

ItemsShown

Returns the number of items displayable in the dropdown portion, including partial items.

C

int WINAPI SftBox_GetItemsShown(HWND hwndCtl);

C++

int CSftBox::GetItemsShown() const;

Parameters

hwndCtl

The window handle of the combo box control.

Returns

The return value is the number of completely and partially visible items in the dropdown portion.

Comments

The GetItemsShown function returns the number of items displayable in the dropdown portion of the combo box control, including partial items.

In a fixed height combo box, the value returned is the number of items that fit in the dropdown portion, even if the combo box contains fewer items. In a variable height combo box (see SFTBOXSTYLE_VARIABLE), the items are counted starting at the first item shown at the top of the dropdown portion (see GetTopIndex), only existing items are counted and the value returned is at least 1.

See Also C/C++ API | Categories | Notifications


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.