From: Esme Povirk esme@codeweavers.com
--- dlls/user32/listbox.c | 1 + dlls/user32/tests/msg.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c index e25a1632d93..943d6ce3e28 100644 --- a/dlls/user32/listbox.c +++ b/dlls/user32/listbox.c @@ -3092,6 +3092,7 @@ LRESULT ListBoxWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam if (descr->focus_item != -1) LISTBOX_DrawFocusRect( descr, TRUE ); SEND_NOTIFICATION( descr, LBN_SETFOCUS ); + NtUserNotifyWinEvent( EVENT_OBJECT_FOCUS, descr->self, OBJID_CLIENT, descr->focus_item + 1 ); return 0; case WM_KILLFOCUS: LISTBOX_HandleLButtonUp( descr ); /* Release capture if we have it */ diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index b12ffca337b..965c99ff571 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -16843,7 +16843,7 @@ static const struct message wm_lb_click_0[] =
{ WM_DRAWITEM, sent|wparam|lparam|parent, ID_LISTBOX, 0x001142f2 }, { WM_COMMAND, sent|wparam|parent, MAKEWPARAM(ID_LISTBOX, LBN_SETFOCUS) }, - { EVENT_OBJECT_FOCUS, winevent_hook|wparam|lparam|msg_todo, OBJID_CLIENT, 3 }, + { EVENT_OBJECT_FOCUS, winevent_hook|wparam|lparam, OBJID_CLIENT, 3 }, { WM_LBTRACKPOINT, sent|wparam|lparam|parent, 0, MAKELPARAM(1,1) }, { EVENT_SYSTEM_CAPTURESTART, winevent_hook|wparam|lparam, 0, 0 },