Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC VS2010
Hello
 
I add tooptip to Ribbon using the following code:
CMFCRibbonColorButton* pRootColorBtn = DYNAMIC_DOWNCAST( CMFCRibbonColorButton, pRibbonBar->FindByID(ID_DUPLICATE_ROOT_COLOR));
 
pRootColorBtn->SetToolTipText( "Selection of Color for Root File of Duplicate Files");
strText = "\n\nClick on this Button to Select the Color of the Duplicate Root File. ";
strText += "\n\nA Duplicate Root File is the First File of a List of Files that will be renamed with the same name.";
strText += "\nThis happens when the Renaming Mask is poorly discriminant or when pictures are taken in Burst Mode.";
pRootColorBtn->SetDescription( strText);
I would like to change the size of the tooltip rectangle, so that the width is inscreased (I do not like the default width ...)
 
Any idea how to do this ? Thanks for your help ..
 
Thierry
Posted 20-Oct-12 0:27am
Edited 20-Oct-12 0:59am
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Override the CMFCToolTipCtrl::OnDrawLabel[^] function and set the size to what you want it to be.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Ok ... I look for samples on Web and see how it works ... Thanks for driving me in the right direction ...
 
Thierry
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 PIEBALDconsult 150
3 BillWoodruff 148
4 Jochen Arndt 135
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 27 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100