• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

question of CTreeCtrl 's default tools tip

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
csdnchen
Asked:
csdnchen
  • 3
1 Solution
 
lakshman_ceCommented:
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
 
csdnchenAuthor Commented:
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
 
lakshman_ceCommented:
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
 
lakshman_ceCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now