[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) BOOL WINAPI ImmDestroySoftKeyboard(HWND hSoftWnd)
{ {
#ifdef __REACTOS__
TRACE("(%p)\n", hSoftWnd);
return DestroyWindow(hSoftWnd);
#else
FIXME("(%p): stub\n", hSoftWnd); FIXME("(%p): stub\n", hSoftWnd);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE; return FALSE;
#endif
} }
/*********************************************************************** /***********************************************************************
@ -2686,8 +2691,14 @@ BOOL WINAPI ImmDestroySoftKeyboard(HWND hSoftWnd)
*/ */
BOOL WINAPI ImmShowSoftKeyboard(HWND hSoftWnd, int nCmdShow) 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); FIXME("(%p, %d): stub\n", hSoftWnd, nCmdShow);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
#endif
return FALSE; return FALSE;
} }
@ -3203,7 +3214,7 @@ BOOL WINAPI ImmDisableLegacyIME(void)
*/ */
BOOL WINAPI ImmSetActiveContext(HWND hwnd, HIMC hIMC, BOOL fFlag) BOOL WINAPI ImmSetActiveContext(HWND hwnd, HIMC hIMC, BOOL fFlag)
{ {
FIXME("stub\n"); FIXME("(%p, %p, %d): stub\n", hwnd, hIMC, fFlag);
return FALSE; return FALSE;
} }
@ -3212,7 +3223,10 @@ BOOL WINAPI ImmSetActiveContext(HWND hwnd, HIMC hIMC, BOOL fFlag)
*/ */
BOOL WINAPI ImmSetActiveContextConsoleIME(HWND hwnd, 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) if (hIMC)
return ImmSetActiveContext(hwnd, hIMC, fFlag); return ImmSetActiveContext(hwnd, hIMC, fFlag);
return FALSE; return FALSE;

View file

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