2 * Win32 5.1 Theme drawing
4 * Copyright (C) 2003 Kevin Koltzau
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33 #include "uxthemedll.h"
35 #include "wine/debug.h"
37 WINE_DEFAULT_DEBUG_CHANNEL(uxtheme);
39 /***********************************************************************
40 * EnableThemeDialogTexture (UXTHEME.@)
42 HRESULT WINAPI EnableThemeDialogTexture(HWND hwnd, DWORD dwFlags)
44 FIXME("%p 0x%08lx: stub\n", hwnd, dwFlags);
45 return ERROR_CALL_NOT_IMPLEMENTED;
48 /***********************************************************************
49 * IsThemeDialogTextureEnabled (UXTHEME.@)
51 BOOL WINAPI IsThemeDialogTextureEnabled(void)
57 /***********************************************************************
58 * DrawThemeParentBackground (UXTHEME.@)
60 HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
63 return ERROR_CALL_NOT_IMPLEMENTED;
66 /***********************************************************************
67 * DrawThemeBackground (UXTHEME.@)
69 HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId,
70 int iStateId, const RECT *pRect,
71 const RECT *pClipRect)
73 FIXME("%d %d: stub\n", iPartId, iStateId);
76 return ERROR_CALL_NOT_IMPLEMENTED;
79 /***********************************************************************
80 * DrawThemeBackgroundEx (UXTHEME.@)
82 HRESULT WINAPI DrawThemeBackgroundEx(HTHEME hTheme, HDC hdc, int iPartId,
83 int iStateId, const RECT *pRect,
84 const DTBGOPTS *pOptions)
86 FIXME("%d %d: stub\n", iPartId, iStateId);
89 return ERROR_CALL_NOT_IMPLEMENTED;
92 /***********************************************************************
93 * DrawThemeEdge (UXTHEME.@)
95 HRESULT WINAPI DrawThemeEdge(HTHEME hTheme, HDC hdc, int iPartId,
96 int iStateId, const RECT *pDestRect, UINT uEdge,
97 UINT uFlags, RECT *pContentRect)
99 FIXME("%d %d 0x%08x 0x%08x: stub\n", iPartId, iStateId, uEdge, uFlags);
102 return ERROR_CALL_NOT_IMPLEMENTED;
105 /***********************************************************************
106 * DrawThemeIcon (UXTHEME.@)
108 HRESULT WINAPI DrawThemeIcon(HTHEME hTheme, HDC hdc, int iPartId, int iStateId,
109 const RECT *pRect, HIMAGELIST himl, int iImageIndex)
111 FIXME("%d %d: stub\n", iPartId, iStateId);
114 return ERROR_CALL_NOT_IMPLEMENTED;
117 /***********************************************************************
118 * DrawThemeText (UXTHEME.@)
120 HRESULT WINAPI DrawThemeText(HTHEME hTheme, HDC hdc, int iPartId, int iStateId,
121 LPCWSTR pszText, int iCharCount, DWORD dwTextFlags,
122 DWORD dwTextFlags2, const RECT *pRect)
124 FIXME("%d %d: stub\n", iPartId, iStateId);
127 return ERROR_CALL_NOT_IMPLEMENTED;
130 /***********************************************************************
131 * GetThemeBackgroundContentRect (UXTHEME.@)
133 HRESULT WINAPI GetThemeBackgroundContentRect(HTHEME hTheme, HDC hdc, int iPartId,
135 const RECT *pBoundingRect,
141 TRACE("(%d,%d)\n", iPartId, iStateId);
145 hr = GetThemeMargins(hTheme, hdc, iPartId, iStateId, TMT_CONTENTMARGINS, NULL, &margin);
147 TRACE("Margins not found\n");
150 pContentRect->left = pBoundingRect->left + margin.cxLeftWidth;
151 pContentRect->top = pBoundingRect->top + margin.cyTopHeight;
152 pContentRect->right = pBoundingRect->right - margin.cxRightWidth;
153 pContentRect->bottom = pBoundingRect->bottom - margin.cyBottomHeight;
155 TRACE("left:%ld,top:%ld,right:%ld,bottom:%ld\n", pContentRect->left, pContentRect->top, pContentRect->right, pContentRect->bottom);
160 /***********************************************************************
161 * GetThemeBackgroundExtent (UXTHEME.@)
163 HRESULT WINAPI GetThemeBackgroundExtent(HTHEME hTheme, HDC hdc, int iPartId,
164 int iStateId, const RECT *pContentRect,
167 FIXME("%d %d: stub\n", iPartId, iStateId);
170 return ERROR_CALL_NOT_IMPLEMENTED;
173 /***********************************************************************
174 * GetThemeBackgroundRegion (UXTHEME.@)
176 HRESULT WINAPI GetThemeBackgroundRegion(HTHEME hTheme, HDC hdc, int iPartId,
177 int iStateId, const RECT *pRect,
180 FIXME("%d %d: stub\n", iPartId, iStateId);
183 return ERROR_CALL_NOT_IMPLEMENTED;
186 /***********************************************************************
187 * GetThemePartSize (UXTHEME.@)
189 HRESULT WINAPI GetThemePartSize(HTHEME hTheme, HDC hdc, int iPartId,
190 int iStateId, RECT *prc, THEMESIZE eSize,
193 FIXME("%d %d %d: stub\n", iPartId, iStateId, eSize);
196 return ERROR_CALL_NOT_IMPLEMENTED;
200 /***********************************************************************
201 * GetThemeTextExtent (UXTHEME.@)
203 HRESULT WINAPI GetThemeTextExtent(HTHEME hTheme, HDC hdc, int iPartId,
204 int iStateId, LPCWSTR pszText, int iCharCount,
205 DWORD dwTextFlags, const RECT *pBoundingRect,
208 FIXME("%d %d: stub\n", iPartId, iStateId);
211 return ERROR_CALL_NOT_IMPLEMENTED;
214 /***********************************************************************
215 * GetThemeTextMetrics (UXTHEME.@)
217 HRESULT WINAPI GetThemeTextMetrics(HTHEME hTheme, HDC hdc, int iPartId,
218 int iStateId, TEXTMETRICW *ptm)
220 FIXME("%d %d: stub\n", iPartId, iStateId);
223 return ERROR_CALL_NOT_IMPLEMENTED;
226 /***********************************************************************
227 * IsThemeBackgroundPartiallyTransparent (UXTHEME.@)
229 BOOL WINAPI IsThemeBackgroundPartiallyTransparent(HTHEME hTheme, int iPartId,
232 FIXME("%d %d: stub\n", iPartId, iStateId);