Solved

CToolTipCtrl control mixed text color

Posted on 2000-05-08
2
746 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

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. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

636 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