ByeongSik Jeon : imm32: Implementation of the ImmRequestMessage{A|W}.

Alexandre Julliard julliard at winehq.org
Fri May 2 07:06:34 CDT 2008


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

Author: ByeongSik Jeon <bsjeon at hanmail.net>
Date:   Fri May  2 12:51:08 2008 +0900

imm32: Implementation of the ImmRequestMessage{A|W}.

---

 dlls/imm32/imm.c |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 8b539de..ce28f48 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -1815,9 +1815,14 @@ BOOL WINAPI ImmReleaseContext(HWND hWnd, HIMC hIMC)
 */
 LRESULT WINAPI ImmRequestMessageA(HIMC hIMC, WPARAM wParam, LPARAM lParam)
 {
-    FIXME("(%p %ld %ld): stub\n", hIMC, wParam, wParam);
-    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return 0;
+    InputContextData *data = (InputContextData*)hIMC;
+
+    TRACE("%p %ld %ld\n", hIMC, wParam, wParam);
+
+    if (data && IsWindow(data->IMC.hWnd))
+        return SendMessageA(data->IMC.hWnd, WM_IME_REQUEST, wParam, lParam);
+
+     return 0;
 }
 
 /***********************************************************************
@@ -1825,9 +1830,14 @@ LRESULT WINAPI ImmRequestMessageA(HIMC hIMC, WPARAM wParam, LPARAM lParam)
 */
 LRESULT WINAPI ImmRequestMessageW(HIMC hIMC, WPARAM wParam, LPARAM lParam)
 {
-    FIXME("(%p %ld %ld): stub\n", hIMC, wParam, wParam);
-    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return 0;
+    InputContextData *data = (InputContextData*)hIMC;
+
+    TRACE("%p %ld %ld\n", hIMC, wParam, wParam);
+
+    if (data && IsWindow(data->IMC.hWnd))
+        return SendMessageW(data->IMC.hWnd, WM_IME_REQUEST, wParam, lParam);
+
+     return 0;
 }
 
 /***********************************************************************




More information about the wine-cvs mailing list