🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Minimizing/maximizing problem

Started by
1 comment, last by Qoy 24 years, 6 months 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).]

Advertisement
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

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