Changeset 19401


Ignore:
Timestamp:
Jul 11, 2002, 8:14:20 PM (23 years ago)
Author:
achimha
Message:

make task list activation work on all systems

File:
1 edited

Legend:

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

    r19065 r19401  
    1 /* $Id: oslibwin.cpp,v 1.121 2002-05-29 09:56:43 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.122 2002-07-11 18:14:20 achimha Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    955955void OSLibWinShowTaskList(HWND hwndFrame)
    956956{
    957   //CB: don't know if this works on all machines
    958   WinSetActiveWindow(HWND_DESKTOP,0x8000000E);
     957  SWBLOCK swblk;
     958  // the first entry returned is always the window list itself
     959  if (WinQuerySwitchList(0, &swblk, sizeof(SWBLOCK)) > 0)
     960    WinSetActiveWindow(HWND_DESKTOP, swblk.aswentry[0].swctl.hwnd);
    959961}
    960962//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.