Ignore:
Timestamp:
Oct 2, 1999, 6:09:13 AM (26 years ago)
Author:
sandervl
Message:

EB's window style fixes

File:
1 edited

Legend:

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

    r1091 r1105  
    1 /* $Id: oslibwin.cpp,v 1.10 1999-09-29 08:27:15 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.11 1999-10-02 04:09:12 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    5757  }
    5858
    59   if(dwFrameStyle) {
     59  if(dwFrameStyle || hwndParent == HWND_DESKTOP) {
    6060        ULONG dwClientStyle;
    6161
    6262        dwClientStyle = dwWinStyle & ~(WS_TABSTOP | WS_GROUP);
    63         if(pszName)
    64                 dwFrameStyle |= FCF_TITLEBAR;
     63//        if(pszName)
     64//                dwFrameStyle |= FCF_TITLEBAR;
    6565
    6666        dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER | FCF_NOBYTEALIGN;
     
    9696        *OSWinStyle |= WS_MINIMIZED;
    9797//Done explicitely in CreateWindowExA
    98 #if 0
     98#if 1
    9999  if(dwStyle & WS_VISIBLE_W)
    100100        *OSWinStyle |= WS_VISIBLE;
     
    785785                            MPFROM2SHORT(pagesize, totalsize),
    786786                            0);
    787 }
    788 //******************************************************************************
    789 //******************************************************************************
    790 void OSLibWinChangeScrollStyle(HWND hwndParent, int scrollBar, int Reserved)
    791 {
    792  HWND hwndScroll;
    793 
    794    if(scrollBar == OSLIB_VSCROLL) {
    795         hwndScroll = WinWindowFromID(hwndParent, FID_VERTSCROLL);
    796    }
    797    else hwndScroll = WinWindowFromID(hwndParent, FID_HORZSCROLL);
    798 
    799    if(hwndScroll == NULL)
    800         return;
    801 
    802    WinSetWindowULong(hwndScroll, QWL_STYLE,
    803                      WinQueryWindowULong(hwndScroll, QWL_STYLE) |
    804                      SBS_AUTOTRACK | SBS_AUTOSIZE);
    805787}
    806788//******************************************************************************
     
    837819//******************************************************************************
    838820//******************************************************************************
     821void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle)
     822{
     823  ULONG OSWinStyle, OSFrameStyle;
     824
     825  OSLibWinConvertStyle(dwStyle, 0, &OSWinStyle, &OSFrameStyle);
     826
     827  WinSetWindowULong(hwnd, QWL_STYLE,
     828                    (WinQueryWindowULong(hwnd, QWL_STYLE) & ~0xffff0000) |
     829                    OSWinStyle);
     830}
     831//******************************************************************************
     832//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.