implemented DrawCaptionTempA/W

(NtUserDrawCaptionTemp is still missing)

svn path=/trunk/; revision=26370
This commit is contained in:
Christoph von Wittich 2007-04-17 11:27:42 +00:00
parent 64a7ff0759
commit 0c39bba15b
3 changed files with 37 additions and 26 deletions

View file

@ -1102,13 +1102,13 @@ DrawCaption(HWND hWnd, HDC hDC, LPCRECT lprc, UINT uFlags)
}
/*
* @unimplemented
* @implemented
*/
BOOL
STDCALL
DrawCaptionTempW(
HWND hwnd,
HDC hdc,
HWND hWnd,
HDC hDC,
const RECT *rect,
HFONT hFont,
HICON hIcon,
@ -1116,12 +1116,11 @@ DrawCaptionTempW(
UINT uFlags
)
{
UNIMPLEMENTED;
return FALSE;
return NtUserDrawCaptionTemp(hWnd, hDC, rect, hFont, hIcon, str, uFlags);
}
/*
* @unimplemented
* @implemented
*/
BOOL
STDCALL
@ -1135,8 +1134,21 @@ DrawCaptionTempA(
UINT uFlags
)
{
UNIMPLEMENTED;
return FALSE;
LPWSTR strW;
INT len;
BOOL ret = FALSE;
if (!(uFlags & DC_TEXT) || !str)
return DrawCaptionTempW(hwnd, hdc, rect, hFont, hIcon, NULL, uFlags);
len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
if ((strW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR))))
{
MultiByteToWideChar(CP_ACP, 0, str, -1, strW, len );
ret = DrawCaptionTempW(hwnd, hdc, rect, hFont, hIcon, strW, uFlags);
HeapFree(GetProcessHeap(), 0, strW);
}
return ret;
}
/***********************************************************************

View file

@ -716,16 +716,16 @@ NtUserDrawCaption(
LPCRECT lpRc,
UINT uFlags);
DWORD
BOOL
STDCALL
NtUserDrawCaptionTemp(
DWORD Unknown0,
DWORD Unknown1,
DWORD Unknown2,
DWORD Unknown3,
DWORD Unknown4,
DWORD Unknown5,
DWORD Unknown6);
HWND hWnd,
HDC hDC,
const RECT *rect,
HFONT hFont,
HICON hIcon,
LPCWSTR str,
UINT uFlags);
BOOL
NTAPI

View file

@ -180,20 +180,19 @@ NtUserDrawAnimatedRects(
return 0;
}
DWORD
BOOL
STDCALL
NtUserDrawCaptionTemp(
DWORD Unknown0,
DWORD Unknown1,
DWORD Unknown2,
DWORD Unknown3,
DWORD Unknown4,
DWORD Unknown5,
DWORD Unknown6)
HWND hWnd,
HDC hDC,
const RECT *rect,
HFONT hFont,
HICON hIcon,
LPCWSTR str,
UINT uFlags)
{
UNIMPLEMENTED
return 0;
return FALSE;
}
BOOL