Insert icons CTreeCtrl (some items only)
C / C++ / MFC
4
Posts
2
Posters
0
Views
1
Watching
-
Is there any way to insert some icons to an CTreeCtrl, but only on some icons, and other one's not ? If yes, how can I do that ?
-
you set the icon group via CTreeCtrl::SetImageList[^], and then use the offset into the list to set the icon for individual tree items. If you use an invalid offset then no icon will be displayed.
-
Yes, I try that, but remain there an ugly empty space (between tree line and tree text) ...