Ignore:
Timestamp:
Jul 26, 1999, 11:01:34 AM (26 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/oslibwin.cpp

    r385 r397  
    1 /* $Id: oslibwin.cpp,v 1.19 1999-07-24 14:01:44 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.20 1999-07-26 09:01:34 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    4848        pszName = NULL;
    4949  }
    50   if(hwndParent == 0) {
     50  if(hwndParent == OSLIB_HWND_DESKTOP) {
    5151        hwndParent = HWND_DESKTOP;
    5252  }
     53  if(Owner == OSLIB_HWND_DESKTOP) {
     54        Owner = HWND_DESKTOP;
     55  }
     56
    5357  if(dwFrameStyle) {
    5458        dwWinStyle &= ~WS_CLIPCHILDREN; //invalid style according to docs
     
    5660                dwFrameStyle |= FCF_TITLEBAR;
    5761
     62        dwFrameStyle |= FCF_TASKLIST;
    5863        *hwndFrame = WinCreateStdWindow(hwndParent, dwWinStyle,
    5964                                       &dwFrameStyle, WIN32_STDCLASS,
     
    7681//******************************************************************************
    7782//******************************************************************************
    78 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG *OSWinStyle, ULONG *OSFrameStyle)
     83BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG dwExStyle, ULONG *OSWinStyle, ULONG *OSFrameStyle)
    7984{
    8085  *OSWinStyle   = 0;
     
    121126        *OSFrameStyle |= FCF_MAXBUTTON;
    122127
     128  if(dwExStyle & WINWS_EX_DLGMODALFRAME)
     129        *OSFrameStyle |= FCF_DLGBORDER;
     130
    123131  return TRUE;
    124132}
     
    217225{
    218226 HWND hwndParent = hwndInsertBehind;
    219 
    220   if(fl & SWP_MOVE) {
     227 BOOL rc;
     228
     229    if(fl & SWP_MOVE) {
    221230        switch(hwndParent)
    222231        {
     
    227236        }
    228237        y = MapOS2ToWin32Y(hwndParent, cy, y);
    229   }
    230   dprintf(("WinSetWindowPos %x %x %d %d %d %d %x", hwnd, hwndInsertBehind, x, y, cx, cy, fl));
    231   return WinSetWindowPos(hwnd, hwndInsertBehind, x, y, cx, cy, fl);
     238    }
     239    rc = WinSetWindowPos(hwnd, hwndInsertBehind, x, y, cx, cy, fl);
     240    dprintf(("WinSetWindowPos %x %x %d %d %d %d %x returned %d (%x)", hwnd, hwndInsertBehind, x, y, cx, cy, fl, rc, WinGetLastError(GetThreadHAB())));
     241    return rc;
    232242}
    233243//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.