Multi colum tree / list control
Posted
by Mihai Filimon
on October 19th, 1998
Some features of CTsyslistviewex, class derived from CListCtrl:
Some features of CTreeMultiColumnCtrl, class derived from CTsyslistviewex:
Sample:
I suppose that the tree control has 2 columns, name and description:
If the user calls:
control.Fill("Root1%Description of root1(Child1%DChild1,Child2%DChild2),Root2%3,Root3")
The control will contain something like this:
+ Root1 | Description of root1
Child1 | DChild1
CHild2 | DChild2
+ Root2 | 3
Root3
Date Posted: 07/08/98

Comments
HELP ..!!! set and get item data
Posted by dhanya on 02/10/2005 02:35amhi your control is excellent..!!! that saved me right now... then how can i set a data to the list control item so that i want to retrieve that data later ( like the SetItemData and GetItemData()) please help me thanks in advance dhanya
ReplyMaybe bug under win98
Posted by Legacy on 11/25/2002 12:00amOriginally posted by: ken
second, third columns attached with bitmap show text of first column.
ReplyI create a listview with 3 columns. First column show text, and second, third show bitmap. It's OK under win2k and winxp, but under win9x, text show in secord and third column too, why?
Warning - it can suck up a lot of GDIs
Posted by Legacy on 07/01/2002 12:00amOriginally posted by: alan
I posted a bunch of questions in the CodeGuru forumns after discovering that this thing swamps Windows98 and Millenium after 400 or so GDI objects are created with the AttachBitmapCell() (..CTColumnBitmap)
I had about 100 rows with about 4 bitmaps for each row.
Someone suggested using a DIB instead of DDB. I'm not real knowledgable about these but it might be an improvement.
ReplyProgrammatic Selection Of List Items (Multiple )
Posted by Legacy on 06/10/2002 12:00amOriginally posted by: Sriram
Hello,
ReplyLet me appreciate your code first. It is very neat and professional.
I ahve a question for you.
Can i progrmmatically select specific list items?
Let us say I want to differnetiate Group A and B due to certain conditions. Can i use SelectItem()?
How can i do it?
Please mail me the solution
Thanks in Advnace
Sriram
How to use in non-diagloge application
Posted by Legacy on 05/08/2002 12:00amOriginally posted by: Stefan
Hello,
I would like to implement the CMultiTreeCtrl class
in a non-diagloge based application.
I tried to use the Create function but this doesn't
seem to work.
Please let me know if anybody knows how to handle this
problem.
Thx.
Replybug in multi-column tree control -
Posted by Legacy on 02/28/2002 12:00amOriginally posted by: Konermann
In the Methode CTreeMultiColumnCtrl::DrawCell
1) Resoucen-Error:
- set the &-Key by penGray:
CPen* pOldPen = (CPen*)pDC->SelectObject(&penGray);
- Select the pOldPen
...
drawRect.left = x + 2;
pDC->SelectObject(pOldPen);
pDC->SelectClipRgn(NULL);
...
In the CLASS CTsyslistviewex
2) Size-Error
- Set in the Tsyslistviewex.h:
...
int m_nHeightRel;
BOOL m_nHeightRel_aktiv;
CMap<int,int, CTColumnBitmap*, CTColumnBitmap*>_bmpColumns;
...
- set the varible m_n_HeightRel_aktiv in CTsyslistviewex::CTsyslistviewex false
...
m_nHeightRel = nHeightRel;
m_nHeightRel_aktiv = false;
m_bSorted = false;
...
- change the Methode
void CTsyslistviewex::MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
{
if (m_nHeightRel_aktiv==false) {
m_nHeightRel_aktiv=true;
lpMeasureItemStruct->itemHeight += m_nHeightRel;
}
}
ReplyExTree
Posted by Legacy on 10/18/2001 12:00amOriginally posted by: Mike Philis
ReplyBug maybe
Posted by Legacy on 06/22/2001 12:00amOriginally posted by: alan
ReplyCan't add data to columns in top level rows
Posted by Legacy on 05/18/2000 12:00amOriginally posted by: Jed
You cannot add text to any cell, except the first column, in the top level rows in the TreeCtrlMultiColumn. Only subrows can have data beyond the first column. Is this a bug or a feature?
ReplyDouble click source
Posted by Legacy on 04/23/1999 12:00amOriginally posted by: Danny
ReplyLoading, Please Wait ...