Originally posted by: JohnK
I know this is an old thread, but did anyone ever end up getting the source for CheckDirectorySizes? I could really use it!
Originally posted by: Youngblood
I use the TreeListCtrl has some sort of display which change the value in it constently, but I had problem with the parent node, cause if they where open or close the SetItemText method() would update different row... Fix it with a little change were you overide the SetItemText Method, here it is.
BOOL CTreeListCtrl::SetItemText
(
int nItem,
int nSubItem,
LPCTSTR lpszText
)
{
m_tree.at(nItem).m_lstCols[nSubItem] = lpszText;
//***Added Code***
LVITEM item;
item.iItem = nItem;
GetItem(&item);
BOOL bResult = TRUE;
if(item.lParam == nItem)
bResult = CListCtrl::SetItemText(nItem, nSubItem, lpszText);
//***Added Code***
return bResult;
}
Tell me what you think?
An by the way, I did the same thing to the SetState Method... It's a way to synchronise your Array of List with the Visual... Any disadvantage you think? Would it be a good thing for all methods that act directly on a precise row?
ReplyOriginally posted by: spud
Very nice -- just what I needed. Thanks.
ReplyOriginally posted by: Zane
Any chance someone has this in some C# code?
Thanks
ReplyOriginally posted by: Scott R.
The control has a problem correctly collapsing the tree items. For example:
- A
+ a
+ a
- B
+ b
+ b
When the '-' for B is clicked on, the following results:
-A
-B
+ b
+ b
Also, if the items were added in the order of the B's first and then the A's, it will still display as shown above. How do I turn off the sorting and is that the cause of my problem?
Thanks,
Scott R.
P.S. I am using VC++ 6.0
Reply
Originally posted by: harvinder
Its a great work, how can I add a multiple selection to this ?
Or probably checkbox in front of the item will be good enough !!!
Please comment
Regards
HArvinder SIngh
Originally posted by: Rand Batchelder
Do you have any advice on porting to Windows CE ?
ReplyOriginally posted by: gurudev
hi
how to add checkboxes to all columns but only for first column of the root items
thanks
ReplyOriginally posted by: Michael
Bombed at almost the end of reading my C drive and created some sort error file and closed.
Looked nice up to that point.
ReplyOriginally posted by: YSLee
Ex)
How to correct this bug?
<pre>
Greate useful your control, if except one bug
Folder size
C:\ 100
-> ProgramFiles 60
D:\ <-- Not displayed
-> Winnt 150
</pre>