Hugh McMaster hugh.mcmaster@outlook.com wrote:
--- a/dlls/user32/combo.c +++ b/dlls/user32/combo.c @@ -1215,7 +1215,7 @@ static LRESULT COMBO_Command( LPHEADCOMBO lphc, WPARAM wParam, HWND hWnd ) case (EN_SETFOCUS >> 8):
TRACE("[%p]: edit [%p] got focus\n", lphc->self, lphc->hWndEdit );
COMBO_SetFocus( lphc ); break;SendMessageW( lphc->hWndEdit, EM_SETSEL, 0, -1 );
@@ -1228,7 +1228,7 @@ static LRESULT COMBO_Command( LPHEADCOMBO lphc, WPARAM wParam, HWND hWnd ) * notification (only when it happens to be a part of * the combo). ?? - AK. */
COMBO_KillFocus( lphc ); break;SendMessageW( lphc->hWndEdit, EM_SETSEL, -1, 0 );
These changes require tests to confirm their correctness, and the tests need to cover the cases when a control is part of a dialog and when it's not.