WxWidgets wxTreeCtrl

来自泡泡学习笔记
BrainBs讨论 | 贡献2024年9月30日 (一) 19:05的版本 (创建页面,内容为“ ===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…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

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.