Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }