Jump to content
  • Advertisement

Archived

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

Lor

Colouring a window in one color

This topic is 6307 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
Advertisement
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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!