Go to the source code of this file.
|
BOOL WINAPI | GetThemeSysBool (HTHEME hTheme, int iBoolID) |
|
COLORREF WINAPI | GetThemeSysColor (HTHEME hTheme, int iColorID) |
|
HBRUSH WINAPI | GetThemeSysColorBrush (HTHEME hTheme, int iColorID) |
|
HRESULT WINAPI | GetThemeSysFont (HTHEME hTheme, int iFontID, LOGFONTW *plf) |
|
HRESULT WINAPI | GetThemeSysInt (HTHEME hTheme, int iIntID, int *piValue) |
|
int WINAPI | GetThemeSysSize (HTHEME hTheme, int iSizeID) |
|
HRESULT WINAPI | GetThemeSysString (HTHEME hTheme, int iStringID, LPWSTR pszStringBuff, int cchMaxStringChars) |
|
HRESULT WINAPI | GetThemeTransitionDuration (HTHEME hTheme, int iPartId, int iStateIdFrom, int iStateIdTo, int iPropId, DWORD *pdwDuration) |
|
◆ GetThemeSysBool()
Definition at line 26 of file metric.c.
27{
32
33 TRACE(
"(%p, %d)\n", hTheme, iBoolID);
35 if(ptc) {
40 else
42 }
43 }
47 }
48 else {
49 FIXME(
"Unknown bool id: %d\n", iBoolID);
51 }
53}
LPVOID FASTCALL ValidateHandle(HANDLE hObject, UINT uType)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
HRESULT MSSTYLES_GetPropertyBool(PTHEME_PROPERTY tp, BOOL *pfVal)
PTHEME_PROPERTY MSSTYLES_FindMetric(PTHEME_FILE tf, int iPropertyPrimitive, int iPropertyId)
#define STG_E_INVALIDPARAMETER
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
Referenced by LoadSchemeFromTheme().
◆ GetThemeSysColor()
◆ GetThemeSysColorBrush()
Definition at line 82 of file metric.c.
83{
84 TRACE(
"(%p, %d)\n", hTheme, iColorID);
86}
COLORREF WINAPI GetThemeSysColor(HTHEME hTheme, int iColorID)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
Referenced by DrawWindowForNCPreview().
◆ GetThemeSysFont()
Definition at line 91 of file metric.c.
92{
96
97 TRACE(
"(%p, %d)\n", hTheme, iFontID);
98 if(ptc) {
105 }
106 }
110 }
111 else {
112 NONCLIENTMETRICSW ncm;
114 ncm.cbSize = sizeof(NONCLIENTMETRICSW);
117 switch(iFontID) {
123 default:
FIXME(
"Unknown FontID: %d\n", iFontID);
break;
124 }
127 }
129}
HRESULT MSSTYLES_GetPropertyFont(PTHEME_PROPERTY tp, HDC hdc, LOGFONTW *pFont)
#define TMT_SMALLCAPTIONFONT
#define TMT_ICONTITLEFONT
DWORD WINAPI GetLastError(void)
#define HRESULT_FROM_WIN32(x)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
#define SPI_GETICONTITLELOGFONT
HDC WINAPI GetDC(_In_opt_ HWND)
Referenced by DrawNCPreview(), LoadSchemeFromTheme(), and ThemeDrawCaptionText().
◆ GetThemeSysInt()
Definition at line 134 of file metric.c.
135{
138
139 TRACE(
"(%p, %d)\n", hTheme, iIntID);
140 if(!ptc)
142 if(iIntID < TMT_FIRSTINT || iIntID >
TMT_LASTINT) {
143 WARN(
"Unknown IntID: %d\n", iIntID);
145 }
149}
HRESULT MSSTYLES_GetPropertyInt(PTHEME_PROPERTY tp, int *piVal)
#define E_PROP_ID_UNSUPPORTED
◆ GetThemeSysSize()
Definition at line 154 of file metric.c.
155{
158 int metricMap[] = {
169 };
171
172 if(ptc) {
173 for(
i=0;
i<
sizeof(metricMap)/
sizeof(metricMap[0]);
i+=2) {
174 if(metricMap[
i] == iSizeID) {
176 break;
177 }
178 }
180 if(id != -1) {
184 }
185 }
186 TRACE(
"Size %d not found in theme, using system metric\n", iSizeID);
187 }
188 else {
190 return 0;
191 }
192 }
193
194
195
196
200}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define TMT_SMCAPTIONBARHEIGHT
#define TMT_SMCAPTIONBARWIDTH
#define TMT_CAPTIONBARHEIGHT
#define TMT_SCROLLBARHEIGHT
#define TMT_SIZINGBORDERWIDTH
#define TMT_MENUBARHEIGHT
#define TMT_CAPTIONBARWIDTH
#define TMT_SCROLLBARWIDTH
int WINAPI GetSystemMetrics(_In_ int)
Referenced by DrawWindowForNCPreview(), CTipbarWnd::InitThemeMargins(), and LoadSchemeFromTheme().
◆ GetThemeSysString()
Definition at line 205 of file metric.c.
207{
210
211 TRACE(
"(%p, %d)\n", hTheme, iStringID);
212 if(!ptc)
215 WARN(
"Unknown StringID: %d\n", iStringID);
217 }
221}
HRESULT MSSTYLES_GetPropertyString(PTHEME_PROPERTY tp, LPWSTR pszBuff, int cchMaxBuffChars)
◆ GetThemeTransitionDuration()
Definition at line 227 of file metric.c.
229{
230 FIXME(
"(%p, %u, %u, %u, %u, %p) stub\n", hTheme, iPartId, iStateIdFrom, iStateIdTo,
231 iPropId, pdwDuration);
232
234}