Print Page | Close Window

CXTPToolBar wan't show Tooltips

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7493
Printed Date: 13 November 2025 at 2:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPToolBar wan't show Tooltips
Posted By: user0815
Subject: CXTPToolBar wan't show Tooltips
Date 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





Replies:
Posted By: Oleg
Date 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


Posted By: user0815
Date Posted: 02 July 2007 at 9:10am
Hello oleg,

it works !

One additional Line is requiered:

    m_pCommandBars->SetSite(this);

Thank you !


Andreas




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net