Commit Graph

57 Commits

Author SHA1 Message Date
Alexandre Julliard d02d50299b winecfg: Use Unicode functions throughout.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-07 21:35:54 +02:00
Alexandre Julliard a243a7af97 winecfg: Use wide character string literals.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-07 21:35:54 +02:00
Alexandre Julliard fe9799314b winecfg: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-07 21:35:54 +02:00
Alexandre Julliard 01a2b9c628 winecfg: Use mountmgr to manage shell folders.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-07 21:35:54 +02:00
Zhiyi Zhang 53a0d57aff winecfg: Use OpenThemeDataForDpi() to create a theme handle not associated to a window.
If a window is not passed to OpenThemeData(), OpenThemeData() assumes the DPI is 96 according to
tests. And GetThemePartSize() should select theme parts according to the DPI stored in theme
handles rather than using GDI device contexts. Thus, OpenThemeDataForDpi() should be used in place
of OpenThemeData() when DPI is not 96 and theme handles shouldn't be associated with a window.

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 5cebefc24f winecfg: Don't convert font height to points when saving system font metrics.
Fix tooltip font size becomes smaller after clicking the apply button in Desktop Integration tab.
For example, the original non-client area tooltip font lfHeight is -11. 11 pixels is 8 points in 96
DPI. Setting font size to 8 points to SPI_SETNONCLIENTMETRICS will make SPI_GETNONCLIENTMETRICS
report lfHeight as 8. With lfHeight being 8, CreateFontIndirectW() creates a smaller font. This
behavior is added by 5b8fdb9. I assume the intention was to save font size in a DPI-independent way.
However, when lfHeight is negative, lfHeight will still be scaled back to 96 DPI before saving it to
registry and scaled to system DPI when it's read from registry. So I think converting to points is
unnecessary.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-02 12:39:12 +02:00
Zhiyi Zhang bf6ed90cd6 winecfg: Set buddy window for the size up-down control only once.
Fix the size up-down control becoming smaller every time the apply button is pressed in the Desktop
Integration tab.

