Commit Graph

2711 Commits

Author SHA1 Message Date
Alexandre Julliard ecf0bef561 user32: Add 256x256 variants of the standard icons.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 17:16:51 +02:00
Alexandre Julliard 7fdf90e395 user32: Implement LogicalToPhysicalPointForPerMonitorDPI() and PhysicalToLogicalPointForPerMonitorDPI().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-19 12:51:21 +02:00
Alexandre Julliard fb563978d8 user32: Implement GetDpiForWindow().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-19 12:51:21 +02:00
Alexandre Julliard 8b7ed36307 user32: Add partial stub for GetDpiForMonitorInternal().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-19 12:51:21 +02:00
Francois Gouget 0e66914f69 user32: Fix the name of an unused debugging function.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-18 10:13:36 +02:00
Alexandre Julliard 300217e38b user32: Implement AdjustWindowRectExForDpi().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 17:03:13 +02:00
Alexandre Julliard 77013e9796 user32: Reimplement AdjustWindowRectEx using NONCLIENTMETRICSW.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 17:03:13 +02:00
Nikolay Sivov 6cae93a36e user32/menu: Replace macro checks for window style with a helper function.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 17:03:13 +02:00
Nikolay Sivov fcdc7db390 user32/menu: Hold a reference to menu data for calls with menu handles on input.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 17:03:13 +02:00
Alexandre Julliard 3458af7db0 user32: Implement GetSystemMetricsForDpi().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-13 14:34:26 +02:00
Alexandre Julliard a02ed14732 user32: Implement SystemParametersInfoForDpi().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-13 14:34:25 +02:00
Alexandre Julliard 9c225fc3f9 user32: Fix position of the small icon in the caption bar.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-13 14:34:25 +02:00
Alexandre Julliard d4d12801bc user32: Included padded border into the border width in NONCLIENTMETRICS.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-13 14:15:40 +02:00
Alexandre Julliard 6b42665b95 user32/tests: Remove Win9x workarounds.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-13 08:54:43 +02:00
Alexandre Julliard 132c00fc9f user32/tests: Cleanup helper macros.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-13 08:39:20 +02:00
Alexandre Julliard 60085f4e36 gdi32: Scale stock fonts based on the DPI awareness.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-12 13:50:01 +02:00
Alexandre Julliard 31967ef51d gdi32: Take DPI awareness into account for the LOGPIXELSX/Y device caps.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-12 13:26:31 +02:00
Alexandre Julliard 74a9c91964 user32: Get the system DPI from the registry instead of from GDI.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-12 13:24:36 +02:00
Józef Kucia 9a95f10249 user32: Add stub for EnableMouseInPointer().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 16:23:06 +02:00
Alexandre Julliard 9d5e33b741 user32/tests: Add tests for GetDpiForSystem().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 16:23:05 +02:00
Alexandre Julliard da2551f874 user32: Support returning to the process default in SetThreadDpiAwarenessContext().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 16:23:05 +02:00
Alexandre Julliard 165f552c34 user32: Add more allowed values in GetAwarenessFromDpiAwarenessContext() and IsValidDpiAwarenessContext().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 16:23:05 +02:00
Alexandre Julliard 9fa96f5433 user32: Implement Get/SetProcessDpiAwarenessInternal().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 16:23:04 +02:00
Nikolay Sivov 349d9fbdd7 user32/tests: Remove the rest of skips in menu tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 10:02:44 +02:00
Nikolay Sivov 508e7a88f5 user32/tests: Remove menu tests workarounds.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 10:02:38 +02:00
Huw Davies da943f2c08 user32: Avoid using the comma operator in a while condition.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-04 22:04:27 +02:00
Alexandre Julliard 3cad302cc0 user32/tests: Use the function pointer for GetWindowDpiAwarenessContext.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-04 11:41:31 +02:00
Alexandre Julliard b53d84b947 user32: Add support for loading 256x256 icons.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-03 20:46:01 +02:00
Alexandre Julliard 9dc886244b user32: Ignore PNG icons instead of failing if we don't have libpng.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-03 20:46:01 +02:00
Alexandre Julliard b1631d69da user32: Try to load libpng only once.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-03 20:46:01 +02:00
Dmitry Timoshkov 728255cf2c user32: Add support for PNG icons.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-03 18:27:11 +02:00
Nikolay Sivov 927956db67 user32/static: Use correct brush color for centered image background.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 20:47:11 +02:00
Alexandre Julliard 3f97ba3f46 user32: Partially implement GetWindowDpiAwarenessContext().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 20:47:10 +02:00
Alexandre Julliard 478814ed95 user32: Implement Get/SetThreadDpiAwarenessContext().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 20:47:10 +02:00
Alexandre Julliard c440af11bd user32: Support forcing the DPI awareness through the image file execution options.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 16:02:55 +02:00
Michael Stefaniuc e8411d22d5 user32: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 16:02:53 +02:00
Michael Stefaniuc 6e7f28d934 user32: Remove an ARRAY_SIZE()-like macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 16:02:49 +02:00
Alexandre Julliard 4c71db15ca user32: Set the process DPI awareness from the manifest.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:03 +02:00
Alexandre Julliard bd0cd09e69 user32: Implement SetProcessDpiAwarenessContext().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 12:37:55 +02:00
Alexandre Julliard ff7961e152 user32: Implement AreDpiAwarenessContextsEqual().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 12:37:05 +02:00
Alexandre Julliard d17ca871dd user32: Implement GetAwarenessFromDpiAwarenessContext().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 12:34:29 +02:00
Alexandre Julliard 4e752086d7 user32: Implement IsValidDpiAwarenessContext().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 12:33:14 +02:00
Alexandre Julliard c2e0ae5bfd user32: Forward more system metrics to SystemParametersInfoW.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 17:23:37 +02:00
Alexandre Julliard 79916de397 user32: Add a stub for GetDpiForWindow().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 16:06:04 +02:00
Alexandre Julliard ca878114cb user32: Implement GetDpiForSystem().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 16:06:04 +02:00
Louis Lenders 40b46d900a user32: Add stub for SetThreadDpiAwarenessContext.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 16:06:03 +02:00
Alexandre Julliard bb99d51dc4 user32: Define a few more window messages.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-28 20:11:09 +02:00
Zhiyi Zhang 7699d8e47a user32/tests: Add BM_SETIMAGE style check tests.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-28 19:37:26 +02:00
Nikolay Sivov 080cb3aa81 user32: Remove some misleading TODOs.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-21 17:33:36 +01:00
Alex Henrie 096deddb2e user32/tests: Drop broadcast test workaround for Windows NT4.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-20 12:08:14 +01:00