How to add a picture on tooltips? |
Post Reply |
Author | |
alen821125
Newbie Joined: 17 May 2011 Status: Offline Points: 7 |
Post Options
Thanks(0)
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.
|
|
alen821125
Newbie Joined: 17 May 2011 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
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); |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |