Changeset 20094


Ignore:
Timestamp:
Dec 28, 2002, 10:30:55 AM (22 years ago)
Author:
sandervl
Message:

changed default WM_MOUSEACTIVATE handler; support SWP_ASYNCWINDOWPOS flag

File:
1 edited

Legend:

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

    r20067 r20094  
    1 /* $Id: win32wbase.cpp,v 1.346 2002-12-18 12:28:07 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.347 2002-12-28 09:30:55 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    16681668    case WM_VKEYTOITEM:
    16691669    case WM_CHARTOITEM:
    1670              return -1;
     1670        return -1;
    16711671
    16721672    case WM_PARENTNOTIFY:
     
    16751675    case WM_MOUSEACTIVATE:
    16761676    {
     1677        HWND hwnd = getWindowHandle();
     1678
    16771679        dprintf(("DefWndProc: WM_MOUSEACTIVATE for %x Msg %s", Win32Hwnd, GetMsgText(HIWORD(lParam))));
    1678         if(getStyle() & WS_CHILD && !(getExStyle() & WS_EX_NOPARENTNOTIFY) )
    1679         {
    1680             if(getParent()) {
    1681                 LRESULT rc = SendMessageA(getParent()->getWindowHandle(), WM_MOUSEACTIVATE, wParam, lParam );
    1682                 if(rc)  return rc;
    1683             }
    1684         }
    1685         return (LOWORD(lParam) == HTCAPTION) ? MA_NOACTIVATE : MA_ACTIVATE;
     1680        if (::GetWindowLongW( hwnd, GWL_STYLE ) & WS_CHILD)
     1681        {
     1682            LONG ret = ::SendMessageW( ::GetParent(hwnd), WM_MOUSEACTIVATE, wParam, lParam );
     1683            if (ret) return ret;
     1684        }
     1685
     1686        /* Caption clicks are handled by the NC_HandleNCLButtonDown() */
     1687        return (LOWORD(lParam) >= HTCLIENT) ? MA_ACTIVATE : MA_NOACTIVATE;
    16861688    }
    16871689
     
    24382440         SWP_SHOWWINDOW | SWP_HIDEWINDOW | SWP_NOCOPYBITS   |
    24392441         SWP_NOOWNERZORDER | SWP_NOSENDCHANGING | SWP_DEFERERASE |
    2440          SWP_NOCLIENTSIZE | SWP_NOCLIENTMOVE))
     2442         SWP_NOCLIENTSIZE | SWP_NOCLIENTMOVE | SWP_ASYNCWINDOWPOS))
    24412443    {
    24422444        dprintf(("ERROR: SetWindowPos; UNKNOWN flag"));
     
    24442446    }
    24452447
    2446     if( fuFlags & (SWP_DEFERERASE | SWP_NOCLIENTSIZE | SWP_NOCLIENTMOVE)) {
     2448    if( fuFlags & (SWP_DEFERERASE | SWP_NOCLIENTSIZE | SWP_NOCLIENTMOVE | SWP_ASYNCWINDOWPOS)) {
    24472449        dprintf(("WARNING: SetWindowPos; unsupported flag"));
    24482450    }
Note: See TracChangeset for help on using the changeset viewer.