imm32: Create the IME UI window with the IME instance so the registered class can be found.
This commit is contained in:
parent
511753196f
commit
1eece6eee6
@ -92,7 +92,6 @@ typedef struct _tagIMMThreadData {
|
|||||||
HWND hwndDefault;
|
HWND hwndDefault;
|
||||||
} IMMThreadData;
|
} IMMThreadData;
|
||||||
|
|
||||||
static HANDLE hImeInst;
|
|
||||||
static DWORD tlsIndex = 0;
|
static DWORD tlsIndex = 0;
|
||||||
static struct list ImmHklList = LIST_INIT(ImmHklList);
|
static struct list ImmHklList = LIST_INIT(ImmHklList);
|
||||||
|
|
||||||
@ -294,7 +293,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
|
|||||||
switch (fdwReason)
|
switch (fdwReason)
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
hImeInst = hInstDLL;
|
|
||||||
IMM_RegisterMessages();
|
IMM_RegisterMessages();
|
||||||
tlsIndex = TlsAlloc();
|
tlsIndex = TlsAlloc();
|
||||||
IMM_InitThreadData();
|
IMM_InitThreadData();
|
||||||
@ -1800,8 +1798,8 @@ BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen)
|
|||||||
{
|
{
|
||||||
/* create the ime window */
|
/* create the ime window */
|
||||||
data->imeWnd = CreateWindowExW( WS_EX_TOOLWINDOW,
|
data->imeWnd = CreateWindowExW( WS_EX_TOOLWINDOW,
|
||||||
data->immKbd->imeClassName,
|
data->immKbd->imeClassName, NULL, WS_POPUP, 0, 0, 1, 1, 0,
|
||||||
NULL, WS_POPUP, 0, 0, 1, 1, 0, 0, hImeInst, 0);
|
0, data->immKbd->hIME, 0);
|
||||||
SetWindowLongW(data->imeWnd, IMMGWL_IMC, (LONG)data);
|
SetWindowLongW(data->imeWnd, IMMGWL_IMC, (LONG)data);
|
||||||
IMM_GetThreadData()->hwndDefault = data->imeWnd;
|
IMM_GetThreadData()->hwndDefault = data->imeWnd;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user