mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:15:43 +00:00
[IMM32] Rewrite ImmGetStatusWindowPos (#3824)
Rewrite ImmGetStatusWindowPos function. CORE-11700
This commit is contained in:
parent
0966e32146
commit
3965c93732
1 changed files with 10 additions and 5 deletions
|
@ -2369,16 +2369,21 @@ UINT WINAPI ImmGetRegisterWordStyleW(
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI ImmGetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
|
BOOL WINAPI ImmGetStatusWindowPos(HIMC hIMC, LPPOINT lpptPos)
|
||||||
{
|
{
|
||||||
InputContextData *data = get_imc_data(hIMC);
|
LPINPUTCONTEXT pIC;
|
||||||
|
BOOL ret;
|
||||||
|
|
||||||
TRACE("(%p, %p)\n", hIMC, lpptPos);
|
TRACE("ImmGetStatusWindowPos(%p, %p)\n", hIMC, lpptPos);
|
||||||
|
|
||||||
if (!data || !lpptPos)
|
pIC = ImmLockIMC(hIMC);
|
||||||
|
if (pIC == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
*lpptPos = data->IMC.ptStatusWndPos;
|
ret = !!(pIC->fdwInit & INIT_STATUSWNDPOS);
|
||||||
|
if (ret)
|
||||||
|
*lpptPos = pIC->ptStatusWndPos;
|
||||||
|
|
||||||
return TRUE;
|
ImmUnlockIMC(hIMC);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue