Personal computing discussed

Moderators: renee, SecretSquirrel, just brew it!

 
OutlawTornNMT
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)?

Thanks

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

Please help.
 
UberGerbil
Grand Admiral Gerbil
Posts: 10368
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.
 
Veritas
Gerbil First Class
Posts: 113
Joined: Wed Dec 26, 2001 7:00 pm
Location: Houston, TX
Contact:

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.

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On