Aric Stewart : imm: Send WM_IME_SELECT messages when IME is selected and deselected.

Alexandre Julliard julliard at winehq.org
Tue Jan 20 08:27:38 CST 2009


Module: wine
Branch: master
Commit: e9b320936960323f98114dd7a0086bed1f9f464e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e9b320936960323f98114dd7a0086bed1f9f464e

Author: Aric Stewart <aric at codeweavers.com>
Date:   Mon Jan 19 14:28:53 2009 -0600

imm: Send WM_IME_SELECT messages when IME is selected and deselected.

---

 dlls/imm32/imm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 2299f20..14178c3 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -656,6 +656,7 @@ HIMC WINAPI ImmCreateContext(void)
         IMM_DestroyContext(new_context);
         return 0;
     }
+    SendMessageW(GetFocus(), WM_IME_SELECT, TRUE, (LPARAM)GetKeyboardLayout(0));
 
     new_context->immKbd->uSelected++;
     TRACE("Created context %p\n",new_context);
@@ -673,6 +674,7 @@ static BOOL IMM_DestroyContext(HIMC hIMC)
     {
         data->immKbd->uSelected --;
         data->immKbd->pImeSelect(hIMC, FALSE);
+        SendMessageW(data->IMC.hWnd, WM_IME_SELECT, FALSE, (LPARAM)GetKeyboardLayout(0));
 
         if (IMM_GetThreadData()->hwndDefault == data->imeWnd)
             IMM_GetThreadData()->hwndDefault = NULL;




More information about the wine-cvs mailing list