update in EDIT_WM_SetText

Rizsanyi Zsolt rizsanyi at myrealbox.com
Fri Mar 29 12:12:53 CST 2002


I have this next patch:

--- controls/edit.c   Fri Mar 29 19:03:25 2002
+++ controls/edit.c     Fri Mar 29 19:03:09 2002
@@ -4727,7 +4727,10 @@
          * if it is multiline, or it is part of combobox
        if( !((es->style & ES_MULTILINE) || es->hwndListBox))
+       {
            EDIT_NOTIFY_PARENT(hwnd, es, EN_CHANGE, "EN_CHANGE");
+           EDIT_NOTIFY_PARENT(hwnd, es, EN_UPDATE, "EN_UPDATE");
+       }
        EDIT_EM_ScrollCaret(hwnd, es);

Which fixes an update problem in my program. As much as I understand the 
program reeds the state of the edit on every EN_UPDATE event.
And because EN_UPDATE was not sent, so the program operated with undefined 
values and could not find the words (its a dictionary program).

I see, that the above code is somewhat weird, because two events are sent.
But of course if the programs rely on it, then it has to be so.
I will let to somebody more acquinted with wine and windows to decide whether 
this solution is ok.

Best regards
Zsolt Rizsanyi

More information about the wine-devel mailing list