imm32: Create the IME UI window with the IME instance so the registered class can be found.

This commit is contained in:
Aric Stewart 2008-04-16 14:30:13 -05:00 committed by Alexandre Julliard
parent 511753196f
commit 1eece6eee6
1 changed files with 2 additions and 4 deletions

View File

@ -92,7 +92,6 @@ typedef struct _tagIMMThreadData {
HWND hwndDefault;
} IMMThreadData;
static HANDLE hImeInst;
static DWORD tlsIndex = 0;
static struct list ImmHklList = LIST_INIT(ImmHklList);
@ -294,7 +293,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
hImeInst = hInstDLL;
IMM_RegisterMessages();
tlsIndex = TlsAlloc();
IMM_InitThreadData();
@ -1800,8 +1798,8 @@ BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen)
{
/* create the ime window */
data->imeWnd = CreateWindowExW( WS_EX_TOOLWINDOW,
data->immKbd->imeClassName,
NULL, WS_POPUP, 0, 0, 1, 1, 0, 0, hImeInst, 0);
data->immKbd->imeClassName, NULL, WS_POPUP, 0, 0, 1, 1, 0,
0, data->immKbd->hIME, 0);
SetWindowLongW(data->imeWnd, IMMGWL_IMC, (LONG)data);
IMM_GetThreadData()->hwndDefault = data->imeWnd;
}