Print Page | Close Window

How to add a picture on tooltips?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=18599
Printed Date: 23 May 2024 at 2:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add a picture on tooltips?
Posted By: alen821125
Subject: How to add a picture on tooltips?
Date Posted: 29 June 2011 at 4:43am
 
Hi:
 
 I do like the sample of RibbonSample, but the picture can not display in ID_MENU_FILE tooltips.
 
 could you tell me how to do. Thanks.



Replies:
Posted By: alen821125
Date Posted: 19 January 2012 at 12:55am
 CXTPToolTipContext* pToolTipContext = GetCommandBars()->GetToolTipContext();
 pToolTipContext->SetStyle(xtpToolTipResource);
 pToolTipContext->ShowTitleAndDescription();
 pToolTipContext->SetMargin(CRect(2, 2, 2, 2));
 pToolTipContext->SetMaxTipWidth(180);
 pToolTipContext->SetFont(pCommandBars->GetPaintManager()->GetIconFont());
 pToolTipContext->ShowImage(TRUE,0);



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net