Advertisement

Minimizing/maximizing problem

Started by December 07, 1999 11:54 PM
1 comment, last by Qoy 25 years ago
Many DirectX Samples show how to do this (Space Donuts for example). You should look at their sourcecodes.

MELO

[This message has been edited by Melo (edited December 07, 1999).]

I'm having problems with minimizing and maximizing my game, and having it actually work. What I need to do is have the game not do anything (change the game state) when it is minimized, and have the state changed back, and restore all surfaces, buffers, and input devices when it's maximized again. Can somebody tell me what I need to do? Should I use the WM_ACTIVEAPP or WM_ACTIVATE message? How should I do this?

------------------
http://qoy.tripod.com

Advertisement
in WndProc():

case WM_ACTIVATEAPP:
bActive = (wParam == WA_ACTIVE) | | (wParam == WA_CLICKACTIVE);
if ( bActive )
game_RestoreSurfaces();
break;

in WinMain():

if ( bActive )
game_Main();

------------------
- mallen22@concentric.net
- http://members.tripod.com/mxf_entertainment/

This topic is closed to new replies.

Advertisement