Changeset 9265 for trunk/src


Ignore:
Timestamp:
Sep 19, 2002, 11:37:42 AM (23 years ago)
Author:
sandervl
Message:

PF: Put window on top of owner if owner is not in the foreground

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wbase.cpp

    r9259 r9265  
    1 /* $Id: win32wbase.cpp,v 1.339 2002-09-17 17:43:07 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.340 2002-09-19 09:37:42 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    825825
    826826        //set the window size and update the client
     827        //@@PF Popup children of inactive windows can thus bring inactive window
     828        //on top, this is not correct, popup windows can be on top only if their owner
     829        //is in foreground, otherwise they are linked after owner.
     830        if (((dwStyle & (WS_CHILD|WS_POPUP)) == WS_POPUP) && getOwner() && (getOwner()->getWindowHandle() != GetForegroundWindow()))
     831        {
     832            hwndLinkAfter = getOwner()->getWindowHandle();
     833        }
    827834        SetWindowPos(hwndLinkAfter, tmpRect.left, tmpRect.top, tmpRect.right-tmpRect.left, tmpRect.bottom-tmpRect.top,SWP_NOACTIVATE | SWP_NOREDRAW | SWP_FRAMECHANGED);
    828835
Note: See TracChangeset for help on using the changeset viewer.