Ignore:
Timestamp:
Aug 3, 1999, 11:22:34 PM (26 years ago)
Author:
sandervl
Message:

DrawState & DrawTextEx ported by Rene Pronk

File:
1 edited

Legend:

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

    r289 r407  
    1 /* $Id: user32.cpp,v 1.19 1999-07-11 21:11:57 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.20 1999-08-03 21:22:33 sandervl Exp $ */
    22
    33/*
     
    480480//******************************************************************************
    481481//******************************************************************************
    482 BOOL WIN32API GetClientRect( HWND arg1, PRECT  arg2)
    483 {
    484 #ifdef DEBUG
    485     WriteLog("USER32:  GetClientRect of %X\n", arg1);
    486 #endif
    487 
    488     return O32_GetClientRect(arg1, arg2);
     482BOOL WIN32API GetClientRect( HWND hwnd, PRECT pRect)
     483{
     484 BOOL rc;
     485
     486    rc = O32_GetClientRect(hwnd, pRect);
     487    dprintf(("USER32:  GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom));
     488    return rc;
    489489}
    490490//******************************************************************************
     
    678678#ifdef DEBUG
    679679    WriteLog("USER32: DrawTextA %s", arg2);
    680 #endif
    681     return O32_DrawText(arg1, arg2, arg3, arg4, arg5);
    682 }
    683 //******************************************************************************
    684 //******************************************************************************
    685 int WIN32API DrawTextExA(HDC arg1, LPCSTR arg2, int arg3, PRECT arg4, UINT arg5, LPDRAWTEXTPARAMS lpDTParams)
    686 {
    687 #ifdef DEBUG
    688     WriteLog("USER32:  DrawTextExA (not completely implemented) %s", arg2);
    689680#endif
    690681    return O32_DrawText(arg1, arg2, arg3, arg4, arg5);
     
    791782        break;
    792783    }
    793 #ifdef DEBUG
    794     WriteLog("USER32:  GetSystemMetrics %d returned %d\n", arg1, rc);
    795 #endif
     784    dprintf(("USER32:  GetSystemMetrics %d returned %d\n", arg1, rc));
    796785    return(rc);
    797786}
     
    17211710#ifdef DEBUG
    17221711    WriteLog("USER32:  DrawTextW %s\n", astring);
    1723 #endif
    1724     rc = O32_DrawText(arg1, astring, arg3, arg4, arg5);
    1725     FreeAsciiString(astring);
    1726     return(rc);
    1727 }
    1728 //******************************************************************************
    1729 //******************************************************************************
    1730 int WIN32API DrawTextExW(HDC arg1, LPCWSTR arg2, int arg3, PRECT arg4, UINT arg5, LPDRAWTEXTPARAMS lpDTParams)
    1731 {
    1732  char *astring = UnicodeToAsciiString((LPWSTR)arg2);
    1733  int   rc;
    1734 
    1735 #ifdef DEBUG
    1736     WriteLog("USER32:  DrawTextExW (not completely supported) %s\n", astring);
    17371712#endif
    17381713    rc = O32_DrawText(arg1, astring, arg3, arg4, arg5);
     
    35243499//******************************************************************************
    35253500//******************************************************************************
    3526 BOOL WIN32API DrawStateA(HDC hdc, HBRUSH hbc, DRAWSTATEPROC lpOutputFunc,
    3527                 LPARAM lData, WPARAM wData, int x, int y, int cx,
    3528                 int cy, UINT fuFlags)
    3529 {
    3530 #ifdef DEBUG
    3531   WriteLog("USER32:  DrawStateA, not implemented\n");
    3532 #endif
    3533   return(TRUE);
    3534 }
    3535 //******************************************************************************
    3536 //******************************************************************************
    35373501//******************************************************************************
    35383502//******************************************************************************
     
    41074071 *****************************************************************************/
    41084072
    4109 BOOL WIN32API DrawStateW(HDC           hdc,
    4110                          HBRUSH        hBrush,
    4111                          DRAWSTATEPROC lpOutputFunc,
    4112                          LPARAM        lParam,
    4113                          WPARAM        wParam,
    4114                          int           x,
    4115                          int           y,
    4116                          int           cx,
    4117                          int           cy,
    4118                          UINT          fuFlags)
    4119 {
    4120   dprintf(("USER32:DrawStateW (%08xh,%08xh,%08xh,%08xh,%08xh,%d,%d,%d,%d,%08x) not implemented.\n",
    4121          hdc,
    4122          hBrush,
    4123          lpOutputFunc,
    4124          lParam,
    4125          wParam,
    4126          x,
    4127          y,
    4128          cx,
    4129          cy,
    4130          fuFlags));
    4131 
    4132   return(DrawStateA(hdc,
    4133                     hBrush,
    4134                     lpOutputFunc,
    4135                     lParam,
    4136                     wParam,
    4137                     x,
    4138                     y,
    4139                     cx,
    4140                     cy,
    4141                     fuFlags));
    4142 }
    4143 
    4144 
    41454073/*****************************************************************************
    41464074 * Name      : BOOL WIN32API EnumDesktopWindows
Note: See TracChangeset for help on using the changeset viewer.