Ignore:
Timestamp:
May 15, 2001, 4:31:40 PM (24 years ago)
Author:
sandervl
Message:

SetFocus fix

File:
1 edited

Legend:

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

    r5685 r5713  
    1 /* $Id: oslibwin.cpp,v 1.92 2001-05-11 08:39:43 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.93 2001-05-15 14:31:38 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    153153BOOL OSLibWinAlarm(HWND hwndDeskTop,ULONG flStyle)
    154154{
    155   return WinAlarm(hwndDeskTop,flStyle);
     155    return WinAlarm(hwndDeskTop,flStyle);
    156156}
    157157//******************************************************************************
     
    159159APIRET OSLibDosBeep(ULONG freg,ULONG dur)
    160160{
    161   return DosBeep(freg,dur);
     161    return DosBeep(freg,dur);
    162162}
    163163//******************************************************************************
     
    165165HWND OSLibWinQueryFocus(HWND hwndDeskTop)
    166166{
    167   return WinQueryFocus(hwndDeskTop);
     167    return WinQueryFocus(hwndDeskTop);
    168168}
    169169//******************************************************************************
     
    171171HWND OSLibWinWindowFromID(HWND hwndParent,ULONG id)
    172172{
    173   return WinWindowFromID(hwndParent,id);
     173    return WinWindowFromID(hwndParent,id);
    174174}
    175175//******************************************************************************
     
    177177BOOL OSLibWinSetFocus(HWND hwndDeskTop,HWND hwndNewFocus, BOOL activate)
    178178{
    179   return WinFocusChange (hwndDeskTop, hwndNewFocus, activate ? FC_NOLOSEACTIVE : 0);
     179    return WinFocusChange (hwndDeskTop, hwndNewFocus, activate ? 0 : FC_NOSETACTIVE);
    180180}
    181181//******************************************************************************
     
    183183BOOL OSLibWinIsChild (HWND hwnd, HWND hwndOf)
    184184{
    185   return WinIsChild (hwnd, hwndOf);
     185    return WinIsChild (hwnd, hwndOf);
    186186}
    187187//******************************************************************************
     
    189189ULONG OSLibGetWindowHeight(HWND hwnd)
    190190{
    191   RECTL rect;
    192 
    193   return (WinQueryWindowRect(hwnd,&rect)) ? rect.yTop-rect.yBottom:0;
     191    RECTL rect;
     192
     193    return (WinQueryWindowRect(hwnd,&rect)) ? rect.yTop-rect.yBottom:0;
    194194}
    195195//******************************************************************************
     
    197197LONG OSLibWinQuerySysValue(LONG iSysValue)
    198198{
    199   return WinQuerySysValue(HWND_DESKTOP,iSysValue);
     199    return WinQuerySysValue(HWND_DESKTOP,iSysValue);
    200200}
    201201//******************************************************************************
     
    203203ULONG OSLibWinQueryDlgItemText(HWND hwndDlg,ULONG idItem,LONG cchBufferMax,char* pchBuffer)
    204204{
    205   return WinQueryDlgItemText(hwndDlg,idItem,cchBufferMax,pchBuffer);
     205    return WinQueryDlgItemText(hwndDlg,idItem,cchBufferMax,pchBuffer);
    206206}
    207207//******************************************************************************
     
    209209BOOL OSLibWinSetDlgItemText(HWND hwndDlg,ULONG idItem,char* pszText)
    210210{
    211   return WinSetDlgItemText(hwndDlg,idItem,pszText);
     211    return WinSetDlgItemText(hwndDlg,idItem,pszText);
    212212}
    213213//******************************************************************************
     
    215215BOOL OSLibWinQueryPointerPos(PPOINT pptlPoint)
    216216{
    217   return WinQueryPointerPos(HWND_DESKTOP,(PPOINTL)pptlPoint);
     217    return WinQueryPointerPos(HWND_DESKTOP,(PPOINTL)pptlPoint);
    218218}
    219219//******************************************************************************
     
    221221BOOL OSLibWinSetPointerPos(int x, int y)
    222222{
    223   return WinSetPointerPos(HWND_DESKTOP, x, y);
     223    return WinSetPointerPos(HWND_DESKTOP, x, y);
    224224}
    225225//******************************************************************************
     
    227227HWND OSLibWinQueryWindow(HWND hwnd, ULONG lCode)
    228228{
    229   return WinQueryWindow(hwnd, lCode);
     229    return WinQueryWindow(hwnd, lCode);
    230230}
    231231//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.