HeaderPane
Main
Hide
Share Link
Print

Parent

Returns an item's parent index.

C

LONG WINAPI SftBox_GetParent(HWND hwndCtl, LONG indexTC);

C++

LONG CSftBox::GetParent(LONG indexTC) const;

Parameters

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.

Returns

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.

Comments

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


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