dlls/winemac.drv/window.c
/*******************************************************************
 *              can_activate_window
 *
 * Check if we can activate the specified window.
 */
can_activate_window
Check if we can activate the specified window.
can_activate_window Check if we can activate the specified window .
static inline BOOL can_activate_window(HWND hwnd)
{
    LONG style = GetWindowLongW(hwnd, GWL_STYLE);
    RECT rect;
    if (!(style & WS_VISIBLE)) return FALSE;
    if ((style & (WS_POPUP|WS_CHILD)) == WS_CHILD) return FALSE;
    if (GetWindowLongW(hwnd, GWL_EXSTYLE) & WS_EX_NOACTIVATE) return FALSE;
    if (hwnd == GetDesktopWindow()) return FALSE;
    if (GetWindowRect(hwnd, &rect) && IsRectEmpty(&rect)) return FALSE;
    return !(style & WS_DISABLED);
}
static inline BOOL can_activate_window ( HWND hwnd ) { LONG style = GetWindowLongW ( hwnd , GWL_STYLE ) ; RECT rect ; if ( ! ( style & WS_VISIBLE ) ) return FALSE ; if ( ( style & ( WS_POPUP | WS_CHILD ) ) == WS_CHILD ) return FALSE ; if ( GetWindowLongW ( hwnd , GWL_EXSTYLE ) & WS_EX_NOACTIVATE ) return FALSE ; if ( hwnd == GetDesktopWindow ( ) ) return FALSE ; if ( GetWindowRect ( hwnd , & rect ) && IsRectEmpty ( & rect ) ) return FALSE ; return ! ( style & WS_DISABLED ) ; }
can_activate_window
 Check if we can activate the specified window.
can_activate_window Check if we can activate the specified window .