What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Detect Full Screen application

Detect Full Screen application
Author: Message:
J-Thread
Full Member
***

Avatar

Posts: 467
Reputation: 8
– / Male / –
Joined: Jul 2004
O.P. Detect Full Screen application
A very short question: How can I detect that there is a full screen application running? I tried the following code:
code:
// Check if full screen app is running
bool IsFullScreenAppRunning () {
    HWND hWnd = GetForegroundWindow();

    if(!hWnd)
        return false;

    RECT rc;
    if(!GetWindowRect(hWnd,&rc))
        return false;

    return (rc.right - rc.left  >= GetSystemMetrics(SM_CXSCREEN) &&  rc.bottom - rc.top >= GetSystemMetrics(SM_CYSCREEN));

}

But that has got 2 problems:
1. It returns true if my desktop is the foreground window (i.e. there aren't really any windows)
2. There can be another window on top of the fullscreen window, and then this function returns false, which is not what I want.

Does anybody know how to fix this? Using GetClientRect doesn't work either:(
10-07-2006 11:34 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Detect Full Screen application - by J-Thread on 10-07-2006 at 11:34 AM
RE: Detect Full Screen application - by Mnjul on 10-09-2006 at 01:47 PM
RE: Detect Full Screen application - by ShawnZ on 10-09-2006 at 01:58 PM
RE: Detect Full Screen application - by J-Thread on 10-09-2006 at 02:51 PM
RE: Detect Full Screen application - by Ash_ on 10-09-2006 at 05:06 PM
RE: Detect Full Screen application - by J-Thread on 10-09-2006 at 05:16 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On