How to find out when your program is not selected?

Started by
1 comment, last by Boops 20 years ago
You know how in windows only one window can be selected? How can I let my program detect that it''s currently not selected (and should pause)? Is there a way to do this platform independent? If not, I''m satisfied with how to do it in windows (it''ll be the first platform dependent part in my code though )
Advertisement
Check out WM_ACTIVATE. Or GetTopWindow() if you dont like that approach.
GetForegroundWindow
GetTopWindow

This topic is closed to new replies.

Advertisement