ByeongSik Jeon : imm32: Implementation of the Imm{Get|Set}StatusWindowPos.
Alexandre Julliard
julliard at winehq.org
Mon Apr 28 08:01:33 CDT 2008
Module: wine
Branch: master
Commit: b322bc682e814e5d9c3bee717f76812240cf93cc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b322bc682e814e5d9c3bee717f76812240cf93cc
Author: ByeongSik Jeon <bsjeon at hanmail.net>
Date: Sat Apr 26 00:19:34 2008 +0900
imm32: Implementation of the Imm{Get|Set}StatusWindowPos.
---
dlls/imm32/imm.c | 30 ++++++++++++++++++++++++------
1 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 259bf3a..2a29361 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -1384,9 +1384,16 @@ UINT WINAPI ImmGetRegisterWordStyleW(
*/
BOOL WINAPI ImmGetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
{
- FIXME("(%p, %p): stub\n", hIMC, lpptPos);
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
+ InputContextData *data = (InputContextData*)hIMC;
+
+ TRACE("(%p, %p)\n", hIMC, lpptPos);
+
+ if (!data || !lpptPos)
+ return FALSE;
+
+ *lpptPos = data->IMC.ptStatusWndPos;
+
+ return TRUE;
}
/***********************************************************************
@@ -1882,9 +1889,20 @@ BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen)
*/
BOOL WINAPI ImmSetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
{
- FIXME("(%p, %p): stub\n", hIMC, lpptPos);
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
+ InputContextData *data = (InputContextData*)hIMC;
+
+ TRACE("(%p, %p)\n", hIMC, lpptPos);
+
+ if (!data || !lpptPos)
+ return FALSE;
+
+ TRACE("\t(%i,%i)\n", lpptPos->x, lpptPos->y);
+
+ data->IMC.ptStatusWndPos = *lpptPos;
+ ImmNotifyIME( hIMC, NI_CONTEXTUPDATED, 0, IMC_SETSTATUSWINDOWPOS);
+ ImmInternalSendIMENotify(data, IMN_SETSTATUSWINDOWPOS, 0);
+
+ return TRUE;
}
/***********************************************************************
More information about the wine-cvs
mailing list