Alexandre Julliard
3ab6174997
user32: Use the correct top-level window when activating through a mouse click.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-01 09:15:44 +02:00
Alexandre Julliard
3eb0d2868c
user32: Consistently print the HDC value in DCE traces.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-31 19:13:26 +02:00
Fabian Maurer
f7f7b89e2e
user32/combo: Set listbox popup height correctly and add tests.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-28 09:29:27 +02:00
Dmitry Timoshkov
3d66e753e7
user32: DialogBoxParam should return -1 when dialog control creation fails.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 14:03:38 +09:00
Dmitry Timoshkov
a62a8601db
user32/tests: Test DialogBoxParam using a dialog template with invalid control class.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 14:00:17 +09:00
Austin English
797a746fc2
user32: Add GetGestureInfo stub.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-12 19:35:26 +09:00
Austin English
24cea1b77b
user32: Add CloseTouchInputHandle/GetTouchInputInfo stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-12 19:35:17 +09:00
Austin English
9d6bcf3c8c
user32: Add UnregisterTouchWindow stub.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-12 19:34:07 +09:00
Tim Worthington
4f96439ebf
user32: Fix rendering of tabs in edit control.
...
Signed-off-by: Tim Worthington <tim@pcbelegance.org>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:31 +02:00
Alexandre Julliard
e7f30014c3
user32: Always update the visible region for cross-process DCEs.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:30 +02:00
Alexandre Julliard
d0e8170c90
user32: Reduce the cursor height if it also includes the mask.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:30 +02:00
Alexandre Julliard
bcbc84e214
user32: Don't exclude clipped children from the copied window bits since they may be up to date.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-20 10:41:43 +02:00
Zebediah Figura
ae153a5c2c
user32: Allow activating the desktop window.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-19 19:13:31 +02:00
Zebediah Figura
292450b07f
user32: Calculate a window's minimized size even if it's already minimized.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:35 +02:00
Alexandre Julliard
2999123fed
user32: Also disable the DC if the window is destroyed without a ReleaseDC.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:31 +02:00
Alexandre Julliard
52d90e3ce0
user32/tests: Add some tests for WindowFromDC and destroyed windows.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-17 09:56:07 +02:00
Alexandre Julliard
32ccc0b9e0
user32: New high resolution cursors generated from SVG.
...
Based on a cursor set published by Ludvig Hummel under the X11 license.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-14 13:30:20 +02:00
Alexandre Julliard
5b9c69b93f
user32: Copy the bits of child windows when the parent has a surface.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 11:05:16 +02:00
Alexandre Julliard
4e13c06f3b
user32: Add a helper function for copying bits from a window surface.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 11:05:15 +02:00
Alexandre Julliard
4f88a57ce7
server: Return the top surface window even when not using OpenGL.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 11:05:15 +02:00
Alexandre Julliard
55d247ef13
user32: Match cursor size in priority over color depth.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-11 21:22:54 +02:00
Alexandre Julliard
b7e19e4a1a
user32: Implement LR_MONOCHROME for loading cursors.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 20:51:09 +02:00
Alexandre Julliard
078dad1ad1
user32: Get rid of the Wine-specific OCR_DRAGOBJECT.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-07 09:20:12 +02:00
Alexandre Julliard
d4654e5799
user32: Scale cursor sizes with the screen DPI.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-05 20:20:05 +02:00
Huw Davies
022e4b8243
user32: End the tracking on a system menu double-click.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:49:40 +02:00
Huw Davies
8d10b5cecc
user32: Use the original message's wparam during the double-click comparison.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:49:35 +02:00
Huw Davies
e60bc27dd2
user32: A button-up in the menu-bar, but not on an item, should stop the tracking.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:49:22 +02:00
Huw Davies
580915040e
user32: A second button-up on the system menu should end the tracking.
...
This isn't quite how Windows behaves. Windows doesn't follow the
tracking between the menu-bar and the system menu, while Wine does.
Since the system menu of top-level windows is likely to be hidden by
Wine's graphics driver, this seems like useful behaviour to keep and
thus this patch makes things behave sensibly.
Even without Wine's special tracking behaviour, this patch is an
improvement. The tracking state has no reason to be stored in the
menu structure.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:49:16 +02:00
Huw Davies
77026e244c
user32: Allow button-down events on the system menu to continue tracking.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:48:55 +02:00
Zebediah Figura
84a2459d56
user32/tests: Add tests for minimizing MDI windows.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-02 10:33:48 +02:00
Józef Kucia
ae9d5ce5f7
user32: Fix memory leak in WinHelpA().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-30 21:49:49 +02:00
Alexandre Julliard
719e28bd2c
server: Don't increment the clipboard sequence number for delayed rendering or synthesized formats.
...
Based on a patch by Piotr Caban.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-24 13:03:39 +02:00
Austin English
3b9e49b4d8
user32: Add LogicalToPhysicalPoint/PhysicalToLogicalPoint stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-19 20:26:34 +02:00
Austin English
2e9ca4626e
user32: Add GetPhysicalCursorPos/SetPhysicalCursorPos stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-17 21:57:13 +02:00
Piotr Caban
66c7b37a98
user32: Test clipboard sequence number for delayed rendered data.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 19:02:19 +02:00
Piotr Caban
1e9d40e601
user32: Test clipboard sequence number for synthesized data.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 19:02:17 +02:00
Piotr Caban
61d78205d2
user32: Don't load GetClipboardSequenceNumber dynamically in tests.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 19:02:15 +02:00
Alexandre Julliard
0647abc507
user32/tests: Test resulting size of strings with trailing nulls.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 16:55:45 -05:00
Nikolay Sivov
393ec970c8
user32: Added a helper to get screen dc.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-07 16:19:21 -05:00
Nikolay Sivov
9ee82b9465
user32/msgbox: Fix static control id.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-07 16:19:18 -05:00
Huw Davies
ee3f060262
user32: Change IsProcessDPIAware() to always return TRUE.
...
This mimics Windows' behaviour when the 'Use Windows XP style DPI
scaling' box is ticked. Since we don't have a DPI scaler, this makes
most sense.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-02 17:51:34 +02:00
Huw Davies
3d47809aca
user32: Fix icon spacing minimium values.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-02 17:51:32 +02:00
Huw Davies
fb118b222a
user32: Fix the calculation of system metrics icon sizes.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-02 17:51:31 +02:00
Huw Davies
3845b0bb73
user32/tests: Try to read the dpi from the user key first.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-27 22:22:51 +02:00
Zebediah Figura
fe95de98b5
user32: Move internal message from EnableWindow to WIN_SetStyle().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-25 11:47:20 +02:00
Austin English
d8db5e04bd
user32: Add GetAutoRotationState/GetDisplayAutoRotationPreferences stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-25 09:42:51 +02:00
Huw Davies
e0843d234e
user32: Fix a potential buffer overflow.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-21 16:10:04 +02:00
Nikolay Sivov
3c7fee39d3
user32: Partially protect WM_SETTEXT handlers from invalid input.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-20 18:58:46 +02:00
Piotr Caban
f7402accc4
user32/tests: Add layered window child painting test when WS_CLIPCHILDREN flag is specified.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 20:02:55 +02:00
Piotr Caban
34b108dd1d
user32: Switch to normal window drawing on SetLayeredWindowAttributes call.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 20:02:55 +02:00