mirror of
https://github.com/reactos/reactos.git
synced 2024-09-03 17:19:20 +00:00
30 lines
845 B
C
30 lines
845 B
C
/*
|
|
* PROJECT: ReactOS api tests
|
|
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
|
|
* PURPOSE: Test for ImmIsUIMessage
|
|
* COPYRIGHT: Copyright 2021 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
|
|
*/
|
|
|
|
#include "precomp.h"
|
|
|
|
START_TEST(ImmIsUIMessage)
|
|
{
|
|
UINT uMsg;
|
|
BOOL ret;
|
|
for (uMsg = 0x100; uMsg < 0x300; ++uMsg)
|
|
{
|
|
ret = ImmIsUIMessageA(NULL, uMsg, 0, 0);
|
|
switch (uMsg)
|
|
{
|
|
case WM_IME_STARTCOMPOSITION: case WM_IME_ENDCOMPOSITION:
|
|
case WM_IME_COMPOSITION: case WM_IME_SETCONTEXT: case WM_IME_NOTIFY:
|
|
case WM_IME_COMPOSITIONFULL: case WM_IME_SELECT: case WM_IME_SYSTEM:
|
|
ok_int(ret, TRUE);
|
|
break;
|
|
default:
|
|
ok_int(ret, FALSE);
|
|
break;
|
|
}
|
|
}
|
|
}
|