Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPToolBar wan't show Tooltips
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPToolBar wan't show Tooltips

 Post Reply Post Reply
Author
Message
user0815 View Drop Down
Newbie
Newbie
Avatar

Joined: 01 July 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote user0815 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPToolBar wan't show Tooltips
    Posted: 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


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
user0815 View Drop Down
Newbie
Newbie
Avatar

Joined: 01 July 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote user0815 Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2007 at 9:10am
Hello oleg,

it works !

One additional Line is requiered:

    m_pCommandBars->SetSite(this);

Thank you !


Andreas

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.047 seconds.