Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Colouring a window in one color

This topic is 6457 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

Hey guys! First let me say that I''ve been using the GDN message board for only a few weeks now and you guys (the general community here)have already helped me past most of my problems, kudos for you! Anyway, I basically want to colour the whole of my window a specific color. A background color if you will. How would I go about doing this? Would I need to use pen and brush classes? Thanks guys!

Share this post

Link to post
Share on other sites
When defining the window class:

wndclass.hbrBackground = CreateSolidBrush (crColor);

you can use

RGB(iRed, iGreen, iBlue)

instead of crColor.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!