Originally posted by: Dmitri Grigoriev
I modified this control and now you don;t need to call Register class and SubClassDLgItem, because I override PreSubclassDlg.
You have to put Static on the your dialog and define a variable in you dialog class
CTLFrame m_wndFrame
, then you run your program and you'll can see that CTreeListCtrl will be shown at your dialog.
if you need this sources you can contact with me via email.
and I'll send you sources.
Hi anybody out there got this working with the bugs fixed could they please let us all know. Thanks Dave
ReplyHi Dmitri, Can you share your new verion of the Multi Column tree ctrl. I haven't even been able to download the original version from the web. I'd really appreciate it..
ReplyOriginally posted by: Keri
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:
LTEXT "",IDC_TREELIST,0,0,30,20,WS_BORDER
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
m_wndMyTreeList.SubclassDlgItem(IDC_TREE_LIST, this);
precedes the
m_wndMyTreeList.m_tree.SetImageList(&m_MyTreeImageList, TVSIL_NORMAL);
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! :)
Can you pass on to me?... thank you very much in advance
ReplyOriginally posted by: Marlow
Is it possible to auto-scroll a large tree that extends beyond visible boundries during a drag & drop function?
Specifically, as you pull an item down, can you scroll up the tree?
ReplyOriginally posted by: Dwain Keen
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?
Thanks for your input.
Reply
Originally posted by: Olivier Detry
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.
Pleaaazzzzz Heeeeelp.
Thanx.
ReplyOriginally posted by: Caching
How to move item or branch in Multi column tree control?
Originally posted by: MC
I can't get it to work on LVN_GETDISPINFO, the indentation remains unchanged...
ReplyOriginally posted by: RaymondFalck
As I'v understood there is a newer version available.
Could somebody tell me where I can find it?
With kind regard,
Raymond
Ray, I haven't even been able to get the original version, did you ever got the new or the old it doesn't matter. Can you pass it to me? Thx very much in advance
ReplyOriginally posted by: Andreas Kostian
Hi,
is there any way to use different colors per line. The SetItemColor-Method sets the color for all columns of that item.
Andreas
Originally posted by: helamonster
m_wndTreeList.m_tree.ModifyStyle(NULL,TVS_CHECKBOXES);
...and I can see the checkboxes fine, but I can not check/uncheck them
does anyone have an idea how I could use checkboxes ?
+ set 1
I need checkboxes for the items in the tree, so I add:
also, if there is a way that I can have checkboxes only on certain items, that would be great.
I need something like this:
|-[X]entry one
|-[ ]entry two
+ set 2
|-[ ]entry one
|-[ ]entry two
- set 3
- set 4
+ set 5
|-[X]entry one
|-[X]entry two
- set 6