UDM_SETBUDDY always shrinks the buddy window for a up-down control according to tests. And a
PSN_SETACTIVE notification is sent every time the apply button is pressed, thus init_dialog() gets
called again and sends an extra UDM_SETBUDDY message.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-22 17:57:46 +02:00
Olivier F. R. Dierick 7216da8851 winecfg: Add Downloads and Templates to shell folders UI interface.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48484
Signed-off-by: Olivier F. R. Dierick <o.dierick@piezo-forte.be>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-24 10:11:59 +01:00
Francois Gouget 81d5d929ba winecfg: Avoid an unneeded strlen() call.
Note that szLinkTarget is an array field and thus cannot be NULL.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-10 20:59:19 +01:00
Alexandre Julliard 2ae84d5240 Avoid using Windows includes that are already handled in wine/port.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:19:00 +01:00
Michael Stefaniuc f051aa6774 winecfg: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-30 00:10:14 +01:00
Nikolay Sivov 25ba7708d3 winecfg: Update changed state on associations checkbox click.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-17 09:12:25 +02:00
Dmitry Timoshkov 186ae9ed31 winecfg: Allow to disable MIME-type associations.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 18:38:51 +02:00
Michael Stefaniuc 7fdb828abf winecfg: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-18 11:20:43 +02:00
Alexandre Julliard 5b8fdb9731 winecfg: Keep metrics in DPI-relative format when saving the theme.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 01:06:11 +09:00
Francois Gouget 4f8b0b0e63 winecfg: Highlight spelling fixes.
Highlight is misspelled in many SDK constants and registry settings.
But we don't have to do the same for our own constants.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-28 16:26:53 +09:00
Nikolay Sivov a11b8ded1d winecfg: Fix a crash on empty size field in Desktop Integration.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-12 05:28:16 +01:00
Alex Henrie 7e5cb21540 winecfg: Widen "Folder" column to accommodate Catalan translation.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-08 16:20:01 +09:00
Michael Müller 130c655e2f winecfg: Do not overwrite theme each time an item is drawn. 2015-08-19 20:19:57 +09:00
Mark Harmstone 3b9ac1b18a winecfg: Invalidate property sheet when font changed.
When you changed the font on the Desktop Integration tab, it wasn't
enabling the Apply button.
2015-06-12 21:22:41 +09:00
Jason Overland 4b18b0d10e winecfg: Add owner to file picker dialogs, making them modal. 2015-04-06 16:08:25 +09:00
Mark Harmstone fa685fc353 winecfg: Refresh sys params on theme change. 2015-02-25 00:04:39 +09:00
Mark Harmstone b467908ea4 winecfg: Draw colour button using theme. 2015-02-20 16:25:26 +09:00
Frédéric Delanoy 87c72332bb winecfg: Use BOOL type where appropriate. 2013-10-17 10:45:45 +02:00
Alexandre Julliard b07fb96a23 winecfg: Don't offer vertical fonts in the font dialog. 2013-06-25 12:39:32 +02:00
Alexandre Julliard c9eee73450 makefiles: Define __WINESRC__ when building programs. 2012-01-23 16:07:37 +01:00
Alexandre Julliard edf44bfb1e winecfg: Avoid Unicode macros. 2012-01-20 12:44:04 +01:00
Alexandre Julliard 0119d770a3 winecfg: Make some variables static. 2010-10-01 13:38:31 +02:00
Gerald Pfeifer 814f570e5b winecfg: Remove variable cUnixPathLen which is not really used from apply_shell_folder_changes. 2010-04-26 07:03:12 -05:00
Michael Stefaniuc 3fae3f3666 winecfg: Remove some explicit WPARAM casts. 2009-12-28 12:27:14 +01:00
Rein Klazes 64dbec13ef winecfg: Make the open file dialogs resizable. 2009-05-06 12:20:10 +02:00
David Hedberg 0b3064215b winecfg: Fix for paths containing utf-8. 2009-02-09 17:17:09 +01:00
Michael Stefaniuc 68d5d8e921 winecfg: Remove superfluous casts. 2009-01-08 12:54:46 +01:00
Michael Stefaniuc 7a2f3bf7ee winecfg: Remove some superfluous casts. 2008-12-04 12:08:20 +01:00
Marcus Meissner a24550aa82 winecfg: Fixed buffersize to GetPrivateProfileStringW. 2008-09-15 11:23:19 +02:00
Colin Finck a33d7fc8c9 Fix some hackish usages of WideCharToMultiByte. 2008-07-31 14:08:29 +02:00
Reece Dunn 14f86f8778 winecfg: Add support for updating all system colours. 2008-04-01 13:15:39 +02:00
Reece H. Dunn 85703790fd winecfg: Allow theme colour names to be case insensitive when reading them from a file. 2008-02-11 21:03:55 +01:00
Reece H. Dunn 84d77c9d2c winecfg: Fixed reading in colour data from a theme file. 2008-02-11 21:03:47 +01:00
Dmitry Timoshkov 2ae3945d3d winecfg: Don't mix the strings in unix and windows locales. 2008-01-04 11:55:59 +01:00
Nigel Liang 998baf9f0f winecfg: Suport color schemes from .theme format themes. 2007-08-23 13:36:20 +02:00
Nigel Liang a4d8f32d55 winecfg: Add menu font settings to desktop integration tab. 2007-07-31 13:40:29 +02:00
Dmitry Timoshkov 43a072b1cb winecfg: Fix some compatibility problems. 2007-07-31 13:36:08 +02:00
Alexandre Julliard 0faf3f8a1a Avoid non-portable Unix mode bits macros. 2007-07-31 13:18:03 +02:00
Stefan Huehner 51a7ca3440 Change some functions arguments from () -> (void). 2007-03-12 12:25:31 +01:00
Andrew Talbot e181d5d0e2 winecfg: Cast-qual warning fix. 2006-12-16 17:02:04 +01:00
Vitaliy Margolen 38d5130b5c winecfg: Add ability to change colors and non-client sizes. 2006-11-21 12:12:21 +01:00
Francois Gouget 82babbee0b Add missing '\n's to Wine traces. 2006-10-05 17:46:48 +02:00
Paul Vriens 35d24315e7 winecfg: Create Resources directory when adding themes. 2006-06-20 20:35:47 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00