Ignore:
Timestamp:
May 11, 2001, 10:39:46 AM (24 years ago)
Author:
sandervl
Message:

client/frame rewrite

File:
1 edited

Legend:

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

    r5586 r5685  
    1 /* $Id: window.cpp,v 1.94 2001-04-25 20:53:39 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.95 2001-05-11 08:39:46 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    404404
    405405    if(hwnd == HWND_DESKTOP) {
    406     window = windowDesktop;
     406        window = windowDesktop;
    407407    }
    408408    else {
     
    412412            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    413413            return 0;
    414     }
     414        }
    415415    }
    416416    hwndTop = window->GetTopWindow();
     
    947947    if (!pRect)
    948948    {
    949       SetLastError(ERROR_INVALID_PARAMETER);
    950       return FALSE;
     949        SetLastError(ERROR_INVALID_PARAMETER);
     950        return FALSE;
    951951    }
    952952    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
     
    973973    if(style == 0 && menu == FALSE && exStyle == 0) {
    974974        dprintf(("AdjustWindowRectEx %x %x %d (%d,%d)(%d,%d) -> no change required", style, exStyle, menu, rect->left, rect->top, rect->right, rect->bottom));
    975     return TRUE;    //nothing needs to be changed (VERIFIED in NT 4)
     975        return TRUE;    //nothing needs to be changed (VERIFIED in NT 4)
    976976    }
    977977    dprintf(("AdjustWindowRectEx %x %x %d (%d,%d)(%d,%d)\n", style, exStyle, menu, rect->left, rect->top, rect->right, rect->bottom));
     
    988988    //Adjust rect outer (Win32BaseWindow::AdjustRectOuter)
    989989    if (HAS_THICKFRAME(style,exStyle))
    990       InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) );
     990        InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) );
    991991    else
    992       if (HAS_DLGFRAME(style,exStyle))
     992    if (HAS_DLGFRAME(style,exStyle))
    993993        InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) );
    994       else
    995         if (HAS_THINFRAME(style))
    996           InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER));
     994    else
     995    if (HAS_THINFRAME(style))
     996        InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER));
    997997
    998998    if ((style & WS_CAPTION) == WS_CAPTION)
    999999    {
    1000       if (exStyle & WS_EX_TOOLWINDOW)
    1001         rect->top -= GetSystemMetrics(SM_CYSMCAPTION);
    1002       else
    1003         rect->top -= GetSystemMetrics(SM_CYCAPTION);
     1000        if (exStyle & WS_EX_TOOLWINDOW)
     1001            rect->top -= GetSystemMetrics(SM_CYSMCAPTION);
     1002        else
     1003            rect->top -= GetSystemMetrics(SM_CYCAPTION);
    10041004    }
    10051005
    10061006    if (menu)
    1007       rect->top -= GetSystemMetrics(SM_CYMENU);
     1007        rect->top -= GetSystemMetrics(SM_CYMENU);
    10081008
    10091009    //Adjust rect inner (Win32BaseWindow::AdjustRectInner)
    10101010    if(!(style & WS_ICONIC)) {
    1011     if (exStyle & WS_EX_CLIENTEDGE)
     1011        if (exStyle & WS_EX_CLIENTEDGE)
    10121012            InflateRect (rect, GetSystemMetrics(SM_CXEDGE), GetSystemMetrics(SM_CYEDGE));
    10131013
    1014     if (exStyle & WS_EX_STATICEDGE)
     1014        if (exStyle & WS_EX_STATICEDGE)
    10151015            InflateRect (rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER));
    10161016
    1017     //SvL: scrollbars aren't checked *UNLESS* the style includes a border (any border)
     1017        //SvL: scrollbars aren't checked *UNLESS* the style includes a border (any border)
    10181018        //     --> VERIFIED IN NT4, SP6 (fixes MFC apps with scrollbars + bar controls)
    1019     if(style & (WS_THICKFRAME|WS_BORDER|WS_DLGFRAME)) {
     1019        if(style & (WS_THICKFRAME|WS_BORDER|WS_DLGFRAME)) {
    10201020            if (style & WS_VSCROLL) rect->right  += GetSystemMetrics(SM_CXVSCROLL);
    10211021            if (style & WS_HSCROLL) rect->bottom += GetSystemMetrics(SM_CYHSCROLL);
    1022     }
     1022        }
    10231023    }
    10241024
     
    16871687        return FALSE;
    16881688  }
    1689   dprintf(("USER32: ShowOwnedPopups %x %d", hwnd, fShow));
     1689  dprintf(("USER32: ShowOwnedPopups %x %d", hwndOwner, fShow));
    16901690
    16911691  hwnd = GetWindow(GetDesktopWindow(), GW_CHILD);
Note: See TracChangeset for help on using the changeset viewer.