2 * Copyright 2023 RĂ©mi Bernon for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #define WIN32_NO_STATUS
36 #include "wine/debug.h"
37 #include "wine/list.h"
39 extern HMODULE imm32_module
;
42 extern UINT WM_MSIME_SERVICE
;
43 extern UINT WM_MSIME_RECONVERTOPTIONS
;
44 extern UINT WM_MSIME_MOUSE
;
45 extern UINT WM_MSIME_RECONVERTREQUEST
;
46 extern UINT WM_MSIME_RECONVERT
;
47 extern UINT WM_MSIME_QUERYPOSITION
;
48 extern UINT WM_MSIME_DOCUMENTFEED
;
50 static const char *debugstr_wm_ime( UINT msg
)
54 case WM_IME_STARTCOMPOSITION
: return "WM_IME_STARTCOMPOSITION";
55 case WM_IME_ENDCOMPOSITION
: return "WM_IME_ENDCOMPOSITION";
56 case WM_IME_COMPOSITION
: return "WM_IME_COMPOSITION";
57 case WM_IME_SETCONTEXT
: return "WM_IME_SETCONTEXT";
58 case WM_IME_NOTIFY
: return "WM_IME_NOTIFY";
59 case WM_IME_CONTROL
: return "WM_IME_CONTROL";
60 case WM_IME_COMPOSITIONFULL
: return "WM_IME_COMPOSITIONFULL";
61 case WM_IME_SELECT
: return "WM_IME_SELECT";
62 case WM_IME_CHAR
: return "WM_IME_CHAR";
63 case WM_IME_REQUEST
: return "WM_IME_REQUEST";
64 case WM_IME_KEYDOWN
: return "WM_IME_KEYDOWN";
65 case WM_IME_KEYUP
: return "WM_IME_KEYUP";
67 if (msg
== WM_MSIME_SERVICE
) return "WM_MSIME_SERVICE";
68 else if (msg
== WM_MSIME_RECONVERTOPTIONS
) return "WM_MSIME_RECONVERTOPTIONS";
69 else if (msg
== WM_MSIME_MOUSE
) return "WM_MSIME_MOUSE";
70 else if (msg
== WM_MSIME_RECONVERTREQUEST
) return "WM_MSIME_RECONVERTREQUEST";
71 else if (msg
== WM_MSIME_RECONVERT
) return "WM_MSIME_RECONVERT";
72 else if (msg
== WM_MSIME_QUERYPOSITION
) return "WM_MSIME_QUERYPOSITION";
73 else if (msg
== WM_MSIME_DOCUMENTFEED
) return "WM_MSIME_DOCUMENTFEED";
74 return wine_dbg_sprintf( "%#x", msg
);