ToolTip- Button

Posted on 1999-06-22
Medium Priority
Last Modified: 2011-10-03
How can I attach a ToolTip to a Button in VC++5.0.
Its not a ToolBar....
Question by:wolle
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
1 Comment

Accepted Solution

Slarti earned 150 total points
ID: 1198116
From the online help (slightly modified):

To create and manipulate a CToolTipCtrl:

1.Construct the CToolTipCtrl object.
2.Call CToolTipCtrl::Create to create the Windows tool tip common control and attach it to the CToolTipCtrl object.
3.Call CToolTipCtrl::AddTool to register a tool with the tool tip control, so that the information stored in the tool tip is displayed when the cursor is on the tool.

The above should do it, but just fyi, here is some more stuff you can do with the tooltip control:

4.Call CToolTipCtrl::SetToolInfo to set the information that a tool tip maintains for a tool.
5.Call CToolTipCtrl::SetToolRect to set a new bounding rectangle for a tool.
6.Call CToolTipCtrl::HitTest to test a point to determine whether it is within the bounding rectangle of the given tool and, if so, retrieve information about the tool.
7.Call CToolTipCtrl::GetToolCount to retrieve a count of the tools registered with the tool tip control.


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

719 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