![]() |
CXTPToolBar wan't show Tooltips |
Post Reply
|
| Author | |
user0815
Newbie
Joined: 01 July 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPToolBar wan't show TooltipsPosted: 01 July 2007 at 8:16am |
|
Hello,
i have a simple CWnd showing a CXTPToolBar, no CommandBar. If it is running in a ordinary MDI application the toolbar works fine, the tooltips are visible and update ui is working. When my CWnd is runnig as a active-x control in another application no update ui and no tooltips are shown at all. I started a timer to create update ui messages, this works fine. But what to do to show the tooltips ? Perhaps some messages are not routed properly to the toolbar, but which are required and how to get them ? Thank you for any help ! Andreas |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 July 2007 at 4:29am |
|
Hi,
Standard tooltips can't work in ActiveX. (search in MSDN about it) but you can use our tooltips.
you need create some commandbars and attach it to toolbar before you create it:
constructor
m_pCommandBars = (CXTPCommandBars*)CXTPCommandBars::CreateObject();
destructor:
m_pCommandBars->InternalRelease();
before create
m_wndToolBar.SetCommandBars(m_pCommandBars);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
user0815
Newbie
Joined: 01 July 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 July 2007 at 9:10am |
|
Hello oleg,
it works ! One additional Line is requiered: m_pCommandBars->SetSite(this); Thank you ! Andreas |
|
![]() |
|
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 |