BUG: LPARAM in TTM_ADDTOOL and TTM_SETTOOLINFO Not Saved

ID: Q243089


The information in this article applies to:
  • Microsoft Windows versions 95, 98
  • Microsoft Windows NT 4.0
  • Microsoft Windows 2000


SYMPTOMS

If the LPARAM value is used when adding or modifying an item in a ToolTip with the ANSI versions of TTM_ADDTOOL or TTM_SETTOOLINFO, the LPARAM is not saved with the item. This problem occurs in Microsoft Windows NT 4.0 with version 4.70 or greater of Comctl32.DLL, Windows 95 or Windows 98 with version 5.80 of Comctl32.DLL that comes with Internet Explorer 5.


CAUSE

This bug is caused by a bug in Comctl32.dll that occurs when the TTM_ADDTOOLA or TTM_SETTOOLINFOA message is processed. This error prevents the LPARAM from being stored with the item.


RESOLUTION

To work around this bug, it is necessary to use the TTM_SETTOOLINFOW or TTM_ADDTOOLW messages explicitly on all platforms. Version checking of the Comctl32.dll must be performed prior to adding items. The suggested workaround should only be used when one of the problematic versions and platforms is detected. This is because the 4.xx versions on Windows 95 or Windows 98 does not handle the UNICODE versions of these messages.


STATUS

This bug has been fixed in Internet Explorer 5.01 and Windows 2000. Specifically, Comctl32.dll version 5.81.2917.1800 and greater.


MORE INFORMATION

You see this bug when processing TTN_GETDISPINFO (TTN_NEEDTEXT) notification because that is the most common time that the LPARAM for the item is used.

Additional query words: kbGrpUser kbUsrToolbar

Keywords : kbNTOS400 kbWinOS2000 kbSDKWin32 kbToolTip kbGrpUser kbWinOS95 kbWinOS98 kbDSupport
Version : WINDOWS:95,98; winnt:4.0
Platform : WINDOWS winnt
Issue type : kbbug


Last Reviewed: February 1, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.