ALT - Tabbing in DirectX

Started by
10 comments, last by Sleepwalker 24 years, 2 months ago
Just handle WM_ACTIVATE messages in your WndProc. Set a flag for your rendering function to check before it renders each frame, telling it whether to draw or not. If your window''s minimized, you don''t draw. Finally, restore the surfaces in your WM_ACTIVATE handler when your window becomes active again. The Windows SDK docs have more information on WM_ACTIVATE.

Conceptually, you''re linking DirectDraw to your main window with that code.

And you''ll probably have to take extra steps for DirectInput, DirectSound, etc.

Good Luck!


- null_pointer
Advertisement
Phew...I fixed it (finally) Runs nicely now...
tab-out, tab-in - I could to this for hours, seriously

So thanks to everyone here foir helping me out.

- Sleepwalker
- Sleepwalker

This topic is closed to new replies.

Advertisement