TreeCtrl
-
Hallo!
Ich hätte gerne den Knoten eines TreeCtrl mit einem "+" (Expandzeichen) vorbelegt, ohne daß es tatsächlich Unterelemente besitzt.
Ist das überhaupt möglich?
-
MSDN:
TVITEM.cChildren=I_CHILDRENCALLBACK:
The parent window keeps track of whether the item has child items. In this case, when the tree view control needs to display the item, the control sends the parent a TVN_GETDISPINFO notification message to determine whether the item has child items.
If the tree view control has the TVS_HASBUTTONS style, it uses this member to determine whether to display the button indicating the presence of child items. You can use this member to force the control to display the button even though the item does not have any child items inserted. This allows you to display the button while minimizing the control's memory usage by inserting child items only when the item is visible or expanded.