Originally posted by: Jesper Lauge Nielsen
I should be able to change the icons while showing the tree.
Any suggestions are welcome.
Jesper
I would like to draw the icons on the fly, This is no problem in CListCtrl, where the I can derive DrawItem.
This is though not possible with the CListCtrl class.
Regards
Originally posted by: Will Sargent
I don't have any problem with making an image list and using the treeview with that, but I don't understand why we need the imagelist in the first place if the standard ones exist in windows explorer. Isn't there some way we can just connect to the bitmap that explorer uses for the treeview instead of pushing pixels?
I'm a VC++ newbie, so maybe I'm missing something.
ReplyOriginally posted by: Carlo Faessler
I've made the Bitmaps for the Imagelist and named the resource IDB_IMAGELIST...
When I call the member-function "create" of my ImageList-member-variable and pass IDB_IMAGELIST
(the value of it is 130) as argument, I get the error message "undeclared identifier". But that
cannot be true!
The header-file "Resource.h" is correctly included and there IDB_IMAGELIST is also defined as
130. I also didn't make any syntax errors (I'm really sure...).
I also disabled the use of precompiled headers...
When I pass the value of IDB_IMAGELIST (130) as the first argument, the whole bullshit works...what is going on???
Anyone has an idea???
Originally posted by: seah
I've used tree control in my software but it can only display 16 colors eventhough I change the bitmap to 256
colors. Is it the problem of the control?? If so must I write a new custom control ??
Thanks
Reply