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