Link to home
Start Free TrialLog in
Avatar of headley
headley

asked on

CToolTipCtrl control mixed text color

I am using a CToolTipCtrl object in my view class, and adding tooltips for different regions in the view, based on some icons I drop there... basically as a way of displaying some reference text about the area of the screen.  However, I would like to find a way to display more than one color for the text that pops up.  So far, I cannot quite figure out where the "Draw tool tip window" code actually resides in the MFC source and am unsure on how to draw the tool tip window myself in subclassing the control to a custom class (CMyToolTipCtrl), since CToolTipCtrl does not seem to have a drawing/painting override function other than the one it inherits from CWnd.  Does anyone have any ideas?  I still want to keep the basic features of the ToolTipCtrl... i.e. the methods in which the tool tip text drops down over the course of a couple hundred miliseconds or so (rather than just appearing), and figure I will have to copy most of the MFC source code and make my modifications to use 2 text colors rather than 1.  However, finding the source code where the drawing takes place seems to be the problem.

Thanks in advance

Garrett Headley
ASKER CERTIFIED SOLUTION
Avatar of naveenkohli
naveenkohli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of headley
headley

ASKER

Thanks for the help...

By the way, the first link is completely useless, and actually quite redundant.  The second link no longer exists, or has been move to another location.

The third link, the BalloonTooltip, is the actual useful info, I'd say.

Garrett