Ignore:
Timestamp:
Feb 23, 2001, 3:52:42 PM (25 years ago)
Author:
sandervl
Message:

mdi, setcursor, min/max/restore, dlglist changes

File:
1 edited

Legend:

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

    r5246 r5258  
    1 /* $Id: win32wbase.cpp,v 1.243 2001-02-22 18:18:59 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.244 2001-02-23 14:52:41 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    105105  fCreateSetWindowPos = FALSE;
    106106  fCreationFinished= FALSE;
     107  fMinMaxChange    = FALSE;
    107108
    108109  windowNameA      = NULL;
     
    14891490    {
    14901491        dprintf(("DefWndProc: WM_SETCURSOR for %x Msg %s", Win32Hwnd, GetMsgText(HIWORD(lParam))));
    1491         if((getStyle() & WS_CHILD) && !(getExStyle() & WS_EX_NOPARENTNOTIFY))
     1492        if((getStyle() & WS_CHILD))
    14921493        {
    14931494            if(getParent()) {
     
    14961497            }
    14971498        }
    1498         if (wParam == Win32Hwnd)
     1499        if (wParam == getWindowHandle())
    14991500        {
    15001501          HCURSOR hCursor;
     
    22102211            if( !(getStyle() & WS_MINIMIZE) ) {
    22112212                 swp |= MinMaximize(SW_MINIMIZE, &newPos );
     2213                 fMinMaxChange = TRUE; //-> invalidate entire window in WM_CALCINVALIDRECT
    22122214            }
    22132215            else swp |= SWP_NOSIZE | SWP_NOMOVE;
     
    22172219    case SW_SHOWMAXIMIZED: /* same as SW_MAXIMIZE */
    22182220        swp |= SWP_SHOWWINDOW | SWP_FRAMECHANGED;
    2219         if( !(getStyle() & WS_MAXIMIZE) )
     2221        if( !(getStyle() & WS_MAXIMIZE) ) {
    22202222             swp |= MinMaximize(SW_MAXIMIZE, &newPos );
     2223             fMinMaxChange = TRUE; //-> invalidate entire window in WM_CALCINVALIDRECT
     2224        }
    22212225        else swp |= SWP_NOSIZE | SWP_NOMOVE;
    22222226        break;
     
    22512255         if( getStyle() & (WS_MINIMIZE | WS_MAXIMIZE) ) {
    22522256              swp |= MinMaximize(SW_RESTORE, &newPos );
     2257              fMinMaxChange = TRUE; //-> invalidate entire window in WM_CALCINVALIDRECT
    22532258         }
    22542259         else swp |= SWP_NOSIZE | SWP_NOMOVE;
     
    22912296    }
    22922297END:
     2298    fMinMaxChange = FALSE;
    22932299    return wasVisible;
    22942300}
Note: See TracChangeset for help on using the changeset viewer.