Nikolay Sivov
1ae05c04a2
user32: Remove confusing comments.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 13:10:50 +01:00
Nikolay Sivov
31d3fcc0b2
comctl32: Introduce Static control.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 13:10:37 +01:00
Nikolay Sivov
0de689f415
user32: Automatically load the module implementing redirected class.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-07 22:22:51 +01:00
Huw Davies
0d9ce8a025
user32: Add a heuristic to find the mouse message's window.
...
This can't be done properly without support from the native windowing
system. However, it's a good bet to try the next window in the z-order
if it's the owner of the original window and it's in the same thread.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 14:28:10 +01:00
Nikolay Sivov
5d10abde50
comctl32: Introduce Button control.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 14:28:10 +01:00
Alexandre Julliard
2d0704f73a
user32/tests: Fix pointer conversion warnings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 12:57:01 +01:00
Nikolay Sivov
a21b16d8cb
user32: Fix names returned with GetClassName().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 10:00:07 +01:00
Thomas Faber
7ee4588c0a
user32: Handle HeapReAlloc failure in RemoveMenu.
...
The array size is being decreased so failure is not critical here, but
it can still happen, e.g. when DPH is in use.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 10:00:07 +01:00
Zebediah Figura
9b2dd2db6a
user32: Kill focus before minimizing a window.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 14:42:39 +01:00
Nikolay Sivov
be8534d387
user32/tests: Add some tests for GetClassName() and versioned classes.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 14:42:38 +01:00
Zebediah Figura
0741d193ff
user32/tests: Flush events after test_ShowWindow().
...
The test minimizes windows, which triggers most window managers to generate
focus events on other windows. These events aren't processed until halfway
through the next test, test_EnableWindow(), when a message loop is run, and
as a result an unexpected window (usually hwndMain) is activated, causing the
test to fail.
The testbot uses focus-follows-mouse mode, so these focus events were not
triggered, thereby causing a success inside the todo block.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 14:42:38 +01:00
Nikolay Sivov
662f727a79
comctl32: Introduce Edit control.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:55 +01:00
Nikolay Sivov
f2b489591b
user32/edit: Fix replacement text trace.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:55 +01:00
Nikolay Sivov
df715e5a9a
user32: Make it possible to create windows for redirected classes.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-31 21:07:24 +01:00
Bernhard Übelacker
9256017adf
user32: Validate DIB offset in CURSORICON_GetFileEntry.
...
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 10:41:56 +01:00
Zebediah Figura
318edcc94a
user32/tests: Wait for the WM_CLIPBOARDUPDATE message to be received.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 10:24:25 +01:00
Zebediah Figura
0b63b779cc
user32/tests: Add a helper to check clipboard sequence and messages.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 10:24:22 +01:00
Nikolay Sivov
6ca3ec5be8
user32/tests: Add more A/W message data conversion tests.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 09:06:49 +01:00
Nikolay Sivov
bdb048a50e
user32: Enable window class redirection.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-26 13:44:23 +01:00
Alexandre Julliard
e7e576d675
user32: Also user the thread-safe display DC in icon functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 12:30:22 +01:00
Guo Lv
daa832f4bf
user32: Make functions use display dc thread-safe.
...
Signed-off-by: Guo Lv <lvguo@deepin.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 12:03:12 +01:00
Nikolay Sivov
6aa853ae39
user32/edit: Fix EM_SETWORDBREAKPROC return value.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 22:26:46 +01:00
Nikolay Sivov
71d8edebb9
user32: Add SysLink to known classes list.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 12:12:02 +01:00
Nikolay Sivov
8d8c94d793
user32/tests: Add EM_GETLINE test.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-12 15:02:55 +01:00
Nikolay Sivov
df88f96da1
user32/tests: Add some more tests for message data conversion in dialog procedures.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-08 22:47:24 +01:00
Piotr Caban
a5118adbbc
user32: Add more CB_SETCURSEL tests on ComboBox.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 19:30:26 +01:00
Piotr Caban
a912b23771
user32: Redraw combo text field even if it's empty.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 19:30:12 +01:00
Piotr Caban
910129fcf7
user32: Let ComboBox edit control handle the redraw even if CBF_NOREDRAW is set.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 19:30:08 +01:00
Andrey Gusev
f547891e76
user32/tests: Fix resource leak.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 16:12:55 +01:00
Francois Gouget
2041e20a69
user32/tests: Make test_WS_VSCROLL() static.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-04 16:33:47 +01:00
Andrey Gusev
daa4663980
user32/tests: Fix resource leak.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-03 19:13:27 +01:00
Nikolay Sivov
7fad896f29
user32/tests: Add missing return value test (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 13:25:20 +01:00
Alex Henrie
7a39a7a3ae
user32/tests: Recognize undefined characters in OemKeyScan tests.
...
This reverts commit 72ab2d5b07
.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-29 09:59:49 +01:00
Alex Henrie
72ab2d5b07
user32/tests: Fix OemKeyScan failures with input method editors.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 21:36:55 +01:00
Nikolay Sivov
41a76447dd
user32/tests: Add some tests for A/W auto conversion in case of mismatching window vs dialog procedure types.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 21:36:55 +01:00
Zebediah Figura
d95be60ff6
user32/tests: Add a basic test for maximizing windows.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-21 10:38:01 +01:00
Zebediah Figura
b7cdfd312c
user32/tests: Also test client rect size.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-21 10:37:59 +01:00
Zebediah Figura
54388647af
user32/tests: Explicitly test minimized window size.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-21 10:37:56 +01:00
Zebediah Figura
83c806ed0e
user32/tests: Add activation tests for minimizing windows.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-20 17:49:10 +01:00
Zebediah Figura
2f0d573be7
user32/tests: Add activation tests for hiding windows.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-20 17:49:03 +01:00
Zebediah Figura
e188d66251
user32/tests: Add more tests for SetActiveWindow().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-20 17:48:57 +01:00
Zebediah Figura
51f555a517
user32/tests: Don't leave hwndMain in a topmost state.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-20 17:48:55 +01:00
Sebastian Lackner
059d5ece23
user32: Globally invalidate key state on changes in other threads.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-18 16:20:58 +01:00
Nikolay Sivov
ea141a5ae9
user32/tests: Class API tests for interaction with activation contexts.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-18 12:35:13 +01:00
Nikolay Sivov
5f327bbb86
user32/tests: Remove runtime check for GetMenuBarInfo().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-18 11:19:34 +01:00
Nikolay Sivov
0a953f117a
user32/tests: Release window DCs consistently.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 09:58:30 +01:00
Sebastian Lackner
f0fc034997
Revert "user32/combo: Set listbox popup height correctly and add tests.".
...
This partly reverts commit f7f7b89e2e
(tests are left in place).
Any application that currently uses "Microsoft.Windows.Common-Controls
v6" via a Manifest has the possibility of breaking comboboxes. Using
this version of the control ensures that dropdown for comboboxes, will
show multiple items, regardless of its height in the resource.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-11 15:29:42 +01:00
Nikolay Sivov
84a35f532f
user32/tests: Remove runtime check for EndMenu().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-06 17:01:59 +01:00
Nikolay Sivov
f62d8dc58f
user32/edit: Allow buffer access after EM_GETHANDLE.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-05 20:30:04 +01:00
Nikolay Sivov
71eac4a70b
user32/tests: Added some tests for WM_GETTEXTLENGTH/WM_GETTEXT after EM_GETHANDLE was used.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 19:54:16 +01:00
Alexandre Julliard
01676c5dd6
user32: Use the magic format string prefix for relay traces.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-25 12:05:40 +01:00
Fabian Maurer
ca1c64d37d
user32/tests: Test manually setting WS_VSCROLL on combobox listbox.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-20 12:37:15 +01:00
Rafał Harabień
5c2526a086
winex11.drv: Preserve last error in x11drv_thread_data().
...
Signed-off-by: Rafał Harabień <rafalh1992@o2.pl>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-17 17:44:05 +01:00
Akihiro Sagawa
4adfb1be29
user32: Send WM_IME_CHAR messages from DefWindowProc.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-16 21:48:49 +01:00
Dmitry Timoshkov
ed7513f9c2
user32/tests: Add a bunch of WS_EX_TOPMOST tests.
...
The tests most of the time pass cleanly here under MATE environment,
but sometimes there are intermittent failures (like in some other tests)
without visible reason, and another 'make test' runs cleanly again.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 13:02:20 +01:00
Dmitry Timoshkov
82cf34562e
user32/tests: Make WS_EX_TOPMOST tests more generic.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 11:59:45 +01:00
Dmitry Timoshkov
91b09e0c5b
user32/tests: Separate WS_EX_TOPMOST tests from SetWindowPos ones.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 11:59:43 +01:00
Dmitry Timoshkov
825d2337b5
user32/tests: Fix test failures under Windows.
...
Without SetForegroundWindow() these tests fail in some testbot runs.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 11:59:39 +01:00
Dmitry Timoshkov
5aafd080d1
user32/tests: Don't leave a stray test window behind.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 11:59:37 +01:00
Alexandre Julliard
92d2ebe662
user32/tests: Avoid strlen in traces.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-08 22:12:45 +01:00
Alexandre Julliard
9215aabd2e
user32: Pass the text length explicitly to EDIT_EM_ReplaceSel.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 21:24:44 +01:00
Rafał Harabień
6653d43023
user32: Protect single-line edit against pasting new line character.
...
Signed-off-by: Rafał Harabień <rafalh1992@o2.pl>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 21:24:44 +01:00
Zebediah Figura
d385de71e3
user32/tests: Simplify test_SendMessage_other_thread().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 12:15:28 +01:00
Marcus Meissner
77f4c20af3
user32/tests: Check GetClipboardFormatName length.
...
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 12:15:28 +01:00
Zebediah Figura
9b7f9f2d08
user32: Use the given string length when converting strings in WM_GETTEXT.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 12:15:28 +01:00
Marcus Meissner
ebfd1d3df6
user32/tests: Removed a unreliable test.
...
Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-31 17:00:47 +01:00
Huw Davies
9933a0fc86
user32: Initialize length before calling GetWindowPlacement().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-30 21:30:45 +01:00
Huw Davies
05e40aa67d
user32: Trace the full NCCALCSIZE_PARAMS info if present.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-30 21:30:45 +01:00
Huw Davies
9c9c03046f
user32: Use WS_MINIMIZE instead of WS_ICONIC.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-30 21:30:45 +01:00
Piotr Caban
8159af76b4
user32: Don't do the painting if combobox is not visible in CBPaintText.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-24 19:10:06 +02:00
Alex Henrie
c14a16b089
user32: Implement IDI_SHIELD.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-19 19:47:09 +02:00
Alexandre Julliard
3dd6046d7c
user32: Specify cursor hotspots separately for each size.
...
This is supported in icoutils as of version 0.32.0.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-17 16:14:28 +02:00
Andrey Gusev
70b8a2f86b
user32/tests: Remove redundant comparison.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-13 15:08:56 +02:00
Piotr Caban
1a114c9f4b
user32: Don't invalidate ComboBox on CB_SETCURSEL message.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-06 21:48:48 +02:00
Piotr Caban
9cb29e5182
user32: Don't invalidate ComboBox on LBN_SELCHANGE and LBN_SELCANCEL.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-06 21:48:48 +02:00
Piotr Caban
e5dd995708
user32: Remove unneeded RECT parameter from CBPaintText helper.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-06 21:48:48 +02:00
Piotr Caban
eb5c7bccd4
user32/tests: Add test for CB_SETCURSEL on ComboBox.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-06 21:48:48 +02:00
Fabian Maurer
5e59e9b34c
user32: Add stub for CalcMenuBar.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-07 18:25:01 +02:00
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
Michael Stefaniuc
79147c8658
user32: Use SetRectEmpty() instead of memset().
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 09:11:46 +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
Huw Davies
962d5e6469
user32: Don't bother drawing an item if it's outside the items_rect.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-31 14:03:50 +02:00
Huw Davies
21c5545a97
user32: Simplify the use of rectangles.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-31 14:03:44 +02:00
Huw Davies
66d3c80de0
user32: Pass a POPUPMENU ptr to MENU_DrawMenuItem().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-31 14:03:32 +02:00
Huw Davies
e42bcbdea3
user32: Remove the height parameter from MENU_DrawMenuItem().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-31 14:03:23 +02:00
Huw Davies
3c0ddd5971
user32: Limit the menu height to that of the work area.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-30 22:06:33 +02:00
Huw Davies
1d4992282d
user32: Disable scrolling for multi-column menus.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-30 22:06:33 +02:00
Huw Davies
d4544f7fed
user32: Don't finish tracking when the menu borders or scroll arrows are clicked.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-30 22:06:33 +02:00
Huw Davies
6abb7db763
user32: Scale the scroll arrows with the menu's font size.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 17:17:15 +02:00
Huw Davies
bd785a5ac0
user32: Don't fill the background when drawing the scroll arrows.
...
This is done, in the correct colour, in MENU_DrawPopupMenu().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 17:17:15 +02:00
Huw Davies
79bdeceab4
user32: Clip painting to the items_rect.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 17:17:15 +02:00
Huw Davies
1bdd12f493
user32: Store the item rects as relative to the items_rect.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 17:17:14 +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
Huw Davies
bdcaae4b78
user32: Add an items rect to the header and use it to fix scrolling down.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-28 22:13:14 +02:00
Huw Davies
d4d0247f4e
user32: Simplify GetMenuItemRect().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-28 22:12:45 +02:00
Huw Davies
c72a7219fd
user32: Add a helper to retrieve the height of the scroll arrows.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-28 22:12:16 +02:00
Huw Davies
a8344b9616
user32: Rationalize the popup menu margin calculation.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-28 22:11:33 +02:00