Click here to Skip to main content
Click here to Skip to main content

CTreeListCtrl with tooltips

By , 13 Jun 2001
 

Sample Image - TreeListCode.jpg

Introduction

This project was written to provide you with a Tree List to put on any CView. It supports images, checkboxes, and all the functionality of both CTree and CList Controls. It automatically resizes itself when the user changes the window it has been attached to it. Clicking on the List Header will sort the tree either in ascending or descensding order.

Just have a look at the attached code and if you have any problems don't hesitate to mail me.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Gary Andrew Lewis
Software Developer (Senior) Hamilton Grant
United Kingdom United Kingdom
Member
I like to program because I'm good at it!
 
My latest websites and products areas follows:
 
Saving Money Expert
 
Work From Home
 
Anyone need a room or have a room then visit my newest property / room management Free Room Share site: Flat House Share website or alternatively book a hotel by finding Cheap Hotel Prices.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Generalmultiline text in nodememberjatin dave20 Jan '09 - 21:52 
Sir, Great application, but i want multiline text in node,
for e.g.
 
first view:
 
+ Node
 

Then:
 
- Node
+ Node is in
   Multiline
Generalcustom the ctreectrl in ctreeivewmembermiteverest07079 Aug '05 - 19:41 
excellent!but I want to custom the ctreectrl in ctreeivew,could you tell me how to do it?Laugh | :laugh:
QuestionHow to use it into a dialogmemberaccarvajal31 Aug '04 - 13:35 
I use MFC, but i need to use your class in a dialog, when i tried to do it it does not show anything, i don't know if OnPaint Event has a problem, but when i move mouse over treectrl it tries to show some item like a flicker way, and then is cleared, I don't know if something is painting over items?
 

Thanks for your help
GeneralForwarding messages to parentmemberpaula210217 Apr '03 - 5:30 
Tooltips are catching all messages while they are shown.
 
I added the line
 
ToolInfo.uFlags|=TTF_TRANSPARENT;
 
in the function
 
void CNewTreeListCtrlView::DisplayToolTip(CPoint point, TVHITTESTINFO hInfo, CString colText)
 
after the line
ToolInfo.uFlags|=TTF_ABSOLUTE;
 
to forward all messages to the parent window.
 
Cheers
Dirk
GeneralProblem while pressing on New (CTRL + N)memberEhud13 Jun '02 - 4:28 
While i do that , Debug Assertion Failed window message appears.
 
the file mentioned is wincore.cpp
and the line is 628
 
any ideas what's wrong?
GeneralRe: Problem while pressing on New (CTRL + N)memberDavid.Kelly7 Oct '04 - 8:20 
The CTRL+N is in your resources probably the IDR_MAINFRAME accelerator. This is a shortcut for create a new document. You can handle it several ways but if you do not allow the user to create a new document you can remove it from the resource and you should have no further problems with it. You might also want to look at CTRL+0 (opens a document) and some of the others to see if you have problems with them as well.
QuestionHow to edit labels?memberWang Xingbo8 Nov '01 - 15:22 

Can you tell me how to edit a label or text in list col?
 
Please tell me:wxbstudio@mail.com
Generalproblem with horizontal scroll barmemberreal name21 Jun '01 - 21:46 
download, build and run demo
try expand all expandable
resize window to minimal width - second (tree's original) scroll bar appears
sometimes two scroll bars
sometimes scroll bar over header control and/or half-transparent
 
(visible blinking during resize - not because yellow background: 2xRGB(250,254,218))
GeneralText formattingmemberRupreck19 Jun '01 - 2:48 
Can anyone suggest how to format certain words displayed in some of the cells. Eg for an entry 'This is my Entry' I would like to make the word 'my' bold and the 'is' green.
 


GeneralA good start!memberAnonymous14 Jun '01 - 5:45 
But a couple things I noticed on my Windows 2000 box:
 
* the focus rectangle is not displayed when the first item in the tree is selected
* the tooltip for a selected item and some non-selected items are not aligned directly on top of the item's text (it's slightly to the right)

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 14 Jun 2001
Article Copyright 2001 by Gary Andrew Lewis
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid