[IMM32] Add ImmShowSoftKeyboard and ImmDestroySoftKeyboard (#3027)

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2020-08-09 22:42:17 +09:00 committed by GitHub
parent ec9d277d59
commit 2705abfb07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 4 deletions

View file

@ -2676,9 +2676,14 @@ HWND WINAPI ImmCreateSoftKeyboard(UINT uType, UINT hOwner, int x, int y)
*/
BOOL WINAPI ImmDestroySoftKeyboard(HWND hSoftWnd)
{
#ifdef __REACTOS__
TRACE("(%p)\n", hSoftWnd);
return DestroyWindow(hSoftWnd);
#else
FIXME("(%p): stub\n", hSoftWnd);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
#endif
}
/***********************************************************************
@ -2686,8 +2691,14 @@ BOOL WINAPI ImmDestroySoftKeyboard(HWND hSoftWnd)
*/
BOOL WINAPI ImmShowSoftKeyboard(HWND hSoftWnd, int nCmdShow)
{
#ifdef __REACTOS__
TRACE("(%p, %d)\n", hSoftWnd, nCmdShow);
if (hSoftWnd)
return ShowWindow(hSoftWnd, nCmdShow);
#else
FIXME("(%p, %d): stub\n", hSoftWnd, nCmdShow);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
#endif
return FALSE;
}
@ -3203,7 +3214,7 @@ BOOL WINAPI ImmDisableLegacyIME(void)
*/
BOOL WINAPI ImmSetActiveContext(HWND hwnd, HIMC hIMC, BOOL fFlag)
{
FIXME("stub\n");
FIXME("(%p, %p, %d): stub\n", hwnd, hIMC, fFlag);
return FALSE;
}
@ -3212,7 +3223,10 @@ BOOL WINAPI ImmSetActiveContext(HWND hwnd, HIMC hIMC, BOOL fFlag)
*/
BOOL WINAPI ImmSetActiveContextConsoleIME(HWND hwnd, BOOL fFlag)
{
HIMC hIMC = ImmGetContext(hwnd);
HIMC hIMC;
TRACE("(%p, %d)\n", hwnd, fFlag);
hIMC = ImmGetContext(hwnd);
if (hIMC)
return ImmSetActiveContext(hwnd, hIMC, fFlag);
return FALSE;

View file

@ -8,7 +8,7 @@
@ stdcall ImmCreateSoftKeyboard(long long long long)
@ stdcall ImmDestroyContext(long)
@ stdcall ImmDestroyIMCC(long)
@ stdcall ImmDestroySoftKeyboard(long)
@ stdcall ImmDestroySoftKeyboard(ptr)
@ stdcall ImmDisableIME(long)
@ stdcall ImmDisableIme(long) ImmDisableIME
@ stdcall ImmDisableLegacyIME()
@ -98,7 +98,7 @@
#@ stdcall ImmSetHotKey(long long long ptr) user32.CliImmSetHotKey
@ stdcall ImmSetOpenStatus(long long)
@ stdcall ImmSetStatusWindowPos(long ptr)
@ stdcall ImmShowSoftKeyboard(long long)
@ stdcall ImmShowSoftKeyboard(ptr long)
@ stdcall ImmSimulateHotKey(long long)
@ stub ImmSystemHandler
@ stdcall ImmTranslateMessage(long long long long)