Ignore:
Timestamp:
Oct 15, 1999, 12:03:16 PM (26 years ago)
Author:
sandervl
Message:

GetWindow + EB's message bugfixes

File:
1 edited

Legend:

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

    r1299 r1307  
    1 /* $Id: win32wbase.cpp,v 1.43 1999-10-14 19:31:32 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.44 1999-10-15 10:03:15 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    22582258 ULONG         magic;
    22592259 ULONG         getcmd = 0;
    2260  HWND          hwndRelated;
     2260 HWND          hwndRelated, hwnd;
    22612261
    22622262    dprintf(("GetWindow %x %d NOT COMPLETE", getWindowHandle(), uCmd));
     2263    hwnd = OS2Hwnd;
    22632264    switch(uCmd)
    22642265    {
     
    22682269        case GW_HWNDFIRST:
    22692270            if(getParent()) {
     2271                    hwnd = getParent()->getOS2WindowHandle();
    22702272                    getcmd = QWOS_TOP; //top of child windows
    22712273            }
     
    22742276        case GW_HWNDLAST:
    22752277            if(getParent()) {
     2278                    hwnd = getParent()->getOS2WindowHandle();
    22762279                    getcmd = QWOS_BOTTOM; //bottom of child windows
    22772280            }
     
    22902293            else    return 0;
    22912294    }
    2292     hwndRelated = OSLibWinQueryWindow(OS2Hwnd, getcmd);
     2295    hwndRelated = OSLibWinQueryWindow(hwnd, getcmd);
    22932296    if(hwndRelated)
    22942297    {
     2298        win32wnd = (Win32BaseWindow *)OSLibWinGetWindowULong(hwndRelated, OFFSET_WIN32WNDPTR);
     2299        magic    = OSLibWinGetWindowULong(hwndRelated, OFFSET_WIN32PM_MAGIC);
     2300        if(CheckMagicDword(magic) && win32wnd)
     2301        {
     2302            return win32wnd->getWindowHandle();
     2303        }
     2304
     2305    hwndRelated = OSLibWinWindowFromID(hwndRelated, OSLIB_FID_CLIENT);
    22952306        win32wnd = (Win32BaseWindow *)OSLibWinGetWindowULong(hwndRelated, OFFSET_WIN32WNDPTR);
    22962307        magic    = OSLibWinGetWindowULong(hwndRelated, OFFSET_WIN32PM_MAGIC);
Note: See TracChangeset for help on using the changeset viewer.