WxWidgets wxTreeCtrl
跳到导航
跳到搜索
AppendItem()
Appends an item to the end of the branch identified by parent, return a new item id.
The image and selImage parameters are an index within the normal image list specifying the image to use for unselected and selected items, respectively. If image > -1 and selImage is -1, the same image is used for both selected and unselected items.
GetSelections()
Fills the array of tree items passed in with the currently selected items.
This function can be called only if the control has the wxTR_MULTIPLE style.
Returns the number of selected items.