CreateRectRgn() private method

private CreateRectRgn ( int left, int top, int right, int bottom ) : IntPtr
left int
top int
right int
bottom int
return System.IntPtr
コード例 #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);
 }