mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:07:21 +00:00
comctl32: Forward the focus to the edit control if it exists.
This commit is contained in:
parent
06439b303a
commit
3cfc2ab772
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue