FMayis
asked on
Customizing the CTreeCtrl drawing...
Hi,
I'd like to create a new CTreeCtrl class, that allows the user to specify for each added item, not the index of the image in the resource but a bitmap path name.
Then, on drawing, i'd like to stretch the bitmap to have it like the normal mage of any item.
The problem is that i don't really know how?
Do i have to overload the paint function?
Do i have to create entirely the control? :(
Can someone give me some help, ideas, and known ips for this kind of job?
thanks a lot!
I'd like to create a new CTreeCtrl class, that allows the user to specify for each added item, not the index of the image in the resource but a bitmap path name.
Then, on drawing, i'd like to stretch the bitmap to have it like the normal mage of any item.
The problem is that i don't really know how?
Do i have to overload the paint function?
Do i have to create entirely the control? :(
Can someone give me some help, ideas, and known ips for this kind of job?
thanks a lot!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
i create dynamically the list and it works!
i create dynamically the list and it works!
http://www.codeguru.com/treeview/GHCustomDraw.shtml