Commit Graph

17 Commits

Author SHA1 Message Date
Zhiyi Zhang f8bc5d7627 uxtheme: Get DPI from theme class.
Fix Command Link glyphs not scaled according to DPI because a NULL device context handle was
passed to GetThemePartSize() and GetThemePartSize() was using a device context to get DPI.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-01 17:06:22 +02:00
Zhiyi Zhang 615a90e219 uxtheme: Implement OpenThemeDataForDpi().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-01 17:06:22 +02:00
Marcus Meissner 790c107045 uxtheme: Mark internal symbols with hidden visibility. 2011-05-25 11:52:01 +02:00
Francois Gouget 55dccf2859 uxtheme: UXINI_ResetINI() is unused so remove it. 2009-02-09 13:16:10 +01:00
Andrew Talbot 74018333d8 uxtheme: Fix conflicting declarations. 2007-04-18 13:01:05 +02:00
Andrew Talbot 2bb44198b6 uxtheme: Declare some items static. 2007-02-05 12:32:42 +01:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Frank Richter eed5b662b9 Implement "manual" image sharing(as opposed to using LoadImage() with
LR_SHARED) by keeping the loaded images in a list. This is needed for
proper alpha support later on since once-per-image preparations will
be needed then.
2005-08-29 09:30:17 +00:00
Frank Richter 0f94e03b40 Enhance uxtheme to store the themed system metrics in the registry and
also backup the old metrics. That way, themed system colors are set
even uxtheme was not loaded and initialized yet, and when a theme is
deactivated, the colors prior to the activation are restored as well.
Also, not having to set the system colors in uxtheme startup works
around weird problems where SetSystemColors() ended up being called
from inside window creation and this seemingly led to some creation
message being sent twice.
2005-08-12 15:51:13 +00:00
Frank Richter 420d7a82da Opening some theme class data now also increases the reference count
of the theme file, so as long as theme class data is still opened
somewhere, the theme file won't get freed. Otherwise, it could happen
that invalid class data was used, which could lead to problems.
2005-07-05 11:45:57 +00:00
Kevin Koltzau 92002d924b Implemented system metric functions. 2004-02-20 05:12:21 +00:00
Kevin Koltzau f28552b3d3 Keep track of theme filename within THEME_FILE. 2004-02-17 20:22:27 +00:00
Kevin Koltzau 533a999adb Implement DrawThemeBackgroundEx, DrawThemeText, GetThemeTextExtent. 2004-02-16 20:32:59 +00:00
Kevin Koltzau c31cae0f7e Load properties from the theme ini.
Implemented most of the GetTheme* functions.
2004-01-23 04:34:02 +00:00
Kevin Koltzau 5e8a34f163 Full implementation of OpenThemeData, CloseThemeData, and
IsThemePartDefined
Export undocumented functions by ordinal only (to match Microsoft's
uxtheme).
2004-01-19 21:52:09 +00:00
Kevin Koltzau e04ff33417 Add INI file processing.
Full implementation of GetThemeDocumentationProperty.
Define string maps for parsing INI files into useable form.
Implemented (undocumented) ApplyTheme to select current theme.
2004-01-16 21:25:25 +00:00
Kevin Koltzau d2c4cf14f8 Load, validate and retrieve a few properties from an msstyles theme. 2003-12-08 22:45:26 +00:00