Ignore:
Timestamp:
Sep 17, 1999, 8:49:53 PM (26 years ago)
Author:
dengert
Message:

window focus management fixed

File:
1 edited

Legend:

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

    r949 r963  
    1 /* $Id: oslibwin.cpp,v 1.1 1999-09-15 23:18:54 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.2 1999-09-17 18:49:53 dengert Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    183183//******************************************************************************
    184184//******************************************************************************
    185 BOOL OSLibWinSetFocus(HWND hwndDeskTop,HWND hwndNewFocus)
    186 {
    187   return WinSetFocus(hwndDeskTop,hwndNewFocus);
     185BOOL OSLibWinSetFocus(HWND hwndDeskTop,HWND hwndNewFocus, BOOL activate)
     186{
     187  return WinFocusChange (hwndDeskTop, hwndNewFocus, activate ? FC_NOLOSEACTIVE : 0);
     188}
     189//******************************************************************************
     190//******************************************************************************
     191BOOL OSLibWinIsChild (HWND hwnd, HWND hwndOf)
     192{
     193  return WinIsChild (hwnd, hwndOf);
    188194}
    189195//******************************************************************************
     
    677683HWND OSLibWinBeginEnumWindows(HWND hwnd)
    678684{
    679    if(hwnd == OSLIB_HWND_DESKTOP)       hwnd = HWND_DESKTOP;
     685   if(hwnd == OSLIB_HWND_DESKTOP)       hwnd = HWND_DESKTOP;
    680686   else
    681    if(hwnd == OSLIB_HWND_OBJECT)        hwnd = HWND_OBJECT;
     687   if(hwnd == OSLIB_HWND_OBJECT)        hwnd = HWND_OBJECT;
    682688
    683689   return WinBeginEnumWindows(hwnd);
Note: See TracChangeset for help on using the changeset viewer.