I have I little question:
I have a TreeView and each Item is represented
with a "blue circle" (or a "red circle") and a text.
So I have my bitmap in the resources, with two different
images (red/blue circles).
Now I have to use up to 256 coloured circle images...but
I don't want to put in my resources 256 different circles...I think this is stupid!
How can I do?
The best way, I think, is to use only 1 image and colour
it...but how ?
please..if you can help me in putting the icon of the tree view item in the run time also,if we can else changing it without reloading >because i work on the database appl. and it has big records to reload<.....
im trying to set up a tree with an ownerdraw checkbox
i cant add another image near the checkbox
when i associate an image state with my tree i use
TVSIL_STATE for the states
m_tree.SetImageList( &(m_tree.m_imageState), TVSIL_STATE);
for the other image if i accociate another bitmap like
m_tree.SetImageList( &(m_tree.m_imageBmp), TVSIL_NORMAL);
i get the system checkboxes and the images but not my ownerdraw checkboxes
Does anybody know anything about this error? The MSDN library's documentation on it is small and hard for me to understand. I'm working with a dialog-based project created with the MFC AppWizard. I have ddutil.h included at the top of a CDialog-derived class' file. I've had to add ddutil.cpp to the workspace to avoid a LNK2001 error on certain functions, but I can't get around this bug. I haven't had any problems with non-MFC programs. Thanks...