Commit Graph

238 Commits

Author SHA1 Message Date
Dmitry Timoshkov 00b68720bf user32: Change value of WM_MDICALCCHILDSCROLL to 0x003f.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-20 22:49:42 +09:00
Michael Stefaniuc 4ee8139487 user32/tests: Use SetRect instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 19:28:31 +09:00
Dmitry Timoshkov b555f41020 user32/tests: Add some tests for dialog owner disabled state.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 19:27:56 +09:00
Jacek Caban ae39337e77 user32: Added more tests of handling parent/owner by dialog.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 22:36:21 +09:00
Rodrigo Rivas Costa 5e65b65219 user32: Make DeferWindowPos() fail on invalid window handles.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 19:32:12 +09:00
Piotr Caban f729e62a27 user32/tests: Show that messages are not converted when function pointer is passed to CallWindowProc.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 13:54:50 +09:00
Piotr Caban b1132531bf user32/tests: Show that message conversion should work on window procedures without handles.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 13:54:50 +09:00
Piotr Caban 55a5bac500 user32/tests: Add initial out of window procedure slots test.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 13:54:50 +09:00
Michael Stefaniuc 3a74fd3f72 user32/tests: Use SetRectEmpty() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 22:29:03 +09:00
Jacek Caban aa5762d5c2 user32: Ignore WM_CHILDACTIVATE on disabled windows in DefMDIChildProc.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-27 00:13:29 +09:00
Jacek Caban d13a44e4aa user32: Don't use window's parent as an owner if WS_CHILD style is not set.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 00:25:01 +09:00
Frédéric Delanoy fa56de2cd6 user32/tests: Use todo_wine_if() in tests.
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:37:11 +09:00
Nikolay Sivov 8a7e7ec6a1 user32/tests: Simplify some tests using todo_wine_if().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:17:31 +09:00
Alexandre Julliard 5095ee32af user32: Fix WS_EX_DLGMODALFRAME handling in AdjustWindowRect and add more tests.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-07 22:30:56 +09:00
Alexandre Julliard c92ba78899 user32/tests: Also ignore WM_SYSTIMER messages in input tests.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-02 22:16:12 +09:00
Alexandre Julliard 80193a6c68 user32/tests: Maximized windows can be full-screen in recent Windows.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-02 21:38:30 +09:00
Bruno Jesus ecd814cca5 user32: Don't add scroll bars to mdiclient if the window style doesn't allow it.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-20 19:26:16 +09:00
Dmitry Timoshkov c482cda1b6 user32/tests: Add some tests for mdiclient scrolling.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-20 19:26:11 +09:00
Stefan Dösinger ccf430eb52 user32: Silently ignore temporary foreground loss.
The basic problem is this: Thread A has a window W1 that is it's focus
window and the system-global foreground window. At some point thread A
stops processing messages. After that, thread B creates a window W2
and makes it the foreground window. Thread B later on makes W1 (from
Thread A) the foreground window again. After restoring W1 as the
foreground window, Thread A processes window messages again. Two
WM_WINE_SETACTIVEWINDOW messages are in the queue, one for losing the
foreground thread propery and one for restoring it. The first one will
generates a WM_ACTIVATEAPP(0) message, which causes D3D to minimize
the game window.

