I guess the source files have been updated and are no longer in sync with the project instructions on code guru. This looks like JUST what I need, but I'll have to mess around with it a bit to get it to work...
1) One example of a discrepancy is that the code guru write-up by D. Lanstman says to
3. Layout a user-defined control inside the dialog into which the control is supposed to be intserted. In the class field type: "LANTIVTREELISTCTRL"
while the example source uses a Static Text object in the RC file:
2) Also, maybe I'm having a problem b/c I'm doing this in an OnInitDialog() call, but I'm getting assertions at runtime, because the
BUT yet the hwnd of this image list is needed when the TLFrame sets up the tree, header and scroll bars... I can't set the image list 1st though b/c the m_tree isn't created...
I'll post any comments when I get this to work properly in my project. THANKS! :)
Did you ever got this code
Posted by ayana
on 05/29/2004 04:45pm
Can you pass on to me?... thank you very much in advance
When I change the image list in my CTreeView (going from a large 48x48 image list to a 22x22 image list, the control does not redraw the tree correctly. The lines (going from the plus signs to the main nodes in the tree) are really long. If I close the view and open it again, the tree draws correctly. Has anyone seen this?
In visual studio, I rightclick my Dialog class in the project classes, and I select 'Add window message Handler', but when I select the ID of the three (IDC_TREE), i have no message to select, and I cannot add handler.