Commit 3cfc2ab7 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

comctl32: Forward the focus to the edit control if it exists.

parent 06439b30
......@@ -2308,7 +2308,8 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return COMBOEX_WindowPosChanging (infoPtr, (WINDOWPOS *)lParam);
case WM_SETFOCUS:
SetFocus(infoPtr->hwndCombo);
if (infoPtr->hwndEdit) SetFocus( infoPtr->hwndEdit );
else SetFocus( infoPtr->hwndCombo );
return 0;
case WM_SYSCOLORCHANGE:
......
......@@ -345,6 +345,11 @@ static void test_WM_LBUTTONDOWN(void)
"Current Selection: expected %d, got %d\n", 4, idx);
ok(received_end_edit, "Expected to receive a CBEN_ENDEDIT message\n");
SetFocus( hComboExParentWnd );
ok( GetFocus() == hComboExParentWnd, "got %p\n", GetFocus() );
SetFocus( hComboEx );
ok( GetFocus() == hEdit, "got %p\n", GetFocus() );
DestroyWindow(hComboEx);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment