Ignore:
Timestamp:
Dec 31, 2002, 5:52:00 PM (23 years ago)
Author:
sandervl
Message:

Removed wrong cx & cy check during window creation

File:
1 edited

Legend:

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

    r9550 r9572  
    1 /* $Id: win32wbase.cpp,v 1.347 2002-12-28 09:30:55 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.348 2002-12-31 16:52:00 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    771771        if (cs->cx < minTrack.x) cs->cx = minTrack.x;
    772772        if (cs->cy < minTrack.y) cs->cy = minTrack.y;
    773     }
    774 
    775     if(cs->style & WS_CHILD)
    776     {
    777         if(cs->cx < 0) cs->cx = 0;
    778         if(cs->cy < 0) cs->cy = 0;
    779     }
    780     else
    781     {
    782         if (cs->cx <= 0) cs->cx = 1;
    783         if (cs->cy <= 0) cs->cy = 1;
     773        if (cs->cx < 0) cs->cx = 0;
     774        if (cs->cy < 0) cs->cy = 0;
    784775    }
    785776
     
    858849                }
    859850            }
     851
    860852            if (getStyle() & (WS_MINIMIZE | WS_MAXIMIZE))
    861853            {
     
    17651757        WPARAM     wp   = SIZE_RESTORED;
    17661758
     1759        //According to Wine these are always sent, but experiments in Windows NT4, SP6
     1760        //show otherwise
    17671761        if (!(wpos->flags & SWP_NOMOVE) && !(wpos->flags & SWP_NOCLIENTMOVE))
    17681762        {
    17691763            SendMessageA(getWindowHandle(),WM_MOVE, 0, MAKELONG(rectClient.left,rectClient.top));
    17701764        }
     1765        //According to Wine these are always sent, but experiments in Windows NT4, SP6
     1766        //show otherwise
    17711767        if (!(wpos->flags & SWP_NOSIZE) && !(wpos->flags & SWP_NOCLIENTSIZE))
    17721768        {
     
    24922488    }
    24932489    /* TODO: Check hwndInsertAfter */
    2494 
    24952490#endif
    24962491
Note: See TracChangeset for help on using the changeset viewer.