FIX: LPARAM in TTM_ADDTOOL and TTM_SETTOOLINFO Not Saved (243089)



The information in this article applies to:

  • Microsoft Windows 98
  • Microsoft Windows 95
  • Microsoft Windows NT Server 4.0
  • Microsoft Windows NT Workstation 4.0

This article was previously published under Q243089

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 or later.

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.

Modification Type:MinorLast Reviewed:12/20/2004
Keywords:kbbug kbfix kbOSWin2000fix kbToolTip KB243089