7071248: IME composition window does not disappear when file dialog is closed : Japanese WinXP

Reviewed-by: naoto, art
This commit is contained in:
Denis Fokin 2011-09-05 18:54:49 +04:00
parent 4be64adddd
commit 077625bba2

View File

@ -153,6 +153,11 @@ FileDialogHookProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
break;
}
case WM_DESTROY: {
HIMC hIMC = ::ImmGetContext(hdlg);
if (hIMC != NULL) {
::ImmNotifyIME(hIMC, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
}
WNDPROC lpfnWndProc = (WNDPROC)(::GetProp(parent, NativeDialogWndProcProp));
ComCtl32Util::GetInstance().UnsubclassHWND(parent,
FileDialogWndProc,