Returns an item's parent index.
C
LONG WINAPI SftBox_GetParent(HWND hwndCtl, LONG indexTC);
C++
LONG CSftBox::GetParent(LONG indexTC) const;
hwndCtl
The window handle of the combo box control.
indexTC
The zero-based index of the item for which the parent item index is to be retrieved.
The return value is the zero-based index of the immediate parent item. -1 is returned if the item requested doesn't have a parent item or if an error occurred.
The GetParent function returns an item's parent index.
The GetTopParent function can be used to retrieve an item's parent item on level 0. GetDependent and GetSibling can be used to retrieve an item's dependent items and its siblings.
The C++ member function CSftBox::GetParent hides the CWnd::GetParent function. Use CWnd::GetParent explicitly to retrieve the parent window of the combo box control.
See Also C/C++ API | Categories | Notifications