7,540
社区成员
发帖
与我相关
我的任务
分享
hdc=GetDC(hwnd);
SetROP2(hdc,R2_XORPEN);
SelectObject(hdc,GetStockObject(NULL_BRUSH));
SelectObject(hdc,CreatePen(PS_DASH,0,0));
Rectangle(hdc,point1.x,point1.y,point.x,point.y);
DeleteObject(SelectObject(hdc,GetStockObject(BLACK_PEN)));
ReleaseDC(hwnd,hdc);