PRWIN9104003: EN_CHANGE Not Generated After Edit Control Undo

ID Number: Q71756

3.00

WINDOWS

buglist3.00 fixlist3.10

Summary:

PROBLEM ID: WIN9104003

SYMPTOMS

When an application calls the GetWindowText function after the user

enters ALT+BACKSPACE to undo a change to an edit control, incorrect

text is copied into the application's buffer.

CAUSE

During the processing of an undo, the EN_CHANGE message is sent to

the edit control's parent window at an incorrect time. Undo is

performed in two steps:

1. Remove any new text, if necessary.

2. Insert any deleted text, if necessary.

EN_CHANGE is sent after step 1. It should be sent after step 2.

STATUS

Microsoft has confirmed this to be a problem in Windows version

3.0. This problem was corrected in Windows version 3.1.

Additional reference words: 3.00