Module: wine Branch: master Commit: b7a5985bca1f9f36cc4d0dbf4d976d8ba95b661d URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7a5985bca1f9f36cc4d0dbf4d...
Author: Louis Lenders xerox_xerox2000@yahoo.co.uk Date: Wed May 30 21:19:52 2007 +0100
comctl32: Add stub for DrawShadowText.
---
dlls/comctl32/comctl32.spec | 1 + dlls/comctl32/commctrl.c | 13 +++++++++++++ include/commctrl.h | 2 +- 3 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/comctl32.spec b/dlls/comctl32/comctl32.spec index 7f9c06f..6b8f662 100644 --- a/dlls/comctl32/comctl32.spec +++ b/dlls/comctl32/comctl32.spec @@ -125,6 +125,7 @@ @ stdcall DestroyPropertySheetPage(long) @ stdcall -private DllGetVersion(ptr) @ stdcall -private DllInstall(long wstr) +@ stdcall DrawShadowText(long wstr long ptr long long long long long) @ stdcall DrawStatusText(long ptr ptr long) DrawStatusTextA @ stdcall DrawStatusTextW(long ptr wstr long) @ stdcall FlatSB_EnableScrollBar (long long long) diff --git a/dlls/comctl32/commctrl.c b/dlls/comctl32/commctrl.c index f7f7ecc..c239718 100644 --- a/dlls/comctl32/commctrl.c +++ b/dlls/comctl32/commctrl.c @@ -1522,3 +1522,16 @@ LRESULT WINAPI SetPathWordBreakProc(HWND hwnd, BOOL bSet) return SendMessageW(hwnd, EM_SETWORDBREAKPROC, 0, (LPARAM)(bSet ? PathWordBreakProc : NULL)); } + +/*********************************************************************** + * DrawShadowText [COMCTL32.@] + * + * Draw text with shadow. + */ +int WINAPI DrawShadowText(HDC hdc, LPCWSTR pszText, UINT cch, const RECT *pRect, DWORD dwFlags, + COLORREF crText, COLORREF crShadow, int ixOffset, int iyOffset) +{ + FIXME("(%p, %s, %d, %p, %d, 0x%08x, 0x%08x, %d, %d): stub\n", hdc, debugstr_w(pszText), cch, pRect, dwFlags, + crText, crShadow, ixOffset, iyOffset); + return DrawTextW(hdc, pszText, cch, (LPRECT)pRect, DT_LEFT); +} diff --git a/include/commctrl.h b/include/commctrl.h index 2a49e00..a1e82a9 100644 --- a/include/commctrl.h +++ b/include/commctrl.h @@ -713,7 +713,7 @@ BOOL WINAPI GetWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR*); BOOL WINAPI RemoveWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR); LRESULT WINAPI DefSubclassProc(HWND, UINT, WPARAM, LPARAM);
-int WINAPI DrawShadowText(HDC, LPCWSTR, UINT, RECT*, DWORD, COLORREF, COLORREF, int, int); +int WINAPI DrawShadowText(HDC, LPCWSTR, UINT, const RECT*, DWORD, COLORREF, COLORREF, int, int);
/* Header control */