Ignore:
Timestamp:
Nov 1, 1999, 8:11:46 PM (26 years ago)
Author:
sandervl
Message:

Activate + group box fixes + cleanup changes

File:
1 edited

Legend:

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

    r1523 r1540  
    1 /* $Id: oslibwin.cpp,v 1.40 1999-10-30 18:08:19 dengert Exp $ */
     1/* $Id: oslibwin.cpp,v 1.41 1999-11-01 19:11:40 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    5050//******************************************************************************
    5151HWND OSLibWinCreateWindow(HWND hwndParent, ULONG dwWinStyle, ULONG dwFrameStyle,
    52                           char *pszName, HWND Owner, ULONG fHWND_BOTTOM, HWND *hwndFrame,
     52                          char *pszName, HWND Owner, ULONG fBottom, HWND *hwndFrame,
    5353                          ULONG id)
    5454{
     
    6969  ULONG dwClientStyle;
    7070
    71 #if 0
    72 //  if(dwFrameStyle || hwndParent == HWND_DESKTOP) {
    73         dwClientStyle = dwWinStyle & ~(WS_TABSTOP | WS_GROUP | WS_CLIPSIBLINGS);
    74 
    75         dwFrameStyle |= FCF_NOBYTEALIGN;
    76         if (hwndParent == HWND_DESKTOP && dwFrameStyle & FCF_TITLEBAR)
    77                 dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER;
    78 
    79         dwWinStyle &= ~(WS_CLIPCHILDREN | WS_CLIPSIBLINGS);
    80 
    81         *hwndFrame = WinCreateStdWindow(hwndParent, dwWinStyle,
    82                                        &dwFrameStyle, WIN32_STDCLASS,
    83                                        "", dwClientStyle, 0, id, &hwndClient);
    84         if(*hwndFrame) {
    85                 if(pszName) {
    86                         WinSetWindowText(*hwndFrame, pszName);
    87                 }
    88                 return hwndClient;
    89         }
    90         dprintf(("OSLibWinCreateWindow: (FRAME) WinCreateStdWindow failed (%x)", WinGetLastError(GetThreadHAB())));
    91         return 0;
    92 #else
    9371  BOOL TopLevel = hwndParent == HWND_DESKTOP;
    9472  FRAMECDATA FCData = {sizeof (FRAMECDATA), 0, 0, 0};
     
    10785                                TopLevel ? WC_FRAME : WIN32_INNERFRAME,
    10886                                pszName, dwWinStyle, 0, 0, 50, 30,
    109                                 hwndParent, HWND_TOP, id, &FCData, NULL);
     87                                hwndParent, HWND_TOP,
     88                                id, &FCData, NULL);
    11089  if (*hwndFrame) {
    11190    hwndClient = WinCreateWindow (*hwndFrame, WIN32_STDCLASS,
     
    11493    if (hwndClient != NULLHANDLE)
    11594      WinSendMsg (*hwndFrame, WM_UPDATEFRAME, 0, 0);
     95
    11696    return hwndClient;
    11797  }
    11898  dprintf(("OSLibWinCreateWindow: (FRAME) WinCreateStdWindow failed (%x)", WinGetLastError(GetThreadHAB())));
    11999  return 0;
    120 #endif
    121 
    122 #if 0
    123   }
    124   hwndClient = WinCreateWindow(hwndParent, WIN32_STDCLASS, pszName, dwWinStyle, 0, 0, 0, 0,
    125                                Owner, (fHWND_BOTTOM) ? HWND_BOTTOM :HWND_TOP, 0, NULL,
    126                                NULL);
    127   *hwndFrame = hwndClient;
    128   return hwndClient;
    129 #endif
    130100}
    131101//******************************************************************************
     
    378348  if(rc == 0)
    379349        dprintf(("WinShowWindow %x failed %x", hwnd, WinGetLastError(GetThreadHAB())));
    380   rc = WinSetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, fl);
     350  rc = WinSetWindowPos(hwnd, 0, 0, 0, 0, 0, fl);
    381351  if(rc == 0)
    382352        dprintf(("WinShowWindow %x failed %x", hwnd, WinGetLastError(GetThreadHAB())));
Note: See TracChangeset for help on using the changeset viewer.