![]() |
Tooltips for toolbars in a view |
Post Reply
|
| Author | |
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
Topic: Tooltips for toolbars in a viewPosted: 17 April 2008 at 8:00am |
|
Hello all,
I've got some toolbars embedded in view-derived classes and they're not getting the nice tooltips (Office2007-style). Toolbars that are in the frame windows have them though because of the following code: CXTPToolTipContext* pToolTipContext = pCommandBars->GetToolTipContext(); pToolTipContext->SetStyle(xtpToolTipOffice2007); pToolTipContext->ShowTitleAndDescription(); pToolTipContext->SetFont(pCommandBars->GetPaintManager()->GetIconFont()); pToolTipContext->ShowImage(true); // Get a pointer to the command bars object. but in the view classes I don't have a command bars object... Is there any easy way to have the tooltips in this style there as well, or do I have to override the OnToolHitTest() function (that's being the ugly way :))? Thanks in advance. |
|
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 April 2008 at 8:42am |
|
Hi,
There was samle in forum how to attach some pCommandBars to single Toolbar.
Try to search with "SetCommandBars" string.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 April 2008 at 8:58am |
|
Thank you!
I found and used code from this topic and it works perfectly ![]() http://forum.codejock.com/forum_posts.asp?TID=6700&KW=SetCommandBars |
|
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
|
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 |