I receive random HTREEITEM results when I use 'HitTest' in 'OnContextMenu' - but never the one I really clicked on. Without that function the control is pretty useless because a control is supposed to offer interaction between data und user.
Trying to change the column width and the column format but it does not work.
SetColumnWidth(1,100); // No change
col.mask = LVCF_TEXT | LVCF_FMT | LVCF_WIDTH;
col.pszText = _T("Test");
col.fmt = LVCFMT_RIGHT;
col.cx = 100;
SetColumn(1,&col;) // No change
you find the actual sources of the control on my
Use the extended style TVS_EX_HIDEHEADERS.
(see at CTreeListCtrl.chm "Extended Styles")
When using the treelist (version from http://members.inode.at
/anton.zechner/az/TreeList.htm) the list doesn't update well in Vista.
When I collapse and then expand the items in the tree, the text in the 2nd and 3rd columns are not updated right. See the screenshot at: http://jvmeerman.googlepages.com/TreeViewBug.jpg. The right screen shows the tree as it should look like. The left screen shows the tree after collapsing and expanding.
I've tested this in XP and in Vista. In XP it works fine, in Vista this problem occurrs. On resize the tree is refreshed and it shows correct again.
Posted by xyz007
on 01/04/2009 10:45am
I have posted a new version on my homepage.
In this version i can't reproduce this problem
line 8514: case WM_MOUSEWHEEL:
line 8575: case WM_HSCROLL:
line 8539: case WM_VSCROLL:
add: (for edit can't move)
if (pData->uEditItem) return 0;
line 5260: return pData->pItemPos[uPos+1];
---> return pData->pItemPos[uPos];
line 5373: return pData->pItemPos[uPos-1];
if ( uPos < 2 ) return 0;
when have big image
line 10197: sButton.bottom = sArea.bottom;
---> sButton.bottom = iYpos + pData->iFontHeight;
when pData->uScrollX > 0, "..."error
line 10211: if(sArea.left+pEntry->iTextPixels>=sArea.right)
--> if(sArea.left+pEntry->iTextPixels >= sArea.right -pData->uScrollX)
line 10215: iSize = sArea.right-sArea.left;
--> iSize = sArea.right-pData->uScrollX-sArea.left -2;
I was looking for a tree list control to be used in a support tool, which is being used inside my organization. Can I use the source files for my purporse? In a previous comment I found that if one is using this code, the application should be published as well. Does the same apply for my situation? (The tool I intend to use this treelist concentrates highly on software developing practices within the company and I dont see any use of this tool outside the organization even if published.)
In none commecial programms
Posted by xyz007
on 02/05/2008 07:20am
You can use it, if you don't sell your programm.
In the ohter case you must publish the source of your program.
Note: The newes sources are on my homepage. I have fixed some bugs, and new features are implemented.
I found 2 bugs:
- In TreeListInsertItem when you look to find a new handle for the item you do:
but uPos should be tested for >= because in the function TreeListGetItem you test:
So if there is an item that has exactly the handle equal to uTreeItemsMax you cannot get the data associated to it.
- Second: the tooltip window is set as top-level and you see its creation in the application bar.
- Another thing: is this control GPL or LGPL license?
I have all fixed
Posted by xyz007
on 06/29/2007 02:13pm
Thank you for your hints.
I have fixed the bugs in TreeListV5.zip,
or on my HomePage:
The code is unter GPL. Comercial users must publish thier code, or make an aggrement with me.