OpenGL Redraw when MFC App Resized

From Visual Basic to GNU C, this is the place to talk programming.

Moderators: SecretSquirrel, just brew it!

OpenGL Redraw when MFC App Resized

Postposted on 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)?

Thanks

my project can be downloaded at http://www.nmt.edu/~dwent/Base Station.zip

Please help.
OutlawTornNMT
Gerbil First Class
 
Posts: 148
Joined: Sun Jul 21, 2002 5:30 pm

Postposted on 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.
UberGerbil
Gerbil Khan
 
Posts: 9999
Joined: Thu Jun 19, 2003 3:11 pm

Postposted on 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... :)

http://www.gamedev.net/reference/progra ... /page2.asp

That should help answer your question.
Veritas
Gerbil First Class
 
Posts: 113
Joined: Wed Dec 26, 2001 7:00 pm
Location: Houston, TX


Return to Developer's Den

Who is online

Users browsing this forum: No registered users and 2 guests