Returns an item's ID.
C
SFTBOX_ID WINAPI SftBox_GetItemID(HWND hwndCtl, LONG indexTC);C++
SFTBOX_ID CSftBox::GetItemID(LONG indexTC) const;hwndCtl
The window handle of the combo box control.
indexTC
The zero-based index of the item for which the item ID is to be retrieved.
GetItemID returns the item's ID. NULL is returned if the specified item doesn't exist.
The GetItemID function returns an item's ID.
When an item is added to the combo box control, it is automatically assigned a unique ID, which does not change throughout the lifetime of the item. Even if an item changes its index position because other items are deleted or inserted, the item ID remains constant.
The GetItemIndex function returns an item's current index given its item ID.
In a combo box using a virtual data source, GetItemID cannot be used and NULL is returned.
See Also C/C++ API | Categories | Notifications