I need to use the "Ellipse" function in a program I'm working on. I can color the edges around but not inside the circle. I've tried everything I can find on how to but nothing has worked yet. The others I've seen do this use add-on libraries, but I don't want to do that.
Anyone know the easiest way to color the circle surface with any color?
This is what it looks like when I can color the border around the circle, but how do you paint in the circle:
HPEN hpen,hpenOld;
PAINTSTRUCT ps ;
BeginPaint(hwnd, &ps);
hpen=CreatePen(PS_SOLID,0,color);
hpenOld=SelectObject(hDC,hpen);
Ellipse( hDC, 400, 300,200, 200);
SelectObject(hDC,hpenOld);
DeleteObject(hpen);