The dreaded ALT-TAB

Started by
12 comments, last by serratemplar 23 years, 1 month ago
I just want to mention that you get the WM_ACTIVATE message when another window is activated (like through alt-tab, mouse clicks, through the task bar or if an application activates a window (like with SetActiveWindow()).
Advertisement
Off screen surfaces can become "lost" as well. I believe all surfaces in local video memory get marked as lost because of the mode switch which resets the local memory heaps. I have yet to see a nonlocalvidmem surface lost. When in doubt, restore it. Better safe than sorry.

himh
Does that mean a full game has to restore all of it''s textures and images (and sound buffers)? Isn''t that what half the level loading is? I can alt-tab in and out of half-life quite quickly.
Hmmm... how come none of this ever works in my games? When I alt-tab my program, it goes to the task bar, and you can''t do anything to it. When you right click, nothing happens, and when you click it, it doesn''t send any messages =(

Anyone know what''s wronge?

This topic is closed to new replies.

Advertisement