示例#1
0
 private void desktopWindow_Shown(object sender, EventArgs e)
 {
     desktopWorkArea.Rect desktopArea = new desktopWorkArea.Rect();
     desktopArea.Top    = 0;
     desktopArea.Right  = Width;
     desktopArea.Bottom = Height;
     desktopArea.Left   = 0;
     desktopWorkArea.Set(desktopArea);
 }
示例#2
0
 public static extern void GetWindowRect(IntPtr hWnd, ref desktopWorkArea.Rect lpRect);