comctl32: add stub for DrawShadowText

Louis. Lenders xerox_xerox2000 at yahoo.co.uk
Wed May 30 15:19:52 CDT 2007


Skipped content of type multipart/alternative-------------- next part --------------
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 */
 


More information about the wine-patches mailing list