Returns the next visible item.
C
int WINAPI SftBox_GetNextShown(HWND hwndCtl, int itemIndex);
C++
int CSftBox::GetNextShown(int itemIndex) const;
hwndCtl
The window handle of the combo box control.
itemIndex
The zero-based index of the item after which the next visible item should be located. To locate the first visible item (if present) in a combo box control specify -1.
The return value is the zero-based index of the next visible item or -1 if there is no next visible item.
The GetNextShown function returns the next visible item.
GetNextShown is used to find the next visible item, given an item index. Dependent items of a collapsed parent item are skipped using this function.
GetPrevShown can be used to retrieve the previous visible item. GetItemShown can be used to determine if a specific item is visible.
See Also C/C++ API | Categories | Notifications