一、调用API。
BOOL PtInRegion( HRGN hrgn, // handle to region int X, // x-coordinate of point int Y // y-coordinate of point ); HRGN CreatePolygonRgn( CONST POINT *lppt, // array of points int cPoints, // number of points in array int fnPolyFillMode // polygon-filling mode ); BOOL PtInRegion( HRGN hrgn, // ha