DOC: How to Display Tool Tips After Calling EnableToolTips (140595)
The information in this article applies to:
- Microsoft Visual C++ 4.0
- Microsoft Visual C++ 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
This article was previously published under Q140595 SUMMARY
The Microsoft Foundation Classes (MFC) 4.x documentation states that you
can call the CWnd::EnableToolTips function to enable tool tips for the
child controls of a window. For example, this function can be used to
display tool tips for all the controls on a Form View.
However, simply calling this function is not sufficient. In an application
built with MFC 4.x, tool tips for your child controls will not display
correctly unless you provide a handler for the TTN_NEEDTEXT tool tip
notification.
This documentation error has been fixed in Visual C++ version 5.0.
REFERENCES
For further information on how commands such as WM_NOTIFY are routed, see
Programming with MFC Overview, Working with Messages and Commands, How the
Framework Calls a Handler, Command Routing in Books Online.
For further information on how to handle a WM_NOTIFY message such as
TTN_NEEDTEXT, see Tech Note 61: ON_NOTIFY and WM_NOTIFY Messages.
Modification Type: | Major | Last Reviewed: | 12/2/2003 |
---|
Keywords: | kbBug kbcode kbdocerr kbdocfix kbfix kbToolTip kbui KbUIDesign kbVC500fix KB140595 |
---|
|