FIX: TTM_GETTEXT Message Zeros the Passed Pointer
Article ID: 186177
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition
- Microsoft Internet Explorer 4.01 Service Pack 2
- Microsoft Internet Explorer 4.01 Service Pack 1
This article was previously published under Q186177
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 that this is a bug in the Microsoft products that are 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.
Keywords: kbbug kbfix kboswin2000fix kbctrl KB186177