SftTree/DLL 6.5

Parent

Softel vdm, Inc.

Returns an item's parent index.

C

int WINAPI SftTree_GetParent(HWND hwndCtl, int index);
int WINAPI SftTreeSplit_GetParent(HWND hwndCtl, int index);

C++

int CSftTree::GetParent(int index) const;
int CSftTreeSplit::GetParent(int index) const;

Parameters

hwndCtl

The window handle of the tree control.

index

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 or if an error occurred.

Comments

The GetParent function returns an item's parent index. 

See Also  C/C++ API  |  CategoriesNotifications

 


Feedback / comments / error reports for this topic
© 2009 - Softel vdm, Inc. - www.softelvdm.com