FIX: CToolTipCtrl Not Displaying Text After VS SP1, SP2 Install (172276)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC)
This article was previously published under Q172276 SYMPTOMS
Applications that use CWnd::EnableTooltips to use a default CToolTipCtrl do
not display the tooltip text for child windows after the Visual Studio
Service Pack 1 (SP1) or Service Pack 2 (SP2) has been installed.
Other CToolTipCtrls and Tooltips inside of CToolBars work correctly.
CAUSE
The cbSize parameter of the TOOLINFO struct was changed to be of size
AfxOldTOOLINFO to be compatible with older versions of the COMCTL32.DLL.
CWnd::OnToolHitTest() was not changed, and is dependent on the cbSize to be
equal to the size of the new TOOLINFO struct. Since cbSize is always set to
AfxOldTOOLINFO, this function fails.
RESOLUTION
Override the virtual function CWnd::OnToolHitTest() to take into account
the new cbSize value.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Studio
97 Service Pack 3.
For more information, please see the following article in the Microsoft
Knowledge Base:
170365
INFO: Visual Studio 97 Service Packs - What, Where, and Why
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
167650
FIX: Problems with ToolTips on Windows 95
Modification Type: | Major | Last Reviewed: | 10/2/2003 |
---|
Keywords: | kbBug kbfix kbNoUpdate kbToolTip KbUIDesign kbVS97sp3fix KB172276 |
---|
|