CreateRectRgn() 개인적인 메소드

private CreateRectRgn ( int left, int top, int right, int bottom ) : IntPtr
left int
top int
right int
bottom int
리턴 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);
 }