mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:22:58 +00:00
- Implement GetTabbedTextExtentA(), based on implementation from Wine (trunk). Reduces number of failures in "user32_winetest.exe text" from 84 to 64.
svn path=/trunk/; revision=21978
This commit is contained in:
parent
d778de3578
commit
612e2ff4df
1 changed files with 14 additions and 3 deletions
|
@ -161,7 +161,7 @@ TabbedTextOutW(
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
DWORD
|
DWORD
|
||||||
STDCALL
|
STDCALL
|
||||||
|
@ -172,8 +172,19 @@ GetTabbedTextExtentA(
|
||||||
int nTabPositions,
|
int nTabPositions,
|
||||||
CONST LPINT lpnTabStopPositions)
|
CONST LPINT lpnTabStopPositions)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
LONG ret;
|
||||||
return 0;
|
DWORD len = MultiByteToWideChar(CP_ACP, 0, lpString, nCount, NULL, 0);
|
||||||
|
LPWSTR strW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||||
|
|
||||||
|
if (!strW)
|
||||||
|
return 0;
|
||||||
|
MultiByteToWideChar(CP_ACP, 0, lpString, nCount, strW, len);
|
||||||
|
|
||||||
|
ret = GetTabbedTextExtentW(hDC, strW, len, nTabPositions,
|
||||||
|
lpnTabStopPositions);
|
||||||
|
|
||||||
|
HeapFree(GetProcessHeap(), 0, strW);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue