Solved

CToolTipCtrl control mixed text color

Posted on 2000-05-08
2
737 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 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