Click to See Complete Forum and Search --> : GDI Ellipse


kronski
September 16th, 1999, 10:03 AM
Hi, I'm trying to draw an ellipse using GDI so I'm using the ellipse function. The problem with this function is that it is a filled shape. Is there any way I can draw an ellipse that isn't filled or how I can specify a transparent brush for it to fill with?

Thanks in advance

Danny24
September 16th, 1999, 10:37 AM
Select a NULL_BRUSH to your device-context just before you draw the ellipse.


CBrush pm_OldBrush = (CBrush *) pDC->SelectStockObject (NULL_BRUSH);
// ... draw your unfilled things here ...
pDC->SelectObject (pm_OldBrush);




that will leave the ellipse unfilled.
cu
Danny

September 16th, 1999, 03:11 PM
how about pDC->ArcTo()?