HeaderPane
Main
Hide
Share Link
Print

PrevShown

Returns the previous visible item.

C

int WINAPI SftBox_GetPrevShown(HWND hwndCtl, int itemIndex);

C++

int CSftBox::GetPrevShown(int itemIndex) const;

Parameters

hwndCtl

The window handle of the combo box control.

itemIndex

The zero-based index of the item before which the previous visible item should be located. To locate the last visible item (if present) in a combo box control specify -1.

Returns

The return value is the zero-based index of the previous visible item or -1 if there is no previous visible item.

Comments

The GetPrevShown function returns the previous visible item.

GetPrevShown is used to find the previous visible item, given an item index. Dependent items of a collapsed parent item are skipped using this function.

GetNextShown can be used to retrieve the next visible item. GetItemShown can be used to determine if a specific item is visible.

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


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