Please compile and run this on XP:
Then Alt+Tab out. Make sure you have some other apps running. Then use the tabs on the start bar to switch between apps. Noticed how the compiled app's window keeps flashing as you switch between apps. It seems like Windows XP is trying to focus the full-screen app temporarily but then focus is returned to the app that you clicked.
This is weird, any idea why it would do it? Perhaps full-screen apps are treated as modal and try to come to the front just in that split second between defocusing one app and focusing the next?
It doesn't happen in Vista.
It's causing a problem for me because I track EVENT_APPRESUME and EVENT_APPSUSPEND and do stuff like start and stop music. This means as you change apps you keep hearing a slit second of the music as it resumes and suspends due receiving focus for a split second.
Also sometimes with my current game (but not with the example above) my whole game does completely resume full-screen even though another totally different app was clicked! I don't know why as I don't have any code to tell it to do that, I'm just relying on BlitzMax (or Windows) to handle the focusing for me. Also sometimes the game nearly focuses but doesn't and the music resumes permanently because the app never got the suspend message. It's crazy and random seeming...
Anyone got any comments about this? Thx.
SuperStrict Graphics 800,600,32 While Not KeyHit(key_escape) Cls DrawRect 100,100,100,100 Flip 1 Wend
Then Alt+Tab out. Make sure you have some other apps running. Then use the tabs on the start bar to switch between apps. Noticed how the compiled app's window keeps flashing as you switch between apps. It seems like Windows XP is trying to focus the full-screen app temporarily but then focus is returned to the app that you clicked.
This is weird, any idea why it would do it? Perhaps full-screen apps are treated as modal and try to come to the front just in that split second between defocusing one app and focusing the next?
It doesn't happen in Vista.
It's causing a problem for me because I track EVENT_APPRESUME and EVENT_APPSUSPEND and do stuff like start and stop music. This means as you change apps you keep hearing a slit second of the music as it resumes and suspends due receiving focus for a split second.
Also sometimes with my current game (but not with the example above) my whole game does completely resume full-screen even though another totally different app was clicked! I don't know why as I don't have any code to tell it to do that, I'm just relying on BlitzMax (or Windows) to handle the focusing for me. Also sometimes the game nearly focuses but doesn't and the music resumes permanently because the app never got the suspend message. It's crazy and random seeming...
Anyone got any comments about this? Thx.