Changeset 3513 for trunk/src


Ignore:
Timestamp:
May 10, 2000, 3:14:44 PM (25 years ago)
Author:
sandervl
Message:

Get/SetForegroundWindow fixes/changes

Location:
trunk/src/user32
Files:
4 edited

Legend:

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

    r3488 r3513  
    1 /* $Id: oslibwin.cpp,v 1.75 2000-05-03 18:35:51 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.76 2000-05-10 13:14:42 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    329329//******************************************************************************
    330330//******************************************************************************
    331 BOOL OSLibWinQueryActiveWindow()
     331HWND OSLibWinQueryActiveWindow()
    332332{
    333333  return WinQueryActiveWindow(HWND_DESKTOP);
  • trunk/src/user32/oslibwin.h

    r3488 r3513  
    1 /* $Id: oslibwin.h,v 1.42 2000-05-03 18:35:52 sandervl Exp $ */
     1/* $Id: oslibwin.h,v 1.43 2000-05-10 13:14:43 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    214214BOOL  OSLibWinIsWindowEnabled(HWND hwnd);
    215215BOOL  OSLibWinIsWindowVisible(HWND hwnd);
    216 BOOL  OSLibWinQueryActiveWindow();
     216HWND  OSLibWinQueryActiveWindow();
    217217
    218218
  • trunk/src/user32/win32wbase.cpp

    r3501 r3513  
    1 /* $Id: win32wbase.cpp,v 1.185 2000-05-09 18:56:58 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.186 2000-05-10 13:14:43 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    26952695}
    26962696//******************************************************************************
     2697//TODO: Not be 100% correct; should return active window of current thread
     2698//      or NULL when there is none -> WinQueryActiveWindow just returns
     2699//      the current active window
    26972700//******************************************************************************
    26982701HWND Win32BaseWindow::GetActiveWindow()
  • trunk/src/user32/window.cpp

    r3501 r3513  
    1 /* $Id: window.cpp,v 1.66 2000-05-09 18:56:59 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.67 2000-05-10 13:14:44 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    775775    dprintf((" SetForegroundWindow %x", hwnd));
    776776
    777     return SetWindowPos( hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER );
     777    return SetWindowPos( hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
    778778}
    779779//******************************************************************************
     
    14221422HWND WIN32API GetForegroundWindow(void)
    14231423{
    1424     dprintf(("USER32:  GetForegroundWindow"));
    1425     return Win32BaseWindow::OS2ToWin32Handle(O32_GetForegroundWindow());
     1424 HWND hwnd;
     1425
     1426    hwnd = Win32BaseWindow::OS2ToWin32Handle(OSLibWinQueryActiveWindow());
     1427    dprintf(("USER32: GetForegroundWindow returned %x", hwnd));
     1428    return hwnd;
    14261429}
    14271430//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.