internal override void SetFocus(IntPtr handle) { if (FocusWindow != IntPtr.Zero) { PostMessage(FocusWindow, Msg.WM_KILLFOCUS, handle, IntPtr.Zero); } PostMessage(handle, Msg.WM_SETFOCUS, FocusWindow, IntPtr.Zero); FocusWindow = handle; }