d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Fillelipse C++ Win Api
Add Reply New Topic New Poll
Member
Posts: 27,086
Joined: Mar 7 2008
Gold: 685.00
Dec 7 2013 07:14pm
Is there a function like FillRect to fill an elipse with WM_Paint?

I can use FillRect function to fill a square but cant figure out how to fill an elipse.
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Dec 7 2013 08:29pm
this one?
i just googled for ellipse and for winapi, then i saw the msdn link and clicked it. looks right imo:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd162510(v=vs.85).aspx
Member
Posts: 27,086
Joined: Mar 7 2008
Gold: 685.00
Dec 9 2013 09:07pm
Quote (Richter @ 7 Dec 2013 21:29)
this one?
i just googled for ellipse and for winapi, then i saw the msdn link and clicked it. looks right imo:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd162510(v=vs.85).aspx


Nope need to fill ellipse
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Dec 10 2013 07:43am
The Ellipse function draws an ellipse. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined by using the current pen and is filled by using the current brush.
Member
Posts: 27,086
Joined: Mar 7 2008
Gold: 685.00
Dec 10 2013 08:42am
Quote (Richter @ 10 Dec 2013 08:43)
The Ellipse function draws an ellipse. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined by using the current pen and is filled by using the current brush.


yep but how
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Dec 10 2013 02:11pm
Quote (eric838 @ 10 Dec 2013 16:42)
yep but how


Continue searching in the documentation and you may (evidently) find a resource on Using Filled Shapes
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll