Draw in MFC
-
DrawEllipse instead of FillEllipse, or set the brush to be a null brush ( which is not the same as NULL ) so that it is transparent. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
-
Use CPen instead of using CBrush. Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
-
DrawEllipse instead of FillEllipse, or set the brush to be a null brush ( which is not the same as NULL ) so that it is transparent. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
...
pDC->SelectStockObject(NULL_BRUSH);
pDC->Ellipse(...);
...Best regards, Eugene Pustovoyt
-
...
pDC->SelectStockObject(NULL_BRUSH);
pDC->Ellipse(...);
...Best regards, Eugene Pustovoyt
That's almost right, except does SelectStockOBject manage GDI resources better than SelectObject, or will it leak ? Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002