SetRectRgn() private method

private SetRectRgn ( IntPtr hrgn, int left, int top, int right, int bottom ) : bool
hrgn System.IntPtr
left int
top int
right int
bottom int
return bool
 public void SetClipRect(int x, int y, int w, int h)
 {
     if (hRgn == IntPtr.Zero)
     {
         //create
         hRgn = MyWin32.CreateRectRgn(0, 0, w, h);
     }
     MyWin32.SetRectRgn(hRgn,
                        x,
                        y,
                        x + w,
                        y + h);
     MyWin32.SelectObject(memHdc, hRgn);
 }