user32: Emit EM_SETSEL message when choosing "Select All" from context menu.
This commit is contained in:
parent
0bfc8f05c6
commit
6b616a0fd8
|
@ -3266,8 +3266,7 @@ static void EDIT_ContextMenuCommand(EDITSTATE *es, UINT id)
|
|||
SendMessageW(es->hwndSelf, WM_CLEAR, 0, 0);
|
||||
break;
|
||||
case EM_SETSEL:
|
||||
EDIT_EM_SetSel(es, 0, (UINT)-1, FALSE);
|
||||
EDIT_EM_ScrollCaret(es);
|
||||
SendMessageW(es->hwndSelf, EM_SETSEL, 0, -1);
|
||||
break;
|
||||
default:
|
||||
ERR("unknown menu item, please report\n");
|
||||
|
|
|
@ -2325,7 +2325,7 @@ static void test_contextmenu(void)
|
|||
while (PeekMessageA(&msg, hwndEdit, 0, 0, PM_REMOVE)) DispatchMessageA(&msg);
|
||||
ok(menu_messages.wm_command == 0,
|
||||
"Expected no WM_COMMAND messages, got %d\n", menu_messages.wm_command);
|
||||
todo_wine ok(menu_messages.em_setsel == 1,
|
||||
ok(menu_messages.em_setsel == 1,
|
||||
"Expected 1 EM_SETSEL message, got %d\n", menu_messages.em_setsel);
|
||||
|
||||
DestroyWindow (hwndEdit);
|
||||
|
|
Loading…
Reference in New Issue