The included test shows that Windows doesn't deliver any
WM_ACTIVATEAPP messages if the thread stopped being the foreground
thread and re-gained that property between two message processing
calls. It isn't implemented with a plain WM_ACTIVATEAPP filter, the
manually injected message in the test still gets through.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-01 22:53:53 +09:00
Dmitry Timoshkov 12111d8c3b user32/tests: Add some tests for WM_MDIGETACTIVE.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:05:16 +09:00
Dmitry Timoshkov 2e8166ec0e user32/tests: Move MDI tests out of the WM_CREATE handler.
This helps to avoid side effects of the not yet finished window creation
process.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:05:06 +09:00
Jactry Zeng f22760d210 user32: Implement semi-stub for FlashWindowEx.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Jactry Zeng d2d114190c user32/tests: Add tests for FlashWindow.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Nikolay Sivov 873e12c87b user32/tests: Fix a test failure on Win8/Win10. 2015-08-24 14:42:13 +09:00
Nikolay Sivov 516b21f4ee user32: Don't send WM_GETTEXT from GetWindowText() with invalid buffer length. 2015-07-28 09:52:16 +02:00
Nikolay Sivov ee72b0fdc7 user32: Initialize buffer before sending WM_GETTEXT. 2015-07-28 09:52:13 +02:00
Alex Henrie 5c48752784 user32: Fall back to downscaling the big icon for ICON_SMALL2. 2015-05-14 18:57:26 +09:00
Alexandre Julliard 247275aec3 server: Return a valid position also in posted messages. 2015-04-27 18:04:59 +09:00
Thomas Faber 2885e712f7 user32/tests: Avoid side-effect in an assert. 2015-04-03 17:07:38 +09:00
Alexandre Julliard 13700585b1 user32/tests: Print full flag values in traces. 2015-03-30 19:49:14 +09:00
Alexandre Julliard a5ec8bf8b0 user32/tests: Avoid a race with the get/set window text threads. 2015-02-24 21:55:44 +09:00
Alexandre Julliard 4e87b952b3 user32/tests: Ignore WM_PAINT messages in GetMessagePos test. 2015-02-24 21:55:43 +09:00
Piotr Caban 008a2b46f5 user32/tests: Added GetMessagePos tests. 2015-02-04 21:32:50 +09:00
Sebastian Lackner d5ba7451a3 user32: Avoid sending window messages in FindWindowExW. 2014-11-18 22:10:38 +09:00
Sebastian Lackner c56ba461a2 user32/tests: Add multi-threaded tests for [Get|Set]WindowText. 2014-11-18 22:10:36 +09:00
Sebastian Lackner d6bdae11df user32/tests: Add single-threaded tests for WM_[GET|SET]TEXT and [Get|Set]WindowText. 2014-11-18 22:10:28 +09:00
Sebastian Lackner 0a6e56bdc6 user32/tests: Reenable test function for WM_GETTEXT. 2014-11-18 22:10:24 +09:00
Sebastian Lackner 381adbf1c4 user32/tests: Add tests for internal window messages of FindWindowEx. 2014-11-18 22:09:47 +09:00
Sebastian Lackner 0cf86baf65 user32/tests: Remove unnecessary char array and add additional test in test_FindWindowEx. 2014-11-18 22:09:28 +09:00
Piotr Caban 3f1bbdcae3 server: Send mouse hardware messages to thread owning top-most window.
Also don't limit mouse message scope to top-most window when message
comes from SendInput or window that generated the event is
minimized/transparent.
2014-10-17 17:51:52 +09:00
Piotr Caban 0b273d279b user32/tests: Add cross-process mouse click test. 2014-09-29 18:55:33 +02:00
Piotr Caban c86bd676c7 user32/tests: Add cross-process WindowFromPoint tests. 2014-09-29 18:55:21 +02:00
Piotr Caban d137a95fda user32/tests: Add initial WindowFromPoint tests. 2014-09-29 18:55:16 +02:00
Alexandre Julliard ae6efdd45d user32/tests: Silence some noisy traces. 2014-06-17 10:58:55 +02:00
Alexandre Julliard a95651a5dc user32/tests: Remove some noisy traces. 2014-06-13 10:13:41 +02:00
Piotr Caban 7257b62bd1 user32: Try to activate topmost activable window in WINPOS_ActivateOtherWindow. 2014-06-11 16:09:01 +02:00
Vincent Povirk 417585661c server: Clear the queue's QS_SMRESULT bit when sending a new message. 2014-05-20 21:26:52 +02:00
Vincent Povirk abea10fa93 user32/tests: Add test for SendMessage race condition. 2014-05-19 18:55:55 +02:00
Vincent Povirk eb8406b810 user32/tests: Our popup test window loses capture to itself. 2014-04-25 10:16:15 +02:00
Piotr Caban 27374064b6 user32: Make it possible to activate a window with parent and no WS_CHILD flag in WS_NCLBUTTONDOWN function. 2014-04-02 19:06:09 +02:00