Hi all, I can find GetTextEntentPointW or GetTextEntentPoint32W in coredll.dll. By looking at: http://msdn2.microsoft.com/en-us/library/ms901135.aspx http://msdn2.microsoft.com/en-us/library/ms901136.aspx http://msdn2.microsoft.com/en-us/library/ms901137.aspx
Particularly:"If both the /lpnFit/ and /alpDx/ parameters are NULL, calling the *GetTextExtentExPoint* function is equivalent to calling the GetTextExtentPoint <http://msdn2.microsoft.com/en-us/library/ms901136.aspx> function."
"The *GetTextExtentPoint32* function is identical to the GetTextExtentPoint <http://msdn2.microsoft.com/en-us/library/ms901136.aspx> function."
I have then implemented and committed both *GetTextExtentPoint32 and **GetTextExtentPointW in terms of
**GetTextExtentExPoint*. Cheers, Pedro Alves --- src/w32api/ChangeLog.ce: 2006-11-12 Pedro Alves <[EMAIL PROTECTED]> * include/wingdi.h (GetTextExtentPoint32, GetTextExtentPointW): Implement in terms of GetTextExtentExPointW.
Index: wingdi.h =================================================================== --- wingdi.h (revision 796) +++ wingdi.h (working copy) @@ -2877,15 +2877,17 @@ WINGDIAPI COLORREF WINAPI GetTextColor(HDC); WINGDIAPI BOOL WINAPI GetTextExtentExPointA(HDC,LPCSTR,int,int,LPINT,LPINT,LPSIZE); WINGDIAPI BOOL WINAPI GetTextExtentExPointW( HDC,LPCWSTR,int,int,LPINT,LPINT,LPSIZE ); +#ifndef _WIN32_WCE WINGDIAPI BOOL WINAPI GetTextExtentPointA(HDC,LPCSTR,int,LPSIZE); WINGDIAPI BOOL WINAPI GetTextExtentPointW(HDC,LPCWSTR,int,LPSIZE); -#ifdef _WIN32_WCE -extern BOOL GetTextExtentPoint32A(HDC,LPCSTR,int,LPSIZE); -extern BOOL GetTextExtentPoint32W( HDC,LPCWSTR,int,LPSIZE); -#else WINGDIAPI BOOL WINAPI GetTextExtentPoint32A(HDC,LPCSTR,int,LPSIZE); WINGDIAPI BOOL WINAPI GetTextExtentPoint32W( HDC,LPCWSTR,int,LPSIZE); +#else +#if (_WIN32_WCE >= 0x200) +#define GetTextExtentPointW(hdc,cstr,len,size) GetTextExtentExPointW(hdc,cstr,len,0,NULL,NULL,size) +#define GetTextExtentPoint32W GetTextExtentPointW #endif +#endif WINGDIAPI int WINAPI GetTextFaceA(HDC,int,LPSTR); WINGDIAPI int WINAPI GetTextFaceW(HDC,int,LPWSTR); WINGDIAPI BOOL WINAPI GetTextMetricsA(HDC,LPTEXTMETRICA);
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel