?
Solved

question of CTreeCtrl 's  default tools tip

Posted on 2004-04-07
7
Medium Priority
?
213 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
[X]
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
  • 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 200 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

764 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