Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

SelItems

Fills an array with the index numbers of currently selected items.

C

int WINAPI SftTree_GetSelItems(HWND hwndCtl, int max, LPINT lpItems);
int WINAPI SftTreeSplit_GetSelItems(HWND hwndCtl, int max, LPINT lpItems);

C++

int CSftTree::GetSelItems(int max, LPINT lpItems) const;
int CSftTreeSplit::GetSelItems(int max, LPINT lpItems) const;

Parameters

hwndCtl

The window handle of the tree control.

max

The maximum number of index entries to retrieve.

lpItems

Address of an area where the index entries of up to max index entries will be returned.

Returns

GetSelItems returns the number of selected entries returned in lpItems, 0 if no items are selected or -1 if an error occurred.

Comments

This function applies to multiple selection trees only, and cannot be used with single selection tree controls.

GetSelItemsArray is used to retrieve all selected items.

The buffer lpItems where the index entries are returned has to be large enough to receive up to max integer values.

See Also C/C++ API | Categories | Notifications