示例#1
0
文件: Resize.cs 项目: CLUEit/CLUEit
 //save the current size of the active window
 public void saveActiveWindowSize()
 {
     activeRestore = new WINDOWPLACEMENT();
     activeRestore.length = Marshal.SizeOf(activeRestore);
     if (!GetWindowPlacement(activeHandle, ref activeRestore))
     {
         throw new Exception("GetWindowPlacement failed to get active window restore information");
     }
 }
示例#2
0
文件: Resize.cs 项目: CLUEit/CLUEit
 static extern bool GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);