Ignore:
Timestamp:
Nov 5, 2000, 7:49:09 PM (25 years ago)
Author:
sandervl
Message:

extra exports for gdi32; moved 4 apis back into gdi32

File:
1 edited

Legend:

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

    r4524 r4558  
    1 /* $Id: win32wbase.cpp,v 1.220 2000-10-23 18:28:53 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.221 2000-11-05 18:49:07 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    9595  fParentDC        = FALSE;
    9696  fComingToTop     = FALSE;
     97  fCreateSetWindowPos = FALSE;
    9798
    9899  windowNameA      = NULL;
     
    639640  }
    640641
    641   //preset rects
     642  //set client & window rectangles from CreateWindowEx CREATESTRUCT
    642643  rectWindow.left = cs->x;
    643644  rectWindow.right = cs->x+cs->cx;
    644645  rectWindow.top = cs->y;
    645646  rectWindow.bottom = cs->y+cs->cy;
    646   rectClient = rectWindow; //dummy client rect
     647  rectClient = rectWindow;
    647648  OffsetRect(&rectClient, -rectClient.left, -rectClient.top);
    648649
     
    673674                fCXDefault = FALSE;
    674675                cs->cx = cs->cy = 0;
     676                rectWindow.right  = rectWindow.left;
     677                rectWindow.bottom = rectWindow.top;
    675678            }
    676679        }
    677         //update rect
    678         rectWindow.left = cs->x;
    679         rectWindow.right = cs->x+cs->cx;
    680         rectWindow.top = cs->y;
    681         rectWindow.bottom = cs->y+cs->cy;
    682680        tmpRect = rectWindow;
    683681
    684         rectClient = rectWindow;
    685         OffsetRect(&rectClient, -rectClient.left, -rectClient.top);
    686         OffsetRect(&rectWindow, maxPos.x - rectWindow.left, maxPos.y - rectWindow.top);
     682        fCreateSetWindowPos = TRUE;
    687683
    688684        //set the window size and update the client
     
    22662262    }
    22672263#endif
     2264
     2265    if(!fCreateSetWindowPos)
     2266    {//don't change size; modify internal structures only
     2267        //TODO: not 100% correct yet (activate)
     2268        if(!(fuFlags & SWP_NOZORDER)) {
     2269            hwndLinkAfter = hwndInsertAfter;
     2270        }
     2271        if(!(fuFlags & SWP_NOMOVE)) {
     2272            rectWindow.bottom = (rectWindow.bottom - rectWindow.top) + y;
     2273            rectWindow.top    = y;
     2274            rectWindow.right  = (rectWindow.right - rectWindow.left) + x;
     2275            rectWindow.left   = x;
     2276        }
     2277        if(!(fuFlags & SWP_NOSIZE)) {
     2278            rectWindow.bottom = rectWindow.top + cy;
     2279            rectWindow.right  = rectWindow.left + cx;
     2280        }
     2281        return TRUE;
     2282    }
    22682283
    22692284    WINDOWPOS wpos;
Note: See TracChangeset for help on using the changeset viewer.