Jump to content
  • Advertisement

Archived

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

Tree Penguin

Help with MFC CMDIFrameWnd background

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

Hi, i am using an mdi and as the most practical (and professtional looking ) backgroundcolor for OpenGL is (0.5,0.5,0.5) i was wondering if i can set the backgroundcolor of the mainframe someway (as it is exactly (0.5,0.5,0.5) wich makes the program appear a lot messier). What i''ve tried already: 1. Placing a call to fillrect in the OnPaint funtion (got that from microsoft''s page) but it didn''t work (it works fine on views and it is actually called, but the drawing code isn''t really executed (or it seems)). 2. Create an OpenGL view, this gave exactly the same problem, the window kept the same color gray. Does anyone know why this happens, or does anyone know how to draw on a CMDIFrameWnd (OpenGL would be best if possible)? Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement

  • 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!