Advertisement

Help with MFC CMDIFrameWnd background

Started by January 12, 2004 05:02 PM
-1 comments, last by Tree Penguin 21 years, 1 month ago
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

This topic is closed to new replies.

Advertisement