Пример #1
0
 // Token: 0x06000252 RID: 594 RVA: 0x0002A190 File Offset: 0x00028390
 public static Rectangle GetNormalWindowLocation(Form form)
 {
     Native.USER32.WINDOWPLACEMENT windowplacement = default(Native.USER32.WINDOWPLACEMENT);
     windowplacement.Length = Marshal.SizeOf(windowplacement);
     Native.USER32.GetWindowPlacement((int)form.Handle, ref windowplacement);
     return(new Rectangle(windowplacement.rcNormalPosition.left, windowplacement.rcNormalPosition.top, windowplacement.rcNormalPosition.right - windowplacement.rcNormalPosition.left, windowplacement.rcNormalPosition.bottom - windowplacement.rcNormalPosition.top));
 }
Пример #2
0
 public static extern bool GetWindowPlacement(int hWnd, ref Native.USER32.WINDOWPLACEMENT lpwndpl);