Correct the test for the ODS_SELECTED bit in the WM_DRAWITEM message
[wine] / dlls / uxtheme / metric.c
1 /*
2  * Win32 5.1 Theme metrics
3  *
4  * Copyright (C) 2003 Kevin Koltzau
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #include "config.h"
22
23 #include <stdarg.h>
24
25 #include "windef.h"
26 #include "winbase.h"
27 #include "winuser.h"
28 #include "wingdi.h"
29 #include "uxtheme.h"
30
31 #include "uxthemedll.h"
32
33 #include "wine/debug.h"
34
35 WINE_DEFAULT_DEBUG_CHANNEL(uxtheme);
36
37 /***********************************************************************
38  *      GetThemeSysBool                                     (UXTHEME.@)
39  */
40 BOOL WINAPI GetThemeSysBool(HTHEME hTheme, int iBoolID)
41 {
42     FIXME("%d: stub\n", iBoolID);
43     return FALSE;
44 }
45
46 /***********************************************************************
47  *      GetThemeSysColor                                    (UXTHEME.@)
48  */
49 COLORREF WINAPI GetThemeSysColor(HTHEME hTheme, int iColorID)
50 {
51     FIXME("%d: stub\n", iColorID);
52     return FALSE;
53 }
54
55 /***********************************************************************
56  *      GetThemeSysColorBrush                               (UXTHEME.@)
57  */
58 HBRUSH WINAPI GetThemeSysColorBrush(HTHEME hTheme, int iColorID)
59 {
60     FIXME("%d: stub\n", iColorID);
61     return FALSE;
62 }
63
64 /***********************************************************************
65  *      GetThemeSysFont                                     (UXTHEME.@)
66  */
67 HRESULT WINAPI GetThemeSysFont(HTHEME hTheme, int iFontID, LOGFONTW *plf)
68 {
69     FIXME("%d: stub\n", iFontID);
70     if(!hTheme)
71         return E_HANDLE;
72     return ERROR_CALL_NOT_IMPLEMENTED;
73 }
74
75 /***********************************************************************
76  *      GetThemeSysInt                                      (UXTHEME.@)
77  */
78 HRESULT WINAPI GetThemeSysInt(HTHEME hTheme, int iIntID, int *piValue)
79 {
80     FIXME("%d: stub\n", iIntID);
81     if(!hTheme)
82         return E_HANDLE;
83     return ERROR_CALL_NOT_IMPLEMENTED;
84 }
85
86 /***********************************************************************
87  *      GetThemeSysSize                                     (UXTHEME.@)
88  */
89 int WINAPI GetThemeSysSize(HTHEME hTheme, int iSizeID)
90 {
91     FIXME("%d: stub\n", iSizeID);
92     return 0;
93 }
94
95 /***********************************************************************
96  *      GetThemeSysString                                   (UXTHEME.@)
97  */
98 HRESULT WINAPI GetThemeSysString(HTHEME hTheme, int iStringID,
99                                  LPWSTR pszStringBuff, int cchMaxStringChars)
100 {
101     FIXME("%d: stub\n", iStringID);
102     if(!hTheme)
103         return E_HANDLE;
104     return ERROR_CALL_NOT_IMPLEMENTED;
105 }