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