Originally Posted by
csonx_p
works, THANX... Didn't know you still exist, will use you on other things
I get no link errors or warnings anymore, but then the color is not changed, always defaults to black... Is there any other form one can change line color when drawing? Here's my code
Code:
// Select the new pen and its color.
// Draw the arc using API arc function
hPen = (HPEN)GetStockObject(BLACK_PEN);
hOldPen=(HPEN)SelectObject(hdc, hPen);
SetDCPenColor(hdc,RGB(R,G,B));
Arc( hdc, left, top, right, bottom, xstart, ystart, xend, yend );
SelectObject(hdc, hOldPen);