Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to add a picture on tooltips?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add a picture on tooltips?

 Post Reply Post Reply
Author
Message
alen821125 View Drop Down
Newbie
Newbie


Joined: 17 May 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote alen821125 Quote  Post ReplyReply Direct Link To This Post Topic: How to add a picture on tooltips?
    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.
Back to Top
alen821125 View Drop Down
Newbie
Newbie


Joined: 17 May 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote alen821125 Quote  Post ReplyReply Direct Link To This Post 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);
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.