The information in this article applies to:
SYMPTOMS
Under the Japanese and Traditional Chinese versions of Windows version 3.1,
if an edit control has style ES_AUTOHSCROLL, and EM_LIMITTEXT is sent to
the edit control to limit the number of bytes the user can input to the
edit control, a general protection fault (GPF) will occur when the user is
entering a double-byte character for the last byte.
The user enters ABCDEF
( all single-byte character) to the edit
control, then try to enter a double-byte 'G' to the edit control, a
GPF will occur.
Also, a GPF will also occur under the Japanese version of Windows version 3.1, if EM_LIMITTEXT is used and the edit control has style ES_UPPERCASE and the edit control is using the MS MINCHO or MS GOTHIC font. Hangeul (Korean) Windows version 3.1 does not GPF if EM_LIMITTEXT is used along with the ES_UPPERCASE style and the MS MINCHO or MS GOTHIC font. RESOLUTIONSubclass the edit control, and check the WM_CHAR message coming in. If the WM_CHAR message for the last byte is a DBCS leadbyte, discard the WM_CHAR message along with the next WM_CHAR message. The following code demonstrates this workaround:
STATUS
Microsoft has confirmed this to be a problem in the product(s) listed at
the beginning of this article.
Additional query words: cwin jwin fesdk
Keywords : kb16bitonly |
Last Reviewed: November 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |