Ignore:
Timestamp:
Oct 17, 1999, 5:46:10 PM (26 years ago)
Author:
sandervl
Message:

Dialog fixes + ported Wine apis

File:
1 edited

Legend:

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

    r1299 r1336  
    1 /* $Id: user32.cpp,v 1.42 1999-10-14 19:31:31 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.43 1999-10-17 15:46:08 sandervl Exp $ */
    22
    33/*
     
    13731373SHORT WIN32API GetKeyState( int nVirtKey)
    13741374{
    1375 #ifdef DEBUG
    1376     WriteLog("USER32:  GetKeyState %d\n", nVirtKey);
     1375//SvL: Hehe. 32 MB logfile for Opera after a minute.
     1376#ifdef DEBUG
     1377//    WriteLog("USER32:  GetKeyState %d\n", nVirtKey);
    13771378#endif
    13781379    return O32_GetKeyState(nVirtKey);
     
    18701871//******************************************************************************
    18711872//******************************************************************************
    1872 BOOL WIN32API EndDeferWindowPos( HDWP hWinPosInfo)
    1873 {
    1874 #ifdef DEBUG
    1875     WriteLog("USER32:  EndDeferWindowPos\n");
    1876 #endif
    1877     return O32_EndDeferWindowPos(hWinPosInfo);
    1878 }
    1879 //******************************************************************************
    1880 //******************************************************************************
    1881 HWND WIN32API FindWindowW( LPCWSTR lpClassName, LPCWSTR lpWindowName)
    1882 {
    1883  char *astring1 = UnicodeToAsciiString((LPWSTR)lpClassName);
    1884  char *astring2 = UnicodeToAsciiString((LPWSTR)lpWindowName);
    1885  HWND rc;
    1886 
    1887 #ifdef DEBUG
    1888     WriteLog("USER32:  FindWindowW\n");
    1889 #endif
    1890     rc = O32_FindWindow(astring1, astring2);
    1891     FreeAsciiString(astring1);
    1892     FreeAsciiString(astring2);
    1893     return rc;
    1894 }
    1895 //******************************************************************************
    1896 //******************************************************************************
    18971873HWND WIN32API GetForegroundWindow(void)
    18981874{
     
    19381914//******************************************************************************
    19391915//******************************************************************************
    1940 #if 0
    1941 int WIN32API GetUpdateRgn( HWND hWnd, HRGN hRgn, BOOL bErase)
    1942 {
    1943 #ifdef DEBUG
    1944     WriteLog("USER32:  GetUpdateRgn\n");
    1945 #endif
    1946     hWnd = Win32Window::Win32ToOS2Handle(hWnd);
    1947 
    1948     return O32_GetUpdateRgn(hWnd,hRgn,bErase);
    1949 }
    1950 #endif
    19511916/*****************************************************************************
    19521917 * Name      : int WIN32API GetWindowRgn
     
    22882253BOOL WIN32API ScreenToClient (HWND hwnd, LPPOINT pt)
    22892254{
    2290 #ifdef DEBUG
    2291     WriteLog("USER32:  ScreenToClient\n");
    2292 #endif
    22932255    Win32BaseWindow *wnd;
    22942256    PRECT rcl;
     2257
     2258    dprintf(("ScreenToClient %x (%d,%d)\n", hwnd, pt->x, pt->y));
    22952259
    22962260    if (!hwnd) return (TRUE);
     
    23022266    OSLibWinMapWindowPoints (OSLIB_HWND_DESKTOP, wnd->getOS2WindowHandle(), (OSLIBPOINT *)pt, 1);
    23032267    pt->y = (rcl->bottom - rcl->top) - pt->y;
     2268    dprintf(("ScreenToClient %x returned (%d,%d)\n", hwnd, pt->x, pt->y));
    23042269    return (TRUE);
    23052270}
    23062271
    2307 /* Scroll Bar Functions */
    2308 
    2309 #if 0
    2310 BOOL WIN32API ScrollDC( HDC arg1, int arg2, int arg3, const RECT * arg4, const RECT * arg5, HRGN arg6, PRECT  arg7)
    2311 {
    2312 #ifdef DEBUG
    2313     WriteLog("USER32:  ScrollDC\n");
    2314 #endif
    2315     return O32_ScrollDC(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
    2316 }
    2317 #endif
    2318 
    23192272/* Icon Functions */
    2320 
    23212273int WIN32API LookupIconIdFromDirectory(PBYTE presbits, BOOL fIcon)
    23222274{
Note: See TracChangeset for help on using the changeset viewer.