summaryrefslogtreecommitdiff
path: root/yapp/message_pump.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2008-06-03 06:46:56 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2008-06-03 06:46:56 +0000
commit60cbe2d6c7d0a0b9dafce40d9d9ecdc868c4c49b (patch)
tree485f86370731904fc121a82ec99c94078f022699 /yapp/message_pump.cpp
parent3330fbbb3f62f072fa7e80102995b3012e0e552d (diff)
added option to allow popups when fullscreen window is not topmost
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@411 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/message_pump.cpp')
-rw-r--r--yapp/message_pump.cpp27
1 files changed, 5 insertions, 22 deletions
diff --git a/yapp/message_pump.cpp b/yapp/message_pump.cpp
index 6b5bfb8..426d0ab 100644
--- a/yapp/message_pump.cpp
+++ b/yapp/message_pump.cpp
@@ -26,18 +26,8 @@ bool is_full_screen() {
hWnd = GetForegroundWindow();
if(hWnd && hWnd != GetDesktopWindow() && hWnd != GetShellWindow()) {
GetClientRect(hWnd, &ClientRect);
- if ((ClientRect.right - ClientRect.left) >= w && (ClientRect.bottom - ClientRect.top) >= h) {
- /*
- {
- TCHAR buf[512];
- if(GetWindowText(hWnd, buf, 512))
- PUShowMessageW(buf, SM_NOTIFY);
- else
- PUShowMessage("no title", SM_NOTIFY);
- }
- */
+ if ((ClientRect.right - ClientRect.left) >= w && (ClientRect.bottom - ClientRect.top) >= h)
return true;
- }
}
// check other top level windows
@@ -45,23 +35,16 @@ bool is_full_screen() {
if(IsWindowVisible(hWnd) == 0 || IsIconic(hWnd) || hWnd == GetDesktopWindow() || hWnd == GetShellWindow())
continue;
- //if (!(GetWindowLong(hWnd, GWL_EXSTYLE) & WS_EX_TOPMOST))
- //continue;
+ if(DBGetContactSettingByte(0, MODULE, "ShowForNonTopmostFullscreenWindows", 0) == 1) {
+ if (!(GetWindowLong(hWnd, GWL_EXSTYLE) & WS_EX_TOPMOST))
+ continue;
+ }
// not sure if this could be done more simply using 'IsZoomed'?
GetClientRect(hWnd, &ClientRect);
if ((ClientRect.right - ClientRect.left) < w || (ClientRect.bottom - ClientRect.top) < h)
continue;
- /*
- {
- TCHAR buf[512];
- if(GetWindowText(hWnd, buf, 512))
- PUShowMessageW(buf, SM_NOTIFY);
- else
- PUShowMessage("no title", SM_NOTIFY);
- }
- */
return true;
}