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
Nikolay Sivov
9b9f97e3f6
user32: Add redirected class registration callback.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-20 11:41:44 +01:00
Akihiro Sagawa
8960cf3d44
user32: Add more ex-style trace messages.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-12 20:32:14 +01:00
Michael Müller
76f135e599
user32: Add stubs for GetWindowDisplayAffinity and SetWindowDisplayAffinity.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-09 10:40:44 -06:00
Nikolay Sivov
b7a08c9281
user32/button: Do not select old font back after painting.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 19:25:56 +01:00
Piotr Caban
43df3f468f
user32/tests: Add listbox WM_MEASUREITEM tests.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 09:58:00 +01:00
Piotr Caban
3c5c9b1577
user32: Fix itemData passed in ListBox WM_MEASUREITEM message.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 09:57:52 +01:00
Nikolay Sivov
d0b1e43c71
user32/tests: Remove commented out traces, use test calls instead of traces.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 17:24:37 +01:00
Alexandre Julliard
f80802edd7
user32/tests: Also test device caps on a released DC.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 18:21:00 +01:00
Alex Henrie
e1c2a87061
user32/tests: Drop broadcast test workarounds for Windows <= 2000.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 09:25:13 +01:00
Nikolay Sivov
9640990e43
user32: Don't convert message arguments when calling dialog procedure.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:57:53 +01:00
Nikolay Sivov
f31cb68fc3
user32/tests: Test auto-registration for more redirected builtin classes.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-16 14:35:01 +01:00
Alexandre Julliard
692b118f45
user32/tests: Remove workarounds for older Windows versions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-14 20:37:54 +01:00
Alexandre Julliard
f893b03903
user32/tests: Reduce window test verbosity.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-14 11:01:08 +01:00
Nikolay Sivov
04fe481d2b
comctl32: Introduce ListBox control.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-14 09:05:30 +01:00
Nikolay Sivov
c9e98034b3
comctl32: Introduce ComboBox control.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 19:15:00 +01:00
Nikolay Sivov
eebdb457bf
user32/tests: Extend message conversion tests.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 15:33:09 +01:00
Nikolay Sivov
3436460c51
user32/tests: Remove workaround for GetComboBoxInfo() availability.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 13:11:05 +01:00
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