public static Bitmap GetWindowsBitmap(IntPtr hWnd) { User.Struct.RECT rect = new User.Struct.RECT(); User.GetClientRect(hWnd, ref rect); return GetWindowsBitmap(hWnd, rect.Left, rect.Top, rect.Right - rect.Left + 1, rect.Bottom - rect.Top + 1); }
public static Bitmap GetWindowsBitmap(IntPtr hWnd) { User.Struct.RECT rect = new User.Struct.RECT(); User.GetClientRect(hWnd, ref rect); return(GetWindowsBitmap(hWnd, rect.Left, rect.Top, rect.Right - rect.Left + 1, rect.Bottom - rect.Top + 1)); }