Microsoft KB Archive/186177

{|
 * width="100%"|

FIX: TTM_GETTEXT Message Zeros the Passed Pointer

 * }

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 has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Windows 2000.

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 kbOSWinNT kbOSWin2000fix kbGrpDSUser

Issue type : kbbug

Technology : kbWin32SDKSearch kbIEsearch kbAudDeveloper kbSDKIESearch kbSDKSearch kbWin32sSearch kbSDKIE401 kbSDKIE401SP1