Changeset 1961 for trunk/src/gdi32/text.cpp
- Timestamp:
- Dec 3, 1999, 6:31:51 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/text.cpp
r1931 r1961 1 /* $Id: text.cpp,v 1. 1 1999-12-01 23:30:30 sandervlExp $ */1 /* $Id: text.cpp,v 1.2 1999-12-03 17:31:51 cbratschi Exp $ */ 2 2 3 3 /* … … 62 62 //****************************************************************************** 63 63 //****************************************************************************** 64 static BOOL InternalTextOutA(HDC hdc,int X,int Y,UINT fuOptions,CONST RECT *lprc,LPCSTR lpszString,INT cbCount,CONST INT *lpDx,BOOL IsExtTextOut) 65 { 66 if (cbCount < 0 || (lpszString == NULL && cbCount != 0)) 67 { 68 SetLastError(ERROR_INVALID_HANDLE); 69 return FALSE; 70 } 71 72 //CB: todo 73 74 if (IsExtTextOut) 75 return O32_ExtTextOut(hdc,X,Y,fuOptions,lprc,lpszString,cbCount,lpDx); 76 else 77 return O32_TextOut(hdc,X,Y,lpszString,cbCount); 78 } 79 //****************************************************************************** 80 //****************************************************************************** 81 static BOOL InternalTextOutW(HDC hdc,int X,int Y,UINT fuOptions,CONST RECT *lprc,LPCWSTR lpszString,INT cbCount,CONST INT *lpDx,BOOL IsExtTextOut) 82 { 83 char *astring = UnicodeToAsciiString((LPWSTR)lpszString); 84 BOOL rc; 85 86 rc = InternalTextOutA(hdc,X,Y,fuOptions,lprc,(LPCSTR)astring,cbCount,lpDx,IsExtTextOut); 87 FreeAsciiString(astring); 88 89 return(rc); 90 } 91 //****************************************************************************** 92 //****************************************************************************** 93 BOOL WIN32API ExtTextOutA(HDC hdc,int X,int Y,UINT fuOptions,CONST RECT *lprc,LPCSTR lpszString,UINT cbCount,CONST INT *lpDx) 94 { 95 dprintf(("GDI32: ExtTextOutA\n")); 96 97 return InternalTextOutA(hdc,X,Y,fuOptions,lprc,lpszString,cbCount,lpDx,TRUE); 98 } 99 //****************************************************************************** 100 //****************************************************************************** 101 BOOL WIN32API ExtTextOutW(HDC hdc,int X,int Y,UINT fuOptions,CONST RECT *lprc,LPCWSTR lpszString,UINT cbCount,CONST int *lpDx) 102 { 103 dprintf(("GDI32: ExtTextOutW\n")); 104 105 return InternalTextOutW(hdc,X,Y,fuOptions,lprc,lpszString,cbCount,lpDx,TRUE); 106 } 107 //****************************************************************************** 108 //****************************************************************************** 109 BOOL WIN32API TextOutA(HDC hdc,int nXStart,int nYStart,LPCSTR lpszString,int cbString) 110 { 111 dprintf(("GDI32: TextOutA")); 112 113 return InternalTextOutA(hdc,nXStart,nYStart,0,NULL,lpszString,cbString,NULL,FALSE); 114 } 115 //****************************************************************************** 116 //****************************************************************************** 117 BOOL WIN32API TextOutW(HDC hdc,int nXStart,int nYStart,LPCWSTR lpszString,int cbString) 118 { 119 dprintf(("GDI32: TextOutW")); 120 121 return InternalTextOutW(hdc,nXStart,nYStart,0,NULL,lpszString,cbString,NULL,FALSE); 122 } 123 //****************************************************************************** 124 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.