請問如何判斷選取哪個多邊形? |
答題得分者是:cmf
|
maokao
一般會員 發表:11 回覆:3 積分:2 註冊:2002-11-28 發送簡訊給我 |
|
cmf
尊榮會員 發表:84 回覆:918 積分:1032 註冊:2002-06-26 發送簡訊給我 |
引言: 我在Form上利用Canvas->Polygon(points, num)產生了幾個多邊形, 如何判斷滑鼠點選了哪一個多邊形(點選之後該多邊形變色)?HRGN CreatePolygonRgn( CONST POINT *lppt, // pointer to array of points int cPoints, // number of points in array int fnPolyFillMode // polygon-filling mode ); BOOL PtInRegion( HRGN hrgn, // handle of region int X, // x-coordinate of point int Y // y-coordinate of point );
------
︿︿ |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |