public static void NotifyWindowFrameChange(this IntPtr window) { PInvoke.SetWindowPos(window, IntPtr.Zero, 0, 0, 0, 0, (uint)(WindowChanges.SWP_NOMOVE | WindowChanges.SWP_NOSIZE | WindowChanges.SWP_NOZORDER | WindowChanges.SWP_FRAMECHANGED)); }