Ignore:
Timestamp:
Jun 29, 2000, 2:26:01 PM (25 years ago)
Author:
sandervl
Message:

activation fixes

File:
1 edited

Legend:

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

    r3747 r3773  
    1 /* $Id: win32wbase.cpp,v 1.202 2000-06-23 19:04:12 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.203 2000-06-29 12:26:01 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    724724            /* Call WH_SHELL hook */
    725725            if (!(getStyle() & WS_CHILD) && !owner)
    726                 HOOK_CallHooksA(WH_SHELL, HSHELL_WINDOWCREATED, getWindowHandle(), 0 );
     726                HOOK_CallHooksA(WH_SHELL, HSHELL_WINDOWCREATED, getWindowHandle(), 0);
    727727
    728728            SetLastError(0);
     
    21332133    SetWindowPos(HWND_TOP, newPos.left, newPos.top, newPos.right, newPos.bottom, LOWORD(swp));
    21342134
     2135    if(!(swp & SWP_NOACTIVATE)) {
     2136        OSLibWinSetActiveWindow(OS2Hwnd);
     2137    }
     2138
    21352139    if (flags & WIN_NEED_SIZE)
    21362140    {
     
    22832287        }
    22842288    }
    2285 
    22862289    if(rc == FALSE)
    22872290    {
     
    28032806
    28042807    dprintf(("SetActiveWindow %x", getWindowHandle()));
     2808    if (HOOK_IsHooked( WH_CBT ))
     2809    {
     2810        CBTACTIVATESTRUCT cbta;
     2811        LRESULT ret;
     2812
     2813        cbta.fMouse = FALSE;
     2814        cbta.hWndActive = GetActiveWindow();
     2815        ret = HOOK_CallHooksA(WH_CBT, HCBT_ACTIVATE, getWindowHandle(), (LPARAM)&cbta);
     2816        if(ret)
     2817        {
     2818            dprintf(("SetActiveWindow %x, CBT hook cancelled operation", getWindowHandle()));
     2819            return cbta.hWndActive;
     2820        }
     2821    }
     2822
    28052823    if(OSLibWinSetActiveWindow(OS2Hwnd) == FALSE) {
    28062824        dprintf(("OSLibWinSetActiveWindow %x returned FALSE!", OS2Hwnd));
Note: See TracChangeset for help on using the changeset viewer.