Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Change tooltip text before tooltip show
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Change tooltip text before tooltip show

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: Change tooltip text before tooltip show
    Posted: 12 August 2005 at 7:04am
Hello,

How can i change tooltip text, before tooltip is show.
I known with pControl->SetTooltip i can set it.
But i will set it before Tooltip is show.
At this position i will change it.

CXTPCommandBar::OnToolHitTest(CPoint point, TOOLINFO* pTI) const
But here is now way tohook into.

How can i do this.

    Jimmy
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 12 August 2005 at 2:37pm

so you need dynamic tooltips... for all controls or some?

if only for one - override CXTPControl::GetTooltip

if all - create custom Toolbar class; call pCommandBars->SetToolBarClass to use it, override OnToolHitTest.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.109 seconds.