Solved

CToolTipCtrl control mixed text color

Posted on 2000-05-08
2
711 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:headley
2 Comments
 
LVL 23

Accepted Solution

by:
naveenkohli earned 200 total points
Comment Utility
Look at some of these articles. These should give you some idea on how to accomplish what you are trying to.

Good Luck!

http://www.codeguru.com/controls/extended_tooltip.shtml

http://premium.microsoft.com/msdn/library/sdkdoc/c622_7nzn.htm

http://www.codeguru.com/controls/BalloonTooltip.shtml
0
 

Author Comment

by:headley
Comment Utility
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
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now