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. RE: Detect Full Screen application
Edit: Err I should test a bit more before posting... That code also returns true on maximized windows. The following code solves problem 1:

code:
// Check if full screen app is running
bool IsFullScreenAppRunning () {
    HWND hWnd = GetForegroundWindow();

    if(!hWnd)
        return false;

    if(!IsWindowVisible(hWnd) || IsIconic(hWnd) || !IsZoomed(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 the second problem still exists...

This post was edited on 10-09-2006 at 09:10 PM by J-Thread.
10-09-2006 05:16 PM
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