public static int SetWindowRgn(int hWnd, int left, int top, int width, int height) { int rgn = Gdi32.CreateRectRgn(left, top, left + width, top + height); return(SetWindowRgn(hWnd, rgn, true)); }
public static int SetWindowRgn(int hWnd, System.Drawing.Rectangle rect) { int rgn = Gdi32.CreateRectRgn(rect.Left, rect.Top, rect.Right, rect.Bottom); return(SetWindowRgn(hWnd, rgn, true)); }