Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

question of CTreeCtrl 's  default tools tip

Posted on 2004-04-07
7
205 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 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