Click to See Complete Forum and Search --> : treeview-message


Cash-Einsacker
January 19th, 2004, 02:26 PM
halle, i would like to insert in a treeview-control columns.
I think i have to use the LVM_COLUMN-MEssage, but with a treeview it doesnt work.

Could somebody help me out?




Greets

Stoodent
January 19th, 2004, 05:25 PM
TVITEM mytvitem;
mytvitem.mask = TVIF_TEXT;
mytvitem.pszText = "something";
mytvitem.cchTextMax = 10; // length of string above including 00 termination code
LPTVITEM mylptvitem = &mytvitem;

pCWnd_tree->SendMessage(TVM_GETITEM, 0, (long) mylptvitem); // pCWnd_tree points to the TreeView32 control


Is it that what you're looking for ?

Cash-Einsacker
January 20th, 2004, 02:13 AM
no, i want a treeview, with Columns, like thelistview.
but how to create the columnheaders.



Greets