public void SetEditorPlacement(WindowPlacement placement) { WindowNormalPosition = placement.NormalPosition.ToRectangle(); WindowMaxPosition = placement.MaxPosition.ToPoint(); WindowMinPosition = placement.MinPosition.ToPoint(); ShowWindowCommand = placement.ShowCmd; WindowPlacementFlags = placement.Flags; }
public static extern bool GetWindowPlacement(IntPtr hWnd, ref WindowPlacement lpwndpl);
public static extern bool SetWindowPlacement(IntPtr hWnd, [In] ref WindowPlacement lpwndpl);