Changeset 2560 for trunk/src


Ignore:
Timestamp:
Jan 29, 2000, 3:23:33 PM (26 years ago)
Author:
sandervl
Message:

Call DrawTextA in uitools.cpp, not Open32's DrawText.

Location:
trunk/src/user32
Files:
4 edited

Legend:

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

    r2552 r2560  
    1 /* $Id: dc.cpp,v 1.38 2000-01-28 22:25:59 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.39 2000-01-29 14:23:32 sandervl Exp $ */
    22
    33/*
     
    445445   }
    446446
    447    if(hWnd == 0x6800003a) {
    448         hwnd = 0x6800003a;
    449    }
    450447   Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle(hwnd);
    451448
  • trunk/src/user32/text.cpp

    r2469 r2560  
    1 /* $Id: text.cpp,v 1.5 2000-01-18 20:10:46 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.6 2000-01-29 14:23:33 sandervl Exp $ */
    22
    33/*
     
    4848INT WIN32API DrawTextA(HDC hDC,LPCSTR lpString,INT nCount,PRECT lpRect,UINT nFormat)
    4949{
    50   dprintf(("USER32: DrawTextA %x",hDC));
    51 
     50 int bla;
     51
     52  dprintf(("USER32: DrawTextA %x %s %d (%d,%d)(%d,%d) %x",hDC, lpString, nCount, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom, nFormat));
     53
     54  if(nFormat == 0x828) {
     55        bla = 1;
     56  }
    5257  return InternalDrawTextExA(hDC,lpString,nCount,lpRect,nFormat,NULL,FALSE);
    5358}
     
    6469INT WIN32API DrawTextExA(HDC hdc,LPCSTR lpchText,INT cchText,LPRECT lprc,UINT dwDTFormat,LPDRAWTEXTPARAMS lpDTParams)
    6570{
    66   dprintf(("USER32:DrawTextExA %x\n",hdc));
     71  dprintf(("USER32: DrawTextExA %x %s %d (%d,%d)(%d,%d) %x",hdc, lpchText, cchText, lprc->left, lprc->top, lprc->right, lprc->bottom, dwDTFormat));
    6772
    6873  return InternalDrawTextExA(hdc,lpchText,cchText,lprc,dwDTFormat,lpDTParams,TRUE);
  • trunk/src/user32/uitools.cpp

    r2469 r2560  
    1 /* $Id: uitools.cpp,v 1.21 2000-01-18 20:10:47 sandervl Exp $ */
     1/* $Id: uitools.cpp,v 1.22 2000-01-29 14:23:33 sandervl Exp $ */
    22/*
    33 * User Interface Functions
     
    20032003
    20042004    if (str)
    2005       O32_DrawText (hdc,
     2005      DrawTextA (hdc,
    20062006                    str,
    20072007                    -1,
     
    20172017                                128);
    20182018
    2019       O32_DrawText (hdc,
     2019      DrawTextA (hdc,
    20202020                    szText,
    20212021                    nLen,
  • trunk/src/user32/window.cpp

    r2552 r2560  
    1 /* $Id: window.cpp,v 1.53 2000-01-28 22:26:01 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.54 2000-01-29 14:23:33 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    654654      window = windowDesktop;
    655655
     656
    656657    if(!window) {
    657658        dprintf(("GetWindowRect, window %x not found", hwnd));
     
    665666    *pRect = *window->getWindowRect(); //always in screen coordinates
    666667
     668    if(hwnd == 0x68000034) {
     669        window = 0;
     670    }
    667671    dprintf(("GetWindowRect %x (%d,%d) (%d,%d)", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom));
    668672    return TRUE;
     
    917921    Win32BaseWindow *wnd;
    918922    PRECT rcl;
    919 
    920     dprintf(("ScreenToClient %x (%d,%d)\n", hwnd, pt->x, pt->y));
     923    BOOL rc;
    921924
    922925    if (!hwnd) return (TRUE);
    923926    wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
    924     if (!wnd) return (TRUE);
    925     return mapWin32Point(OSLIB_HWND_DESKTOP,wnd->getOS2WindowHandle(),(OSLIBPOINT*)pt);
     927    if (!wnd) {
     928        dprintf(("warning: ScreenToClient: window %x not found!", hwnd));
     929        return (TRUE);
     930    }
     931#ifdef DEBUG
     932    POINT tmp = *pt;
     933#endif
     934    rc = mapWin32Point(OSLIB_HWND_DESKTOP, wnd->getOS2WindowHandle(), (OSLIBPOINT*)pt);
     935    dprintf(("ScreenToClient %x (%d,%d) -> (%d,%d)", hwnd, tmp.x, tmp.y, pt->x, pt->y));
     936    return rc;
    926937}
    927938//******************************************************************************
     
    10351046    Win32BaseWindow *wnd;
    10361047    PRECT rcl;
    1037 
    1038     dprintf(("ClientToScreen (%d,%d)\n", pt->x, pt->y));
     1048    BOOL rc;
     1049
    10391050    if (!hwnd) {
    10401051        SetLastError(ERROR_INVALID_PARAMETER);
     
    10431054    wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
    10441055    if (!wnd) {
     1056        dprintf(("warning: ClientToScreen window %x not found!", hwnd));
    10451057        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    10461058        return (FALSE);
    10471059    }
    1048     return mapWin32Point(wnd->getOS2WindowHandle(),OSLIB_HWND_DESKTOP,(OSLIBPOINT*)pt);
     1060#ifdef DEBUG
     1061    POINT tmp = *pt;
     1062#endif
     1063    rc = mapWin32Point(wnd->getOS2WindowHandle(),OSLIB_HWND_DESKTOP,(OSLIBPOINT*)pt);
     1064    dprintf(("ClientToScreen %x (%d,%d) -> (%d,%d)", hwnd, tmp.x, tmp.y, pt->x, pt->y));
     1065   
     1066    return rc;
    10491067}
    10501068//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.