Ignore:
Timestamp:
Jan 20, 2000, 5:48:58 PM (26 years ago)
Author:
cbratschi
Message:

WM_CONTEXTMENU, sysmenu changes

File:
1 edited

Legend:

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

    r2469 r2483  
    1 /* $Id: win32wbase.cpp,v 1.142 2000-01-18 20:10:53 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.143 2000-01-20 16:48:56 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    10551055    //set new window rectangle
    10561056    setWindowRect(lpWndPos->x, lpWndPos->y, lpWndPos->x + lpWndPos->cx, lpWndPos->y + lpWndPos->cy);
     1057    if (getParent()) mapWin32Rect(getParent()->getOS2WindowHandle(),OSLIB_HWND_DESKTOP,&rectWindow);
    10571058    newWindowRect= rectWindow;
    10581059  }
     
    14131414            DWORD lParam;
    14141415
    1415             if(getParent()) {//in parent coordinates
    1416                 POINT point;
    1417 
    1418                 point.x = rectClient.left;
    1419                 point.y = rectClient.top;
    1420                 ClientToScreen(getParent()->getWindowHandle(),&point);
    1421 
    1422                 lParam = MAKELONG(point.x, point.y);
    1423             }
    1424             else {//in screen coordinates
    1425                 lParam = MAKELONG(rectClient.left,rectClient.top);
     1416            if (dwStyle & WS_CHILD)
     1417            {
     1418              lParam = MAKELONG(rectClient.left,rectClient.top);
     1419            } else
     1420            {
     1421              POINT point;
     1422
     1423              point.x = rectClient.left;
     1424              point.y = rectClient.top;
     1425              if (getParent()) ClientToScreen(getParent()->getWindowHandle(),&point);
     1426
     1427              lParam = MAKELONG(point.x, point.y);
    14261428            }
    14271429            SendInternalMessageA(WM_MOVE, 0, lParam);
     
    20462048   HWND hParent = 0;
    20472049
    2048     dprintf (("SetWindowPos %x %x (%d,%d)(%d,%d) %x", Win32Hwnd, hwndInsertAfter, x, y, cx, cy, fuFlags));
    2049 
    20502050    if (fuFlags &
    20512051       ~(SWP_NOSIZE     | SWP_NOMOVE     | SWP_NOZORDER     |
     
    20642064    WINDOWPOS wpos;
    20652065    SWP swp, swpOld;
     2066
     2067#if 0 //CB: test: MSIE 2.0 displays the tool-/addressbar this way -> to check
     2068  //CB: cx or cy are 0
     2069if (cx == 0) cx = 50;
     2070if (cy == 0) cy = 50;
     2071#endif
    20662072
    20672073    wpos.flags            = fuFlags;
Note: See TracChangeset for help on using the changeset viewer.