Changeset 5968 for trunk/src


Ignore:
Timestamp:
Jun 11, 2001, 10:08:26 PM (24 years ago)
Author:
sandervl
Message:

bug fixes

Location:
trunk/src/user32
Files:
5 edited

Legend:

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

    r5935 r5968  
    1 /* $Id: menu.cpp,v 1.32 2001-06-09 14:50:18 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.33 2001-06-11 20:08:23 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    983983    lppop->Width = lppop->Height = 0;
    984984    if (lppop->nItems == 0) return;
     985#ifdef __WIN32OS2__
     986    hdc = CreateCompatibleDC( 0 );
     987#else
    985988    hdc = GetDC( 0 );
     989#endif
    986990
    987991    SelectObject( hdc, hMenuFont);
     
    10341038    lppop->Width += 2;
    10351039
     1040#ifdef __WIN32OS2__
     1041    DeleteDC(hdc);
     1042#else
    10361043    ReleaseDC( 0, hdc );
     1044#endif
    10371045}
    10381046
  • trunk/src/user32/win32wbase.cpp

    r5964 r5968  
    1 /* $Id: win32wbase.cpp,v 1.263 2001-06-11 14:37:46 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.264 2001-06-11 20:08:24 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    29032903
    29042904    dprintf(("EnumChildWindows of %x parameter %x %x (%x)", getWindowHandle(), lpfn, lParam, getFirstChild()));
     2905    lock();
    29052906    for (child = (Win32BaseWindow *)getFirstChild(); child; child = (Win32BaseWindow *)child->getNextChild())
    29062907    {
    29072908        dprintf(("EnumChildWindows: enumerating child %x (owner %x; parent %x)", child->getWindowHandle(), (child->getOwner()) ? child->getOwner()->getWindowHandle() : 0, getWindowHandle()));
    29082909        hwnd = child->getWindowHandle();
    2909         if(child->getOwner()) {
     2910        if(child->IsWindowDestroyed() || child->getOwner()) {
    29102911                continue; //shouldn't have an owner (Wine)
    29112912        }
     2913        child->addRef();
     2914        unlock();
    29122915        if(lpfn(hwnd, lParam) == FALSE)
    29132916        {
    2914                 rc = FALSE;
    2915                 break;
    2916         }
     2917                child->release();
     2918                return FALSE;
     2919        }
     2920        child->release();
     2921        lock();
    29172922        //check if the window still exists
    29182923        if(!::IsWindow(hwnd))
     
    29242929        {
    29252930            dprintf(("EnumChildWindows: Enumerate children of %x", child->getWindowHandle()));
     2931            child->addRef();
     2932            unlock();
    29262933            if(child->EnumChildWindows(lpfn, lParam) == FALSE)
    29272934            {
    2928                 rc = FALSE;
    2929                 break;
    2930             }
     2935                child->release();
     2936                return FALSE;
     2937            }
     2938            child->release();
     2939            lock();
    29312940        }
    29322941        prevchild = child;
    29332942    }
     2943    unlock();
    29342944    return rc;
    29352945}
     
    34763486                }
    34773487                oldval = (LONG)WINPROC_GetProc(win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    3478                 dprintf(("SetWindowLong GWL_WNDPROC %x old %x new style %x", getWindowHandle(), oldval, value));
     3488                dprintf(("SetWindowLong GWL_WNDPROC %x old %x new wndproc %x", getWindowHandle(), oldval, value));
    34793489                WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, type, WIN_PROC_WINDOW);
    34803490                break;
  • trunk/src/user32/win32wmdichild.cpp

    r5935 r5968  
    1 /* $Id: win32wmdichild.cpp,v 1.26 2001-06-09 14:50:23 sandervl Exp $ */
     1/* $Id: win32wmdichild.cpp,v 1.27 2001-06-11 20:08:25 sandervl Exp $ */
    22/*
    33 * Win32 MDI Child Window Class for OS/2
     
    303303    if( !(client->getStyle() & MDIS_ALLCHILDSTYLES) )
    304304    {
     305        dprintf(("Fixing MDI window style! %x -> %x", style, style | WS_VISIBLE | WS_OVERLAPPEDWINDOW));
    305306        style &= (WS_CHILD | WS_CLIPSIBLINGS | WS_MINIMIZE | WS_MAXIMIZE |
    306307                  WS_CLIPCHILDREN | WS_DISABLED | WS_VSCROLL | WS_HSCROLL );
  • trunk/src/user32/win32wmdiclient.cpp

    r5965 r5968  
    1 /* $Id: win32wmdiclient.cpp,v 1.36 2001-06-11 15:05:44 sandervl Exp $ */
     1/* $Id: win32wmdiclient.cpp,v 1.37 2001-06-11 20:08:25 sandervl Exp $ */
    22/*
    33 * Win32 MDI Client Window Class for OS/2
     
    253253            rect.bottom = HIWORD(lParam);
    254254
    255             AdjustWindowRectEx(&rect, GetWindowLongA(maximizedChild, GWL_STYLE), 0, GetWindowLongA(maximizedChild, GWL_EXSTYLE));
     255            AdjustWindowRectEx(&rect, ::GetWindowLongA(maximizedChild, GWL_STYLE), 0, ::GetWindowLongA(maximizedChild, GWL_EXSTYLE));
    256256            ::MoveWindow(maximizedChild, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 1);
    257257        }
  • trunk/src/user32/winicon.cpp

    r5728 r5968  
    1 /* $Id: winicon.cpp,v 1.23 2001-05-17 11:25:49 sandervl Exp $ */
     1/* $Id: winicon.cpp,v 1.24 2001-06-11 20:08:26 sandervl Exp $ */
    22/*
    33 * Win32 Icon Code for OS/2
     
    809809    }
    810810
     811#ifdef __WIN32OS2__
     812    if( (hdc = CreateCompatibleDC( 0 )) )
     813#else
    811814    if( (hdc = GetDC( 0 )) )
     815#endif
    812816    {
    813817        BITMAPINFO* pInfo;
     
    9981002             HeapFree( GetProcessHeap(), 0, pInfo );
    9991003        }
     1004#ifdef __WIN32OS2__
     1005        DeleteDC(hdc );
     1006#else
    10001007        ReleaseDC( 0, hdc );
     1008#endif
    10011009    }
    10021010
Note: See TracChangeset for help on using the changeset viewer.