CRgn rgn;
HRGN hMyRgn;
CPoint poly[4];
rgn.CreatePolygonRgn(poly, 4, WINDING);
rgn.PtInRegion(point)
-> 영역안을 침범했는지, 침범했다면 참값, 아니라면 거짓.
CPoint poly[4];
CPoint point;
GetCursorPos(&point);
GetDlgItem(IDC_STATIC_VIEW)->ScreenToClient(&point); rgn.CreatePolygonRgn(poly, 4, WINDING);
rgn.PtInRegion(point)
-> 영역안을 침범했는지, 침범했다면 참값, 아니라면 거짓.
hMyRgn = (HRGN) rgn;
rgn.DeleteObject();