imm32, user32: Create and destroy the default IME window implicitly. (try 3) (resend)

Alexandre Julliard julliard at winehq.org
Thu May 26 22:39:27 CDT 2016


Akihiro Sagawa <sagawa.aki at gmail.com> writes:

> +    /* create default IME window */
> +
> +    if (imm_register_window && needs_ime_window( hwnd ))
> +    {
> +        struct user_thread_info *thread_info = get_user_thread_info();
> +        thread_info->ime_win_refs++;
> +        TRACE("ime_win_refs=%u\n", thread_info->ime_win_refs);
> +        if (thread_info->ime_win_refs == 1)
> +        {
> +            HWND win = imm_register_window( hwnd );
> +            TRACE("create ime window (hwnd=%p)\n", win);
> +        }
> +    }
> +
>      /* send WM_NCCALCSIZE */

Do you have a test showing that this is supposed to happen between
WM_NCCREATE and WM_NCCALCSIZE?  If not, I think it would be useful to
add one. Also since the window class is in user32 now the window
creation could probably happen there too.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list