• Advertisement
Sign in to follow this  

What is the function for filling a rectangle with GDI functions?

This topic is 4886 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
FillRect will do this.

You have to supply a HBRUSH (CreateSolidBrush before, DeleteObject after FillRect).

In MFC you get a FillSolidRect function that does that for you already.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fillshap_6kth.asp

or you can use FillRect()

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement