Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello

I add tooptip to Ribbon using the following code:
C++
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
Updated 19-Oct-12 23:59pm
v3

Override the CMFCToolTipCtrl::OnDrawLabel[^] function and set the size to what you want it to be.
 
Share this answer
 
Ok ... I look for samples on Web and see how it works ... Thanks for driving me in the right direction ...

Thierry
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900