Not logged in, Join Here! or Log In Below:  
 
News Articles Search    
 

 Home / Game Design & Programming / Maximize Direct3D App Account Manager
 
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.
 
IstariSkoda

April 19, 2005, 08:00 PM

I'm programming a windowed 3D app for school. I need to resize my Direct3D device whenever the window size changes and this works fine with normal resizing, but not when maximizing the window. I have the following code in my message loop to detect if a maximize occured:

case WM_SYSCOMMAND:
if(wParam == SC_MAXIMIZE)
//Call Resize device function which works
break;

This does detect if a maximize occured because if I call PostQuitMessage() inside the if statement it quits when I maximize. But it doesn't however resize my window properly. I have a feeling that this message is placed in the queue before windows updates the client area for the HWND. Does anyone have a solution to this problem?

 
JCash

April 20, 2005, 01:59 AM

I think the message you want to catch is the WM_SIZE.

i.e.:

case WM_SIZE:

 
This thread contains 2 messages.
 
 
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.