public IMEWindow(IntPtr hWnd, string fontname, float fontsize) { hIMEWnd = NativeMethods.ImmGetDefaultIMEWnd(hWnd); SetFont(fontname, fontsize); }