Ignore:
Timestamp:
Dec 1, 2003, 2:27:39 PM (22 years ago)
Author:
sandervl
Message:

Updates

File:
1 edited

Legend:

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

    r10322 r10349  
    1 /* $Id: gdi32.cpp,v 1.89 2003-11-14 17:31:47 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.90 2003-12-01 13:27:38 sandervl Exp $ */
    22
    33/*
     
    12241224//******************************************************************************
    12251225
    1226 
    1227 /* Office 97 stubs - KSO Thu 21.05.1998*/
    1228 //******************************************************************************
    1229 BOOL WIN32API GetTextExtentExPointA(/*KSO Thu 21.05.1998*/
    1230         HDC     hdc,
    1231         LPCSTR  str,
    1232         int     count,
    1233         int     maxExt,
    1234         LPINT   lpnFit,
    1235         LPINT   alpDx,
    1236         LPSIZE  size)
    1237 {
    1238     int index, nFit, extent;
    1239     SIZE tSize;
    1240 
    1241     dprintf(("GDI32: GetTextExtendExPointA\n"));
    1242 
    1243     size->cx = size->cy = nFit = extent = 0;
    1244     for(index = 0; index < count; index++)
    1245     {
    1246       if(!O32_GetTextExtentPoint( hdc, str, 1, &tSize )) return FALSE;
    1247       if( extent+tSize.cx < maxExt )
    1248       {
    1249         extent+=tSize.cx;
    1250         nFit++;
    1251         str++;
    1252         if( alpDx )
    1253           alpDx[index] = extent;
    1254         if( tSize.cy > size->cy ) size->cy = tSize.cy;
    1255       }
    1256       else break;
    1257     }
    1258     size->cx = extent;
    1259 
    1260     if (lpnFit != NULL)  // check if result is desired
    1261       *lpnFit = nFit;
    1262 
    1263     dprintf(("GDI32: GetTextExtendExPointA(%08x '%.*s' %d) returning %d %d %d\n",
    1264              hdc,count,str,maxExt,nFit, size->cx,size->cy));
    1265     return TRUE;
    1266 }
    1267 //******************************************************************************
    1268 //******************************************************************************
    1269 BOOL WIN32API GetTextExtentExPointW(                                 /*KSO Thu 21.05.1998*/
    1270         HDC     arg1,
    1271         LPCWSTR arg2,
    1272         int     arg3,
    1273         int             arg4,
    1274         LPINT   arg5,
    1275         LPINT   arg6,
    1276         LPSIZE  arg7
    1277         )
    1278 {
    1279   char *astring = UnicodeToAsciiString((LPWSTR)arg2);
    1280   BOOL  rc;
    1281 
    1282   dprintf(("GDI32: GetTextExtendExPointW\n"));
    1283   rc = GetTextExtentExPointA(arg1, astring, arg3, arg4, arg5, arg6, arg7);
    1284   FreeAsciiString(astring);
    1285   return rc;
    1286 }
    1287 //******************************************************************************
    1288 
    1289 
    12901226/*****************************************************************************
    12911227 * Name      : BOOL CancelDC
Note: See TracChangeset for help on using the changeset viewer.