On 8/30/07, Dmitry Timoshkov dmitry@codeweavers.com wrote:
"Lei Zhang" thestig@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...