Changeset 4457 for trunk/src


Ignore:
Timestamp:
Oct 8, 2000, 8:45:36 PM (25 years ago)
Author:
sandervl
Message:

ShowScrollbar fix (SB_BOTH didn't enable the vertical scrollbar)

Location:
trunk/src/user32
Files:
3 edited

Legend:

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

    r3873 r4457  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.36 2000-07-20 18:08:12 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.37 2000-10-08 18:45:35 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    243243
    244244        if(pswp->fl & (SWP_MOVE | SWP_SIZE)) {
    245                 dprintf(("Set client rectangle to (%d,%d)(%d,%d)", swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy));
     245/////                dprintf(("Set client rectangle to (%d,%d)(%d,%d)", swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy));
    246246/////                win32wnd->setClientRect(swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy);
    247247
  • trunk/src/user32/scroll.cpp

    r3215 r4457  
    1 /* $Id: scroll.cpp,v 1.36 2000-03-24 17:12:20 cbratschi Exp $ */
     1/* $Id: scroll.cpp,v 1.37 2000-10-08 18:45:36 sandervl Exp $ */
    22/*
    33 * Scrollbar control
     
    15191519
    15201520    case SB_VERT:
    1521         if (fShowV)
     1521        if (fShow)
    15221522        {
    15231523            fShowV = !(win32wnd->getStyle() & WS_VSCROLL);
  • trunk/src/user32/window.cpp

    r4225 r4457  
    1 /* $Id: window.cpp,v 1.77 2000-09-08 18:08:58 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.78 2000-10-08 18:45:36 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    907907}
    908908//******************************************************************************
     909//Calculate window rectangle based on given client rectangle, style, menu and extended style
    909910//******************************************************************************
    910911BOOL WIN32API AdjustWindowRectEx( PRECT rect, DWORD style, BOOL menu, DWORD exStyle)
    911912{
     913    if(style == 0 && menu == FALSE && exStyle == 0) {
     914        dprintf(("AdjustWindowRectEx %x %x %d (%d,%d)(%d,%d) -> no change required", style, exStyle, menu, rect->left, rect->top, rect->right, rect->bottom));
     915        return TRUE;    //nothing needs to be changed (VERIFIED in NT 4)
     916    }
    912917    dprintf(("AdjustWindowRectEx %x %x %d (%d,%d)(%d,%d)\n", style, exStyle, menu, rect->left, rect->top, rect->right, rect->bottom));
    913 
    914     if(style == 0 && menu == FALSE && exStyle == 0) {
    915         return TRUE;    //nothing needs to be changed (VERIFIED in NT 4)
    916     }
    917918    /* Correct the window style */
    918919    if (!(style & (WS_POPUP | WS_CHILD)))  /* Overlapped window */
     
    13551356    for (i = 0, winpos = pDWP->winPos; i < pDWP->actualCount; i++, winpos++)
    13561357    {
    1357         dprintf(("**EndDeferWindowPos %x (%d,%d) (%d,%d) %x", winpos->hwnd, winpos->x, winpos->y, winpos->x, winpos->cy, winpos->flags));
     1358        dprintf(("**EndDeferWindowPos %x (%d,%d) (%d,%d) %x", winpos->hwnd, winpos->x, winpos->y, winpos->cx, winpos->cy, winpos->flags));
    13581359        if (!(res = SetWindowPos(winpos->hwnd, winpos->hwndInsertAfter,
    13591360                                 winpos->x, winpos->y, winpos->cx,
Note: See TracChangeset for help on using the changeset viewer.