예제 #1
0
파일: Native.cs 프로젝트: urotaichi/Side
 // 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
파일: Native.cs 프로젝트: urotaichi/Side
 public static extern bool GetWindowPlacement(int hWnd, ref Native.USER32.WINDOWPLACEMENT lpwndpl);