How do I restore them? In a D3D tutorial I read you used something like this:
Originally posted by jdinger
Magos, what you need to do is:
1 - declare a global bool variable to represent a paused state.
2 - Check for a WM_ACTIVATEAPP message, if the wParam = 0
then your app is being deactivated, set paused to true. If the
wParam is non-zero then your app is being activated, set paused
to false, restore all surfaces (don't forget to re-blit your *.bmps
back into your surfs after restoring them).
3 - In your main loop if paused == true then don't do any blitting.