[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

question of CTreeCtrl 's  default tools tip

Posted on 2004-04-07
7
Medium Priority
?
219 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

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 …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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