private void SetIMEWindowFont(Font f) { if (this.lf == null) { this.lf = new Ime.LOGFONT(); f.ToLogFont(this.lf); this.lf.lfFaceName = f.Name; } Ime.SendMessage(this.hIMEWnd, 643, 10, this.lf); }
private static extern int SendMessage(IntPtr hWnd, int msg, int wParam, [MarshalAs(UnmanagedType.LPStruct)][In] Ime.LOGFONT lParam);