[PATCH] user32: edit control should respond to ctrl + z (try 3)

Lei Zhang thestig at google.com
Tue Sep 11 11:12:46 CDT 2007


On 9/10/07, Dmitry Timoshkov <dmitry at codeweavers.com> wrote:
> "Lei Zhang" <thestig at google.com> wrote:
>
> >> In the tests still there is no actual edit contents/selection changes
> >> tracking after every message.
> >>
> >> --
> >> Dmitry.
> >>
> >
> > I'm sending WM_GETTEXT to the control and then checking the text after
> > every change. Did you mean something else when you say contents
> > changes tracking?
>
> I mean that after every message you send you need to send WM_GETTEXT and
> EM_GETSEL messages to the control and check what they return, that's what
> I call actual edit contents/selection changes tracking. By "what they
> return" I also mean for WM_GETTEXT not only SendMessage return value but
> also the contents of the buffer.
>
> --
> Dmitry.
>

Yes, I am already checking the return value and the contents of the buffer:

+    r = SendMessage(hwEdit, WM_GETTEXT, 1024, (LPARAM) buffer);
+    ok(r == strlen(text), "Expected: %d, got len %d\n", strlen(text), r);
+    ok(strcmp(buffer, text) == 0, "expected %s, got %s\n", text, buffer);

I'll add EM_GETSEL checks as well.



More information about the wine-devel mailing list