Ignore:
Timestamp:
Oct 9, 1999, 8:16:58 PM (26 years ago)
Author:
sandervl
Message:

Desktop window lookup bugfix

File:
1 edited

Legend:

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

    r1209 r1231  
    1 /* $Id: win32wbase.cpp,v 1.32 1999-10-09 09:45:27 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.33 1999-10-09 18:16:57 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    3939#include "dc.h"
    4040#include "pmframe.h"
     41#include "win32wdesktop.h"
    4142
    4243#define HAS_DLGFRAME(style,exStyle) \
     
    25302531 Win32BaseWindow *window;
    25312532
     2533   if(hwnd == NULL && windowDesktop)
     2534        return windowDesktop;
     2535
    25322536   if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) {
    25332537        return window;
     
    25902594                return window->getWindowHandle();
    25912595        }
    2592         else  return hwnd;    //OS/2 window handle
     2596        window = GetWindowFromOS2FrameHandle(hwnd);
     2597        if(window) {
     2598                return window->getWindowHandle();
     2599        } 
     2600        else    return hwnd;    //OS/2 window handle
    25932601}
    25942602//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.