|
|
|
Sibling |
Returns an item's sibling information.
C
int WINAPI SftTree_GetSibling(HWND hwndCtl, int index, int type); int WINAPI SftTreeSplit_GetSibling(HWND hwndCtl, int index, int type);
C++
int CSftTree::GetSibling(int index, int type) const; int CSftTreeSplit::GetSibling(int index, int type) const;
Parameters
hwndCtl
The window handle of the tree control.
index
The zero-based index number of the item for which sibling item information is to be retrieved.
type
A value indicating the type of sibling item information to retrieve.
SFTTREE_SIBLING_FIRST |
Retrieve the index of the item's first sibling. |
SFTTREE_SIBLING_LAST |
Retrieve the index of the item's last sibling. |
SFTTREE_SIBLING_PREV |
Retrieve the index of the item's previous sibling. |
SFTTREE_SIBLING_NEXT |
Retrieve the index of the item's next sibling. |
Returns
The return value is the index of the requested sibling item or -1 if the specified item doesn't have a sibling of the specified type.
Comments
The GetSibling function returns an item's sibling information.
See Also C/C++ API | Categories | Notifications