Solved

CToolTipCtrl control mixed text color

Posted on 2000-05-08
2
728 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
ID: 2797868
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
ID: 2798078
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 42
post4 challenge 28 104
abstract class with all non abstract mentods 6 80
Problem to App 4 98
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 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