Make full-screen popup windows managed.

This commit is contained in:
Alex Pasadyn 2004-02-06 05:17:55 +00:00 committed by Alexandre Julliard
parent 6088c11f96
commit d18c8ca78f

View File

@ -129,8 +129,13 @@ inline static BOOL is_window_managed( WND *win )
if (win->dwStyle & WS_THICKFRAME) return TRUE;
/* application windows are managed */
if (win->dwExStyle & WS_EX_APPWINDOW) return TRUE;
/* popup windows that aren't owned are managed */
if ((win->dwStyle & WS_POPUP) && !win->owner) return TRUE;
/* full-screen popup windows are managed */
if ((win->dwStyle & WS_POPUP) &&
(win->rectWindow.right-win->rectWindow.left) == screen_width &&
(win->rectWindow.bottom-win->rectWindow.top) == screen_height)
{
return TRUE;
}
/* default: not managed */
return FALSE;
}