Ignore:
Timestamp:
Oct 21, 1999, 12:35:54 AM (26 years ago)
Author:
sandervl
Message:

Combobox fixes + scrollbar position fix

File:
1 edited

Legend:

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

    r1377 r1387  
    1 /* $Id: user32.cpp,v 1.45 1999-10-20 13:48:07 phaller Exp $ */
     1/* $Id: user32.cpp,v 1.46 1999-10-20 22:35:54 sandervl Exp $ */
    22
    33/*
     
    22622262}
    22632263
    2264 /* Coordinate Space and Transformation Functions */
    2265 
    2266 int WIN32API MapWindowPoints( HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UINT cPoints)
    2267 {
    2268 #ifdef DEBUG
    2269     WriteLog("USER32:  MapWindowPoints\n");
    2270 #endif
    2271     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 
    22972264/* Icon Functions */
    22982265int WIN32API LookupIconIdFromDirectory(PBYTE presbits, BOOL fIcon)
Note: See TracChangeset for help on using the changeset viewer.