GetActiveWindow() for fullscreen 3D mode.

Blitz3D Forums/Blitz3D Bug Reports/GetActiveWindow() for fullscreen 3D mode.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

There is GetActiveWindow() WinAPI function that return window hWND that is currently in focus. But this function does not work in fullscreen mode. This is a problem.

I know that I can use GetAsyncKeyState%(vKey) WinAPI function to catch ALT+Tab and other keypresses and pause my game, disable music, sounds etc.
But the game can be interrupted by system messages or something else. So analog of GetActiveWindow() for fullscreen is very neccesary to write commercial games.

Can you, please, add this sort of functionality to Blitz3D ?

So we can easily know if game is lost focus or minimased, or interrupted (etc) and set it to pause.


Sorry for my bad english.
BTW,this is request from all Russian comunity :)