BUG: TTM_GETTEXT Message Zeros the Passed Pointer

ID: Q186177


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Internet Explorer (Programming) versions 4.01, 4.01 SP1


SYMPTOMS

When sending a TTM_GETTEXT message to a ToolTip control, a first-chance exception occurs and the lpszText member of the TOOLINFO structure is set to NULL. This only occurs on Windows 98 or any 32-bit platform that has Internet Explorer 4.01 SP1 installed.


CAUSE

There is a bug that occurs in the processing of this message that inadvertently sets the lpszText member of the TOOLINFO structure to NULL, rather than setting the first character of lpszText to zero.


RESOLUTION

You can work around this bug in one of the following ways, depending on the platform you are running on:

  • Under Windows 95 or Windows 98, you need to use the TTM_GETTOOLINFO message instead of the TTM_GETTEXT message.


  • Under Windows NT, you can either use the TTM_GETTOOLINFO message or the TTM_GETTEXTA message.



STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

This bug is only present in version 4.72.3110.x of COMCtl32.dll. This version is included with Internet Explorer 4.01 Service Pack 1 and Windows 98.

Under Windows 95 and Windows 98, this bug affects the TTM_GETTEXTA message.

Under Windows NT, this bug affects the TTM_GETTEXTW message. This bug does not affect the TTM_GETTEXTA message under Windows NT.

Additional query words:

Keywords : kbCtrl kbGrpUser
Version : WINDOWS:4.01,4.01 SP1
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: December 7, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.