Commit Graph

1321 Commits

Author SHA1 Message Date
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
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
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
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 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 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
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
Huw Davies e352b29d12 user32/tests: Fix tests for minimium icon spacing when not in DPI scaling mode.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 16:00:39 +02:00
Huw Davies bfcf92f148 user32/tests: Fix a few failures in DPI scaling mode.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 16:00:37 +02:00
Huw Davies 0ce293a0d8 user32/tests: Correctly restore the caption sizes when run in DPI scaling mode.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 16:00:35 +02:00
Zebediah Figura 0ac74d180a user32: Always send WM_CANCELMODE when disabling a window.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 10:20:54 +02:00
Zebediah Figura b4fea4f2f0 user32: Don't call ReleaseCapture() in EnableWindow().
Killing the capture is already handled in DefWindowProc().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 10:11:55 +02:00
Zebediah Figura 3d133becce user32/tests: Add tests for EnableWindow().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 10:09:46 +02:00
Piotr Caban a878f0a02a user32: Don't call IsChild with NULL window in EnableWindow.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:38 +01:00
Alexandre Julliard 413e27eff1 user32/tests: Re-enable a test about window positions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:34:51 +01:00
Alex Henrie 2799be1804 user32: Translate WM_(NC)XBUTTONUP to WM_APPCOMMAND in DefWindowProc.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-23 20:14:15 +01:00
Fabian Maurer d594ba3322 user32: Only send position-change messages when needed.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:43:15 +01:00
Fabian Maurer 997d4ef44f user32: Send WM_NCPAINT and WM_ERASEBKGND when window is shown.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:42:37 +01:00
Francois Gouget a3f36a045f user32/tests: Occasional spelling fixes in comments.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:32:09 +01:00
Rodrigo Rivas Costa fbd9ed0dee user32: Fix error handling in EndDeferWindowPos.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-17 20:53:53 +01:00
Sebastian Lackner 6f62f9614d user32/tests: Add test for EndDeferWindowPos with destroyed window.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-17 13:54:00 +01:00
Fabian Maurer 43b0dce203 user32/tests: Add tests for disabled buttons receiving WM_LBUTTONUP.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 21:39:28 +01:00
Fabian Maurer eba9294d9e user32/tests: Add WM_NCPAINT tests for windows crossing screen or maximized.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 21:45:27 +01:00
Fabian Maurer 372e3e223a user32/tests: Add tests for windows when first shown if they have children.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 21:45:27 +01:00
Fabian Maurer ea6dbfcd07 user32/tests: Add tests for windows when first shown with SetWindowPos.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 21:45:27 +01:00
Fabian Maurer 46b344fc2f user32/tests: Add tests for windows when first shown with WS_VISIBLE or RedrawWindow.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 21:45:26 +01:00
Nikolay Sivov a423f14a56 user32/tests: Test to show that original font is not selected back after painting buttons.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-07 17:24:31 +01:00
Huw Davies 01112061c2 user32/tests: Restore the mouse cursor to its original position.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-07 14:45:58 +01:00
Fabian Maurer 115bbf424c user32: Don't send WM_CHAR when a menu gets VK_ESCAPE and add tests.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-03 19:05:09 +01:00
Huw Davies cdf3872f59 user32/tests: Restore the mouse cursor to its original position.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 19:50:34 +01:00
Huw Davies e883d0ec60 user32: Hardcode the GetWindowLong values for the desktop window to avoid a server round-trip.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 19:50:34 +01:00
Huw Davies a60144ee74 user32: Disable cached DCs once they are released.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 10:46:22 +01:00
Huw Davies e641e6e49b user32/tests: Windows 10 no longer supports setting bpp to zero.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-18 10:51:21 +01:00
Nikolay Sivov 904c695de8 user32/tests: Some tests for GetWindowText() when non terminated string is returned.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-11 16:04:07 +01:00
Francois Gouget 0ab75f2e5a user32/tests: A spelling fix in a comment.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-09 12:10:32 +01:00
Nikolay Sivov d437d61c57 user32/tests: Added some tests for FindWindow().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-02 11:24:22 +01:00
Hans Leidekker ef743e41ee user32/tests: Disable automatic shell restart during SetShellWindow tests.
This test kills the desktop shell process so it can set a different shell window.
Modern Windows will automatically restart the desktop shell when it dies, and if
that happens soon enough it will interfere with the remaining tests.

Disabling automatic restart requires admin rights.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-20 13:02:49 +01:00
Huw Davies 78983d9fcd user32/tests: Add a test to show that released cache DCs are disabled.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 15:55:03 +01:00
Lauri Kenttä 26be29138f user32/tests: Add tests for LockWindowUpdate.
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 11:43:50 +01:00
Huw Davies fab7a584c1 user32/tests: FlashWindow(Ex) sets ERROR_INVALID_WINDOW_HANDLE on updated Windows 7.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-30 16:28:06 +01:00
Huw Davies 400e0af66c user32/tests: Mark built-in wndproc auto-detection behaviour as broken on Windows 8 and 10.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-24 14:31:32 +01:00
Erich E. Hoover f9b878101e user32/tests: Fix an inconsistent test case in clearing the clipboard.
Depending on our clipboard polling we can get an additional clipboard
update during the clipboard clear test.  This change forces a consistent
state when starting the test, which stops the additional window message
from possibly occurring.

Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-15 13:53:29 -06:00
Huw Davies e574350b62 user32/tests: Don't perform character lookup ToUnicode() tests on non-US keyboards.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:07 -06:00