Ignore:
Timestamp:
Sep 23, 1999, 6:44:33 PM (26 years ago)
Author:
sandervl
Message:

Control Z-order + changes for comctl32

File:
1 edited

Legend:

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

    r1005 r1025  
    1 /* $Id: win32wbase.cpp,v 1.7 1999-09-22 08:58:35 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.8 1999-09-23 16:44:33 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    192192        GlobalGetAtomNameA( classAtom, buffer, sizeof(buffer) );
    193193        dprintf(("Bad class '%s'\n", buffer ));
     194        SetLastError(ERROR_INVALID_PARAMETER);
    194195        return 0;
    195196  }
     
    304305  dwExStyle = cs->dwExStyle;
    305306
     307#if 1
     308  //SvL: Messes up Z-order of dialog controls
     309  hwndLinkAfter = HWND_TOP;
     310#else
    306311  hwndLinkAfter = ((cs->style & (WS_CHILD|WS_MAXIMIZE)) == WS_CHILD)
    307312                  ? HWND_BOTTOM : HWND_TOP;
     313#endif
    308314
    309315#if 0
     
    21732179//******************************************************************************
    21742180//******************************************************************************
     2181HWND Win32BaseWindow::Win32ToOS2Handle(HWND hwnd)
     2182{
     2183        Win32BaseWindow *window = GetWindowFromHandle(hwnd);
     2184
     2185        if(window) {
     2186                return window->getOS2WindowHandle();
     2187        }
     2188        else  return hwnd;    //OS/2 window handle
     2189}
     2190//******************************************************************************
     2191//******************************************************************************
     2192HWND Win32BaseWindow::OS2ToWin32Handle(HWND hwnd)
     2193{
     2194        Win32BaseWindow *window = GetWindowFromOS2Handle(hwnd);
     2195
     2196        if(window) {
     2197                return window->getWindowHandle();
     2198        }
     2199        else  return hwnd;    //OS/2 window handle
     2200}
     2201//******************************************************************************
     2202//******************************************************************************
    21752203GenericObject *Win32BaseWindow::windows  = NULL;
Note: See TracChangeset for help on using the changeset viewer.