Changeset 1387 for trunk/src/user32/user32.cpp
- Timestamp:
- Oct 21, 1999, 12:35:54 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/user32.cpp
r1377 r1387 1 /* $Id: user32.cpp,v 1.4 5 1999-10-20 13:48:07 phallerExp $ */1 /* $Id: user32.cpp,v 1.46 1999-10-20 22:35:54 sandervl Exp $ */ 2 2 3 3 /* … … 2262 2262 } 2263 2263 2264 /* Coordinate Space and Transformation Functions */2265 2266 int WIN32API MapWindowPoints( HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UINT cPoints)2267 {2268 #ifdef DEBUG2269 WriteLog("USER32: MapWindowPoints\n");2270 #endif2271 hWndFrom = Win32Window::Win32ToOS2Handle(hWndFrom);2272 hWndTo = Win32Window::Win32ToOS2Handle(hWndTo);2273 2274 return O32_MapWindowPoints(hWndFrom,hWndTo,lpPoints,cPoints);2275 }2276 //******************************************************************************2277 //******************************************************************************2278 BOOL WIN32API ScreenToClient (HWND hwnd, LPPOINT pt)2279 {2280 Win32BaseWindow *wnd;2281 PRECT rcl;2282 2283 dprintf(("ScreenToClient %x (%d,%d)\n", hwnd, pt->x, pt->y));2284 2285 if (!hwnd) return (TRUE);2286 wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);2287 if (!wnd) return (TRUE);2288 2289 rcl = wnd->getClientRect();2290 pt->y = ScreenHeight - pt->y;2291 OSLibWinMapWindowPoints (OSLIB_HWND_DESKTOP, wnd->getOS2WindowHandle(), (OSLIBPOINT *)pt, 1);2292 pt->y = (rcl->bottom - rcl->top) - pt->y;2293 dprintf(("ScreenToClient %x returned (%d,%d)\n", hwnd, pt->x, pt->y));2294 return (TRUE);2295 }2296 2297 2264 /* Icon Functions */ 2298 2265 int WIN32API LookupIconIdFromDirectory(PBYTE presbits, BOOL fIcon)
Note:
See TracChangeset
for help on using the changeset viewer.