Ignore:
Timestamp:
Oct 17, 1999, 6:42:40 PM (26 years ago)
Author:
sandervl
Message:

Implemented SetWindowPlacement + bugfixes

File:
1 edited

Legend:

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

    r1333 r1337  
    1 /* $Id: oslibwin.cpp,v 1.30 1999-10-17 12:17:43 cbratschi Exp $ */
     1/* $Id: oslibwin.cpp,v 1.31 1999-10-17 16:42:38 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    962962//******************************************************************************
    963963//******************************************************************************
    964 
     964BOOL OSLibSetWindowRestoreRect(HWND hwnd, PRECT pRect)
     965{
     966 ULONG yHeight = OSLibGetWindowHeight(WinQueryWindow(hwnd, QW_PARENT));
     967
     968  WinSetWindowUShort(hwnd, QWS_XRESTORE,  (USHORT)pRect->left );
     969  WinSetWindowUShort(hwnd, QWS_YRESTORE,  (USHORT)(yHeight - pRect->top -
     970                                                   (pRect->bottom - pRect->top)));
     971  WinSetWindowUShort(hwnd, QWS_CXRESTORE, (USHORT)(pRect->right - pRect->left));
     972  WinSetWindowUShort(hwnd, QWS_CYRESTORE, (USHORT)(pRect->bottom - pRect->top));
     973  return TRUE;
     974}
     975//******************************************************************************
     976//******************************************************************************
     977BOOL OSLibSetWindowMinPos(HWND hwnd, ULONG x, ULONG y)
     978{
     979 ULONG yHeight = OSLibGetWindowHeight(WinQueryWindow(hwnd, QW_PARENT));
     980
     981  WinSetWindowUShort(hwnd, QWS_XMINIMIZE, (USHORT)x );
     982  WinSetWindowUShort(hwnd, QWS_YMINIMIZE, (USHORT)(yHeight - y -
     983                    ( 2 * WinQuerySysValue( HWND_DESKTOP, SV_CYSIZEBORDER)) -
     984                      WinQuerySysValue( HWND_DESKTOP, SV_CYICON)));
     985  return TRUE;
     986}
     987//******************************************************************************
     988//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.