I did a notifier app in C# that sits on the taskbar and display a balloon when I get something from it, similar to Google Talk when you receive a new email but at the momment it ignores if I am running an application on fullscreen or not and just do it is job.
How can I detect and make sure an application is in fullscreen mode? I don't mean maximized (as an app could be maximized on your screen but still not in fullscreen) mode but true fullscreen.
For example when you run a game most will run in fullscreen mode.
Initially GetForegroundWindow()
and GetWindowRect()
came to my mind but even so I could make a window go larger then my screen if I am not on fullscreen which wouldn't help me so I am wondering if there are other flags or ways to approach this?