Ignore:
Timestamp:
Oct 14, 1999, 11:22:43 AM (26 years ago)
Author:
sandervl
Message:

Window creation rewrite + bugfixes. NOT WORKING CORRECTLY YET..

File:
1 edited

Legend:

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

    r1265 r1281  
    1 /* $Id: oslibwin.cpp,v 1.26 1999-10-13 14:24:25 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.27 1999-10-14 09:22:40 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    4848 HWND  hwndClient;
    4949
    50   if(dwFrameStyle)
    51         dprintf(("FRAME:    WinCreateWindow %x %x %x %s", hwndParent, dwWinStyle, dwFrameStyle, pszName));
    52   else  dprintf(("WinCreateWindow %x %x %x %s", hwndParent, dwWinStyle, dwFrameStyle, pszName));
     50  dprintf(("WinCreateWindow %x %x %x %s", hwndParent, dwWinStyle, dwFrameStyle, pszName));
    5351
    5452  if(pszName && *pszName == 0) {
     
    6260  }
    6361
    64   if(dwFrameStyle || hwndParent == HWND_DESKTOP) {
    65         ULONG dwClientStyle;
    66 
     62  ULONG dwClientStyle;
     63
     64//  if(dwFrameStyle || hwndParent == HWND_DESKTOP) {
    6765        dwClientStyle = dwWinStyle & ~(WS_TABSTOP | WS_GROUP);
    68 //        if(pszName)
    69 //                dwFrameStyle |= FCF_TITLEBAR;
    7066
    7167        dwFrameStyle |= FCF_NOBYTEALIGN;
    72         if (hwndParent == HWND_DESKTOP) dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER;
     68        if (hwndParent == HWND_DESKTOP && dwFrameStyle & FCF_TITLEBAR)
     69                dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER;
     70
    7371        dwWinStyle   &= ~WS_CLIPCHILDREN;
    7472
     
    8482        dprintf(("OSLibWinCreateWindow: (FRAME) WinCreateStdWindow failed (%x)", WinGetLastError(GetThreadHAB())));
    8583        return 0;
     84#if 0
    8685  }
    8786  hwndClient = WinCreateWindow(hwndParent, WIN32_STDCLASS, pszName, dwWinStyle, 0, 0, 0, 0,
     
    9089  *hwndFrame = hwndClient;
    9190  return hwndClient;
     91#endif
    9292}
    9393//******************************************************************************
     
    144144    if(dwStyle & WS_BORDER_W)
    145145    {
    146       *OSFrameStyle |= FCF_SIZEBORDER;
     146      *OSFrameStyle |= FCF_BORDER;
    147147      *borderHeight = *borderWidth = 1;
    148148    }
     
    182182  }
    183183
     184  //Clear certain frame bits when the window doesn't have a titlebar
     185  if(!(*OSFrameStyle & FCF_TITLEBAR)) {
     186        *OSFrameStyle &= ~(FCF_MINBUTTON|FCF_MAXBUTTON|FCF_SYSMENU);
     187  }
    184188  return TRUE;
    185189}
Note: See TracChangeset for help on using the changeset viewer.