Microsoft KB Archive/243089

{|
 * width="100%"|

FIX: LPARAM in TTM_ADDTOOL and TTM_SETTOOLINFO Not Saved

 * }

Q243089

-

The information in this article applies to:


 * Microsoft Windows 98
 * Microsoft Windows 95
 * Microsoft Windows NT Server version 4.0
 * Microsoft Windows NT Workstation version 4.0

-

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.

Additional query words: kbGrpUser kbUsrToolbar

Keywords : kbOSWinNT400 kbOSWin2000fix kbSDKWin32 kbToolTip kbGrpDSUser kbOSWin95 kbOSWin98 _IK

Issue type : kbbug

Technology : kbWinNTsearch kbWinNTWsearch kbWinNTW400 kbWinNTW400search kbWinNT400xsearch kbWinNTSsearch kbWinNTS400xsearch kbWinNTS400 kbWin95search kbWin98search kbZNotKeyword3 kbWin98