示例#1
0
 private static Rectangle GetWindowPlacement(IntPtr hWnd)
 {
     WindowSnap.RECT rect = default(WindowSnap.RECT);
     WindowSnap.GetWindowRect(hWnd, ref rect);
     return(rect);
 }
示例#2
0
 private static extern int GetWindowRect(IntPtr hWnd, ref WindowSnap.RECT rect);
示例#3
0
 private static Rectangle GetWindowPlacement(IntPtr hWnd)
 {
     WindowSnap.RECT rECT = new WindowSnap.RECT();
     WindowSnap.GetWindowRect(hWnd, ref rECT);
     return(rECT);
 }