Commit graph

388 commits

Author SHA1 Message Date
Alexandre Julliard d92b59717d include: Use proper dllimports for user32 functions. 2022-12-07 13:51:37 +01:00
Zhiyi Zhang c196d2462d user32: Hook drawing menu buttons. 2022-11-04 19:23:55 +01:00
Alex Henrie 9d2b879d17 include: Fix typo in LR_VGACOLOR.
Needed to compile Tera Term.
2022-10-10 11:15:52 +02:00
Francois Gouget 04c7ff2c2f include: Add some SPI_ constants.
They pop up in some failure messages.

Signed-off-by: Francois Gouget <fgouget@free.fr>
2022-07-25 09:38:26 +02:00
Jacek Caban 79910bcf83 user32: Pass scroll enable flags to ScrollBarDraw. 2022-07-04 20:14:02 +02:00
Rémi Bernon 834ade753e include: Add touch and pointer input related winuser.h declarations.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-01 20:49:36 +02:00
Zebediah Figura ab34fb78f8 include: Constify the RAWINPUTDEVICE pointer parameter to RegisterRawInputDevices().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-16 10:40:03 +02:00
Jacek Caban 497f37cf99 include: Don't use DECLSPEC_HIDDEN for WINGDIAPI and WINUSERAPI in unuxlibs.
Allows win32u.so to expose such functions using unixlib interface.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-06 19:18:18 +02:00
Zebediah Figura 5e4dedff8e win32u: Remove the "proc" parameter to NtUserSetSystemTimer().
Testing on 32-bit Windows 10 suggests that the function only has three
parameters. The test fixed in this patch (which still succeeds on e.g. Windows
2003) suggests that the final parameter to SetSystemTimer() is not a callback,
either.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:41:22 +02:00
Jinoh Kang 949edcec17 include: Remove duplicate definitions of UOI_* macros.
Commit 5ec458fd41 (Add declarations for GetClassLongPtr{A,W}, GCLP_*
defines and user object information defines., 2004-10-14) inadvertently
introduced duplicate definitions of UOI_* macros.

Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-18 12:37:03 +02:00
Zhiyi Zhang be8acff719 include: Avoid a C++ keyword for RegisterUserApiHook().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52787
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-11 10:12:37 +02:00
Nikolay Sivov 947f638a05 user32: Add suspend-resume notification API stubs.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 18:32:32 +02:00
Zhiyi Zhang b02405d799 uxtheme: Hook DefDlgProc() for dialog theming.
Fix controls on OpenMPT's channel setting dialog having incorrect background.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-24 10:18:31 +01:00
Zhiyi Zhang 9c9274990e uxtheme: Do not hook DefDlgProc() for theming.
Currently there is no need to hook DefDlgProc(). Tests show that dialog theming shouldn't be
implemented in DefDlgProc().

Also fix a double free bug because WM_DESTROY in UXTHEME_DefDlgProc() calls CloseThemeData() even
when the theme handle is not opened when handling WM_CREATE in UXTHEME_DefDlgProc(). The bug can
be demonstrated by running comctl32/tests/propsheet.c tests with Light theme.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-07 12:22:49 +01:00
Connor McAdams 04965f6e47 include: Define EVENT_OBJECT_INVOKED.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-27 17:40:14 +02:00
Zhiyi Zhang 0a83027e20 uxtheme: Support drawing themed standard scroll bars.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39821
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 18:50:11 +02:00
Zhiyi Zhang b0e51ead0d uxtheme: Move themed dialog to uxtheme.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51137
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 18:49:55 +02:00
Zhiyi Zhang d9063802f2 uxtheme: Move themed scroll bar to uxtheme.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 18:49:49 +02:00
Rémi Bernon 123c17aa92 user32: Add RAWINPUT parameter to __wine_send_input.
And send_hardware_message.

This makes it possible to use __wine_send_input to send extended input
data, such as HID device notifications and WM_INPUT messages carrying
HID reports.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50506
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 10:37:52 +02:00
Puetz Kevin A 493e9a6164 include: GWL_ID is not a HANDLE or pointer, and should be available on _WIN64.
Signed-off-by: Kevin Puetz <PuetzKevinA@JohnDeere.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-17 00:03:04 +02:00
Jacek Caban d4bbda626a winuser.h: Add touch event flags.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-07 20:13:27 +02:00
Zebediah Figura e6df76770e user32: Implement RegisterDeviceNotification().
Based on a patch by Micah N Gorrell.

This fixes controller hotplugging in Into the Breach.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-06 10:49:12 +02:00
Sven Baars 9bd51fff5d user32: Add EnableNonClientDpiScaling stub.
Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-19 20:34:13 +01:00
Zhiyi Zhang 7d94e9d0c3 user32: Trace more ChangeDisplaySettingsExW() flags.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-10 22:46:24 +01:00
Alistair Leslie-Hughes 0bce8863b4 include: Add gesture defines.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:57:26 +02:00
Alistair Leslie-Hughes 0453e56e36 include: Add MENUGETOBJECTINFO.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:54:35 +02:00
Alexandre Julliard 60ac1cec62 include: Use DECLSPEC_HIDDEN instead of DECLSPEC_IMPORT for dll exports.
DECLSPEC_IMPORT interferes with delay imports on MinGW.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:34 +02:00
Louis Lenders 34408796b9 user32: Added GetPointerType stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45765
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-29 18:46:25 +02:00
Sebastian Lackner c02407e9a3 user32: Implement CWF_CREATE_ONLY flag for CreateWindowStation.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-08 09:55:23 +02:00
Gabriel Ivăncescu 897b1f5cc3 include: Add PtInRect as inline version of common RECT helpers.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-20 21:23:27 +01:00
Zhiyi Zhang aa754f3ae4 include: Add EnumDisplayDevices flags.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-26 20:56:26 +01:00
Alexandre Julliard 771123afb6 user32: Add stub for GetCurrentInputMessageSource().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-05 19:12:12 +01:00
Zebediah Figura c26de97ecc include: Fix definition of RAWHID.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 10:22:33 +02:00
Alexandre Julliard a36abda773 user32: Make the MonitorFromRect() argument const.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-18 14:11:32 +02:00
Alistair Leslie-Hughes 80205232d3 user32: Support SPI_S/GETAUDIODESCRIPTION in SystemParametersInfo.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 20:51:26 +02:00
Józef Kucia 40e6ba4e69 include: Add POINTER_INPUT_TYPE.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-22 13:40:32 +02:00
Fabian Maurer 66180389f8 user32: Add stub for GetPointerDevices.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 10:50:02 +02:00
Louis Lenders 0b27528c56 user32: Add stub for RegisterPointerDeviceNotifications.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 09:22:11 +02:00
Gijs Vermeulen 223a2099f4 include: Add DOF_* definitions.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-21 10:51:48 +02:00
Austin English 5572f8bebc include/winuser.h: Add tagDROPSTRUCT struct.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 08:52:43 +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 8b7ed36307 user32: Add partial stub for GetDpiForMonitorInternal().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-19 12:51:21 +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 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 9fa96f5433 user32: Implement Get/SetProcessDpiAwarenessInternal().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 16:23:04 +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 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