Re: [PATCH] user32: edit control should respond to ctrl + z
"Lei Zhang" <thestig(a)google.com> wrote:
This lets users hit ctrl + z in edit dialogs. A test case is included. This should fixed bug 9525.
+ /* select all, cut (ctrl-x), undo (ctrl-z) */ + SendMessage(hwEdit, EM_SETSEL, 0, -1); + SendMessage(hwEdit, WM_CHAR, 24, 0); + SendMessage(hwEdit, WM_CHAR, 26, 0);
I'd suggest to add checks to make sure that every message you send above really worked. -- Dmitry.
On 8/30/07, Dmitry Timoshkov <dmitry(a)codeweavers.com> wrote:
"Lei Zhang" <thestig(a)google.com> wrote:
This lets users hit ctrl + z in edit dialogs. A test case is included. This should fixed bug 9525.
+ /* select all, cut (ctrl-x), undo (ctrl-z) */ + SendMessage(hwEdit, EM_SETSEL, 0, -1); + SendMessage(hwEdit, WM_CHAR, 24, 0); + SendMessage(hwEdit, WM_CHAR, 26, 0);
I'd suggest to add checks to make sure that every message you send above really worked.
-- Dmitry.
Good idea, will do...
participants (2)
-
Dmitry Timoshkov -
Lei Zhang