Ignore:
Timestamp:
Feb 3, 2000, 6:13:03 PM (26 years ago)
Author:
cbratschi
Message:

merged controls with wine 20000130

File:
1 edited

Legend:

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

    r2569 r2611  
    1 /* $Id: win32wbase.cpp,v 1.149 2000-01-29 20:46:52 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.150 2000-02-03 17:13:01 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    651651            if(!(flags & WIN_NEED_SIZE))
    652652            {
    653              LPARAM lParam;
    654 
    655653                SendInternalMessageA(WM_SIZE, SIZE_RESTORED,
    656654                                MAKELONG(rectClient.right-rectClient.left,
    657655                                         rectClient.bottom-rectClient.top));
    658656
    659                 if(getParent()) {//in parent coordinates
    660                     POINT point;
    661 
    662                     point.x = rectClient.left;
    663                     point.y = rectClient.top;
    664                     MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), &point, 1);
    665 
    666                     lParam = MAKELONG(point.x, point.y);
    667                 }
    668                 else {//in screen coordinates
    669                     lParam = MAKELONG(rectWindow.left+rectClient.left, rectWindow.top+rectClient.top);
    670                 }
    671 
    672                 SendInternalMessageA(WM_MOVE, 0, lParam);
     657                SendInternalMessageA(WM_MOVE,0,MAKELONG(rectClient.left,rectClient.top));
    673658            }
    674659
     
    684669            }
    685670
     671            //CB: timew32.exe, blockcad.exe -> children not shown!!!
    686672            if (cs->style & WS_VISIBLE) ShowWindow(sw);
    687673
     
    12801266    {
    12811267        LPCSTR lpsz = (LPCSTR)lParam;
    1282         CHAR* oldNameA = windowNameA;
    1283         WCHAR* oldNameW = windowNameW;
    1284 
     1268
     1269        if(windowNameA) free(windowNameA);
     1270        if(windowNameW) free(windowNameW);
    12851271        if (lParam)
    12861272        {
     
    12981284        }
    12991285        dprintf(("WM_SETTEXT of %x to %s\n", Win32Hwnd, lParam));
    1300         if ((dwStyle & WS_CAPTION) && (lstrcmpA(oldNameA,windowNameA) != 0))
    1301         {
    1302           UpdateCaptionText();
     1286        if ((dwStyle & WS_CAPTION) == WS_CAPTION)
     1287        {
     1288          HandleNCPaint((HRGN)1);
    13031289          OSLibWinSetWindowText(OS2HwndFrame,(LPSTR)windowNameA);
    13041290        }
    1305 
    1306         if(oldNameA) free(oldNameA);
    1307         if(oldNameW) free(oldNameW);
    13081291
    13091292        return TRUE;
     
    14281411        if (!(wpos->flags & SWP_NOMOVE) && !(wpos->flags & SWP_NOCLIENTMOVE))
    14291412        {
    1430             SendInternalMessageA(WM_MOVE, 0, MAKELONG(wpos->x + rectClient.left, wpos->y + rectClient.top));
     1413            SendInternalMessageA(WM_MOVE, 0, MAKELONG(rectClient.left,rectClient.top));
    14311414        }
    14321415        if (!(wpos->flags & SWP_NOSIZE) && !(wpos->flags & SWP_NOCLIENTSIZE))
     
    16961679        LPWSTR lpsz = (LPWSTR)lParam;
    16971680
    1698         CHAR* oldNameA = windowNameA;
    1699         WCHAR* oldNameW = windowNameW;
    1700 
     1681        if(windowNameA) free(windowNameA);
     1682        if(windowNameW) free(windowNameW);
    17011683        if (lParam)
    17021684        {
     
    17141696        }
    17151697        dprintf(("WM_SETTEXT of %x\n",Win32Hwnd));
    1716         if ((dwStyle & WS_CAPTION) && (lstrcmpW(oldNameW,windowNameW) != 0))
    1717         {
    1718           UpdateCaptionText();
     1698        if ((dwStyle & WS_CAPTION) == WS_CAPTION)
     1699        {
     1700          HandleNCPaint((HRGN)1);
    17191701          OSLibWinSetWindowText(OS2HwndFrame,(LPSTR)windowNameA);
    17201702        }
    1721 
    1722         if(oldNameA) free(oldNameA);
    1723         if(oldNameW) free(oldNameW);
    17241703
    17251704        return TRUE;
     
    19781957                     MAKELONG(rectClient.right-rectClient.left,
    19791958                              rectClient.bottom-rectClient.top));
    1980         DWORD lParam;
    1981 
    1982         if(getParent()) {//in parent coordinates
    1983             POINT point;
    1984 
    1985             point.x = rectClient.left;
    1986             point.y = rectClient.top;
    1987             MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), &point, 1);
    1988 
    1989             lParam = MAKELONG(point.x, point.y);
    1990         }
    1991         else {//in screen coordinates
    1992             lParam = MAKELONG(rectWindow.left+rectClient.left, rectWindow.top+rectClient.top);
    1993         }
    1994         SendInternalMessageA(WM_MOVE, 0, lParam);
     1959        SendInternalMessageA(WM_MOVE,0,MAKELONG(rectClient.left,rectClient.top));
    19951960    }
    19961961    switch(nCmdShow)
Note: See TracChangeset for help on using the changeset viewer.