Changeset 12568


Ignore:
Timestamp:
Dec 5, 1999, 5:37:59 PM (25 years ago)
Author:
sandervl
Message:

tasklist changes

Location:
tags/trunk/src/user32
Files:
4 edited

Legend:

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

    r12435 r12568  
    1 /* $Id: oslibwin.cpp,v 1.49 1999-11-26 17:06:08 cbratschi Exp $ */
     1/* $Id: oslibwin.cpp,v 1.50 1999-12-05 16:37:57 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    5454HWND OSLibWinCreateWindow(HWND hwndParent, ULONG dwWinStyle, ULONG dwFrameStyle,
    5555                          char *pszName, HWND Owner, ULONG fHWND_BOTTOM, HWND *hwndFrame,
    56                           ULONG id)
     56                          ULONG id, BOOL fTaskList)
    5757{
    5858 HWND  hwndClient;
     
    8181
    8282  dwFrameStyle |= FCF_NOBYTEALIGN;
    83   if (hwndParent == HWND_DESKTOP && dwFrameStyle & FCF_TITLEBAR) {
     83  if(fTaskList)
     84  {
    8485    dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER;
    8586  }
     
    10531054//******************************************************************************
    10541055//******************************************************************************
    1055 void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle)
     1056void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle, BOOL fTaskList)
    10561057{
    10571058  ULONG OSWinStyle, OSFrameStyle, borderWidth, borderHeight,dwExStyle;
    10581059
    10591060  OSLibWinConvertStyle(dwStyle, &dwExStyle, &OSWinStyle, &OSFrameStyle, &borderWidth, &borderHeight);
     1061
     1062  if(fTaskList)
     1063  {
     1064    OSFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER;
     1065  }
    10601066
    10611067//  OSWinStyle = OSWinStyle & ~(WS_TABSTOP | WS_GROUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS);
  • TabularUnified tags/trunk/src/user32/oslibwin.h

    r12417 r12568  
    1 /* $Id: oslibwin.h,v 1.26 1999-11-24 19:32:21 sandervl Exp $ */
     1/* $Id: oslibwin.h,v 1.27 1999-12-05 16:37:58 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    3939HWND  OSLibWinCreateWindow(HWND hwndParent, ULONG dwWinStyle, ULONG dwFrameStyle,
    4040                           char *pszName, HWND Owner, ULONG fBottom,
    41                            HWND *hwndFrame, ULONG id);
     41                           HWND *hwndFrame, ULONG id, BOOL fTaskList);
    4242
    4343BOOL  OSLibWinConvertStyle(ULONG dwStyle, ULONG *dwExStyle, ULONG *OSWinStyle, ULONG *OSFrameStyle, ULONG *borderWidth, ULONG *borderHeight);
    44 void  OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle);
     44void  OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle, BOOL fTaskList);
    4545
    4646#define OSLIB_QWL_USER -4
  • TabularUnified tags/trunk/src/user32/win32wbase.cpp

    r12556 r12568  
    1 /* $Id: win32wbase.cpp,v 1.104 1999-12-05 00:31:48 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.105 1999-12-05 16:37:58 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    146146  fIsDestroyed     = FALSE;
    147147  fCreated         = FALSE;
     148  fTaskList        = FALSE;
    148149
    149150  windowNameA      = NULL;
     
    509510  }
    510511
     512  if(((cs->style & 0xC0000000) == WS_OVERLAPPED) && ((cs->style & WS_CAPTION) == WS_CAPTION) && owner == NULL)
     513  {
     514            fTaskList = TRUE;
     515  }
     516
    511517  DWORD dwOSWinStyle, dwOSFrameStyle;
    512518
     
    561567                                 (owner) ? owner->getOS2WindowHandle() : OSLIB_HWND_DESKTOP,
    562568                                 (hwndLinkAfter == HWND_BOTTOM) ? TRUE : FALSE,
    563                                  &OS2HwndFrame, 0);
     569                                 &OS2HwndFrame, 0, fTaskList);
    564570
    565571  if(OS2Hwnd == 0) {
     
    718724{
    719725  if(SendInternalMessageA(WM_CLOSE, 0, 0) == 0) {
    720         dprintf(("Win32BaseWindow::MsgClose, app handles msg"));
     726    dprintf(("Win32BaseWindow::MsgClose, app handles msg"));
    721727        return 0; //app handles this message
    722728  }
     
    16741680    case WM_PAINTICON:
    16751681    case WM_PAINT:
    1676         {
    1677             PAINTSTRUCT ps;
    1678             HDC hdc = BeginPaint(getWindowHandle(), &ps );
    1679             if( hdc )
    1680             {
    1681               if( (getStyle() & WS_MINIMIZE) && getWindowClass()->getIcon())
    1682               {
    1683                 int x = (rectWindow.right - rectWindow.left - GetSystemMetrics(SM_CXICON))/2;
    1684                 int y = (rectWindow.bottom - rectWindow.top - GetSystemMetrics(SM_CYICON))/2;
    1685                     dprintf(("Painting class icon: vis rect=(%i,%i - %i,%i)\n", ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom ));
    1686                 DrawIcon(hdc, x, y, getWindowClass()->getIcon() );
    1687               }
    1688               EndPaint(getWindowHandle(), &ps );
    1689             }
    1690             return 0;
    1691         }
     1682    {
     1683        PAINTSTRUCT ps;
     1684        HDC hdc = BeginPaint(getWindowHandle(), &ps );
     1685        if( hdc )
     1686        {
     1687          if( (getStyle() & WS_MINIMIZE) && getWindowClass()->getIcon())
     1688          {
     1689            int x = (rectWindow.right - rectWindow.left - GetSystemMetrics(SM_CXICON))/2;
     1690            int y = (rectWindow.bottom - rectWindow.top - GetSystemMetrics(SM_CYICON))/2;
     1691            dprintf(("Painting class icon: vis rect=(%i,%i - %i,%i)\n", ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom ));
     1692            DrawIcon(hdc, x, y, getWindowClass()->getIcon() );
     1693          }
     1694          EndPaint(getWindowHandle(), &ps );
     1695        }
     1696        return 0;
     1697    }
    16921698
    16931699    case WM_GETDLGCODE:
     
    23432349
    23442350    BOOL rc = OSLibWinShowWindow(OS2HwndFrame, showstate);
     2351
    23452352    return rc;
    23462353}
     
    29572964  if(IsWindowDestroyed()) return;
    29582965
    2959 /*
    2960   if (isChild())
    2961   {
    2962     DWORD dwOSWinStyle,dwOSFrameStyle,newBorderWidth,newBorderHeight;
    2963 
    2964     OSLibWinConvertStyle(dwStyle,&dwExStyle,&dwOSWinStyle,&dwOSFrameStyle,&newBorderWidth,&newBorderHeight);
    2965     if (newBorderWidth != borderWidth || newBorderHeight != borderHeight)
    2966     {
    2967       borderWidth = newBorderWidth;
    2968       borderHeight = newBorderHeight;
    2969       FrameSetBorderSize(this,TRUE);
    2970     }
    2971   }
    2972 */
    2973 
    2974   if (dwStyle != oldStyle) OSLibSetWindowStyle(OS2HwndFrame,dwStyle);
     2966  if (dwStyle != oldStyle) OSLibSetWindowStyle(OS2HwndFrame, dwStyle, fTaskList);
    29752967}
    29762968//******************************************************************************
  • TabularUnified tags/trunk/src/user32/win32wbase.h

    r12534 r12568  
    1 /* $Id: win32wbase.h,v 1.48 1999-12-02 19:30:41 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.49 1999-12-05 16:37:59 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    301301        BOOL    fIsDestroyed;
    302302        BOOL    fCreated;
     303        BOOL    fTaskList;              //should be listed in PM tasklist or not
    303304
    304305        PVOID   pOldFrameProc;
Note: See TracChangeset for help on using the changeset viewer.