Solved

question of CTreeCtrl 's  default tools tip

Posted on 2004-04-07
7
201 Views
Last Modified: 2013-11-20
CTreeCtrl 's  default tools tip,tip can only show the item which has more than 30 letters, how can I set it be shown all item ?
0
Comment
Question by:csdnchen
  • 3
7 Comments
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 10775221
On your resource, right click on your tree control -> properties->more styles-> Tool tip (checked)
This is by default for any tree control.
If the length of the tree item is going beyond the width of the tree control, tool tip will be shown to the user.
In your case probably your tree control width is 30 char long. That could be the reason you see tool tip for those items exceeding the length of 30 chars.If you make it short, you will see tool tips for all items.

-Lakshman
0
 

Author Comment

by:csdnchen
ID: 10776880
in my case , even I make it shorter than the ctreectrl , i can not see the tools tips for the item less than 30.
0
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 10776959
I meant if you make ur CTreeCtrl width shorter. (say to display 10 chars)  all the items in your control with length more than 10 chars will have tool tip. This is the default behaviour of the tree control.

-Lakshman
0
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 50 total points
ID: 10778753
You can also refer to
http://www.codeguru.com/Cpp/controls/treeview/article.php/c3995/
for explicitly setting the tool tip to the tree item text or data.
Plz have a look at the method 'CTreeCtrlCh::OnToolTipText( UINT id, NMHDR * pNMHDR, LRESULT * pResult )'

-Lakshman
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
GIF file bit manipulation for color change 5 107
Unix / Linux grid computing 5 149
Pressing cancel button with C# UI Automation 3 51
Capture logon name 13 46
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now