Changeset 1039 for trunk/src/user32/user32.cpp
- Timestamp:
- Sep 25, 1999, 11:27:08 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/user32.cpp
r1036 r1039 1 /* $Id: user32.cpp,v 1. 29 1999-09-24 22:45:27 sandervlExp $ */1 /* $Id: user32.cpp,v 1.30 1999-09-25 09:27:08 dengert Exp $ */ 2 2 3 3 /* … … 1242 1242 //****************************************************************************** 1243 1243 //****************************************************************************** 1244 BOOL WIN32API ScreenToClient ( HWND arg1, LPPOINT arg2)1244 BOOL WIN32API ScreenToClient (HWND hwnd, LPPOINT pt) 1245 1245 { 1246 1246 #ifdef DEBUG 1247 1247 WriteLog("USER32: ScreenToClient\n"); 1248 1248 #endif 1249 return O32_ScreenToClient(arg1, arg2); 1249 Win32BaseWindow *wnd; 1250 PRECT rcl; 1251 1252 if (!hwnd) return (TRUE); 1253 wnd = Win32BaseWindow::GetWindowFromHandle (hwnd); 1254 if (!wnd) return (TRUE); 1255 1256 rcl = wnd->getClientRect(); 1257 pt->y = ScreenHeight - pt->y; 1258 OSLibWinMapWindowPoints (OSLIB_HWND_DESKTOP, wnd->getOS2WindowHandle(), (OSLIBPOINT *)pt, 1); 1259 pt->y = (rcl->bottom - rcl->top) - pt->y; 1260 return (TRUE); 1250 1261 } 1251 1262 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.