[PATCH 1/2] user32: Use correct values to deselect combo box text with EM_SETSEL

Dmitry Timoshkov dmitry at baikal.ru
Mon Jan 25 04:38:48 CST 2016


Hugh McMaster <hugh.mcmaster at outlook.com> wrote:

> Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
> ---
>  dlls/user32/combo.c       | 2 ++
>  dlls/user32/tests/combo.c | 4 ++--
>  2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c
> index c744ee5..4c57b72 100644
> --- a/dlls/user32/combo.c
> +++ b/dlls/user32/combo.c
> @@ -1189,6 +1189,8 @@ static void COMBO_KillFocus( LPHEADCOMBO lphc )
>         {
>             if( CB_GETTYPE(lphc) == CBS_DROPDOWNLIST )
>                 SendMessageW(lphc->hWndLBox, LB_CARETOFF, 0, 0);
> +           else
> +               SendMessageW(lphc->hWndEdit, EM_SETSEL, 0, 0);

The message test doesn't confirm that this is a correct solution.

-- 
Dmitry.



More information about the wine-devel mailing list