Personal computing discussed

Moderators: SecretSquirrel, just brew it!

Gerbil First Class
Topic Author
Posts: 148
Joined: Sun Jul 21, 2002 5:30 pm

OpenGL Redraw when MFC App Resized

Wed Apr 07, 2004 10:04 pm

Hey I have a problem. I have an MFC SDI application written in VC++ .net. It consists of one window with 2 childviews and a splitter bar in between the views. When I go to move the splitter bar, or resize the window, the opengl pane goes black and doesn't redraw.

How do I force my OpenGL to redraw when the window is resized or the splitter bar is moved (resizing the views)?


my project can be downloaded at

Please help.
Grand Admiral Gerbil
Posts: 10211
Joined: Thu Jun 19, 2003 3:11 pm

Wed Apr 07, 2004 11:07 pm

Haven't done anything with that particular combination of technologies, but I suspect you have to invalidate the rect, or the entire childview, of the area you want to redraw.
Gerbil First Class
Posts: 113
Joined: Wed Dec 26, 2001 7:00 pm
Location: Houston, TX

Tue Apr 13, 2004 10:39 am

I hate to just link but I am at work and really should not be responding at all to this... :) ... /page2.asp

That should help answer your question.

Who is online

Users browsing this forum: No registered users and 1 guest