Minimized Application stopping

Blitz3D Forums/Blitz3D Programming/Minimized Application stopping

NightPhoenix(Posted 2010) [#1]
Hi Community!
If me or friends of me minimize a Blitz3D application in fullscreen mode the program stops.
The application is a multiplayer client and it is very annoying when they get a "connection timeout" during the time they minimized the blitz3d application.
Is there a way to solve the problem? (let b3d run minimized like other applications)


_PJ_(Posted 2010) [#2]
I belive iot's possible by using windows .dlls to check for the Window "losing focus", though I'm not able to give any ,more details a search on the forums for "Window Focus" should help, and someone here must know more information :)


jfk EO-11110(Posted 2010) [#3]
As far as I know there isn't much you can do when you are using fullscreen.
The minimized fullscreenapp indeed pauses until you click it again. If you want to maximise it by code, then you might need a separate Thread or process that is controlling the state of the main window. This might be a separate EXE that is running in a window, make it invisible by windowHide, if you want. I would however suggest to run the network handler in such a seperate window and then communicate between network handler window and fullscreen window over the clipboard, or over tcp or so. It makes things slower, but at least it would solve the frozen-by-minimize problem.
You'd need to identify the HWND etc. somehow, so the 2 Apps will be able to determine their counterparts HWND in order to communicate.

A further solution is to use a fake fullscreen resolution, but windows makes that rather hard IMHO, because it usually doesn't allow a window to use the entire Screen: max size is the desktop minus Window Frames and start bar. Possible workaround: use a msie fullscreen page as a black background. (need to get rid off the blitz window frames here too, using some API calls) But then again, who knows if those msie fullscreens are still supported tomorrow. Maybe some of the windows specialists have a better idea.