Changeset 1337 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Oct 17, 1999, 6:42:40 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r1333 r1337 1 /* $Id: oslibwin.cpp,v 1.3 0 1999-10-17 12:17:43 cbratschiExp $ */1 /* $Id: oslibwin.cpp,v 1.31 1999-10-17 16:42:38 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 962 962 //****************************************************************************** 963 963 //****************************************************************************** 964 964 BOOL 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 //****************************************************************************** 977 BOOL 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.