views:

172

answers:

3

my C# winform application needs put itself in standby mode during time other application runs in true fullscreen mode (not only maximized), like video games, video movies, powerpoint.

I need a method to detect if currently there is other application in fullscreen.

Is there a possibility to register to events which will fire when other application enters/exits fullscreen?

for both needs, I'll appreciate to have code snippets.

A: 

Try this http://www.eggheadcafe.com/aspnet_answers/platformsdkshell/Aug2006/post27625253.asp.

Though you'd have to use a timer or monitor thread to periodically check this.

Dan Vogel
Does the code there distinguish TRUE-fullscreen-mode from just maximize-mode?
mlev
is there code example how do I register to SPI_SETWORKAREA event? or to WM_SETTINGCHANGE messages? and how to detect by these a true fullscreen mode?
mlev
A: 

A "TRUE-full-screen-mode" covers the whole desktop with a black background and the application sits in the middle of the screen. I MUST ignore just "maximize-to-full-screen" mode which is totally different - just maximizing application area to maximum.

and as I'm not so familiar, I'd appreciate some code snippet which I can start from it.

mlev
+1  A: 

Hi,

According to this question "full screen mode" is not that special, just create the right type of window and the OS will treat it as full screen. Once you know that, you can see here how to detect such windows.

jdv