Ignore:
Timestamp:
Nov 14, 1999, 2:07:03 PM (26 years ago)
Author:
sandervl
Message:

SetParent bugfix

File:
1 edited

Legend:

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

    r1724 r1733  
    1 /* $Id: win32wbase.cpp,v 1.82 1999-11-13 16:42:43 cbratschi Exp $ */
     1/* $Id: win32wbase.cpp,v 1.83 1999-11-14 13:07:02 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    22742274        setParent(newparent);
    22752275        getParent()->AddChild(this);
    2276         OSLibWinSetParent(getOS2WindowHandle(), getParent()->getOS2WindowHandle());
     2276        OSLibWinSetParent(getOS2FrameWindowHandle(), getParent()->getOS2WindowHandle());
    22772277        return oldhwnd;
    22782278   }
     
    27582758ULONG Win32BaseWindow::GetWindowLongA(int index)
    27592759{
    2760     dprintf2(("GetWindowLongA %x %d", getWindowHandle(), index));
     2760 ULONG value;
     2761
    27612762    switch(index) {
    27622763        case GWL_EXSTYLE:
    2763                 return dwExStyle;
     2764                value = dwExStyle;
     2765                break;
    27642766        case GWL_STYLE:
    2765                 return dwStyle;
     2767                value = dwStyle;
     2768                break;
    27662769        case GWL_WNDPROC:
    2767                 return (ULONG)getWindowProc();
     2770                value = (ULONG)getWindowProc();
     2771                break;
    27682772        case GWL_HINSTANCE:
    2769                 return hInstance;
     2773                value = hInstance;
     2774                break;
    27702775        case GWL_HWNDPARENT:
    27712776                if(getParent()) {
    2772                         return getParent()->getWindowHandle();
     2777                        value = getParent()->getWindowHandle();
    27732778                }
    2774                 else    return 0;
     2779                else    value = 0;
     2780                break;
    27752781        case GWL_ID:
    2776                 return getWindowId();
     2782                value = getWindowId();
     2783                break;
    27772784        case GWL_USERDATA:
    2778                 return userData;
     2785                value = userData;
     2786                break;
    27792787        default:
    27802788                if(index >= 0 && index/4 < nrUserWindowLong)
    27812789                {
    2782                         return userWindowLong[index/4];
     2790                        value = userWindowLong[index/4];
     2791                        break;
    27832792                }
    27842793                SetLastError(ERROR_INVALID_PARAMETER);
    27852794                return 0;
    27862795    }
     2796    dprintf2(("GetWindowLongA %x %d %x", getWindowHandle(), index, value));
     2797    return value;
    27872798}
    27882799//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.