imm32: Implementation of the Imm{Get|Set}StatusWindowPos.
This commit is contained in:
parent
5d49b3db8d
commit
b322bc682e
|
@ -1384,9 +1384,16 @@ UINT WINAPI ImmGetRegisterWordStyleW(
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI ImmGetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
|
BOOL WINAPI ImmGetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
|
||||||
{
|
{
|
||||||
FIXME("(%p, %p): stub\n", hIMC, lpptPos);
|
InputContextData *data = (InputContextData*)hIMC;
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return FALSE;
|
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)
|
BOOL WINAPI ImmSetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
|
||||||
{
|
{
|
||||||
FIXME("(%p, %p): stub\n", hIMC, lpptPos);
|
InputContextData *data = (InputContextData*)hIMC;
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return FALSE;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue