Commit Graph

2230 Commits

Author SHA1 Message Date
Hugh McMaster c87a78bc94 user32/tests: Add tests for VK_SPACE, Shift-Space and Ctrl-Space.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-01 21:10:22 +09:00
Gerald Pfeifer 1e803cb1df user32: Avoid shift overflow in nulldrv_GetKeyboardLayoutList.
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:51 +09:00
Andrey Gusev 8bfc9bd2ee Assorted typos fixes.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:30 +09:00
Alexandre Julliard bbc849df8d user32: Reduce the idle timeout before flushing surfaces to make it less noticeable.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 00:12:51 +09:00
Alexandre Julliard 023af7c3cb user32/tests: Fix a few msg test failures on Windows 7.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 00:12:50 +09:00
Alexandre Julliard 5e38c8743d user32/tests: Fix a few more menu test failures on Windows.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 00:12:50 +09:00
Nikolay Sivov 19d29f3ca5 user32: Don't overwrite 'cb' field with uninitialized data in DdeQueryConvInfo() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-24 22:58:44 +09:00
Nikolay Sivov 119d97e8d7 user32/tests: Some tests for SetScrollInfo().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 13:25:31 +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
Nikolay Sivov 5ab2999fbb user32/tests: Relax iCaptionWidth test to fix some failures.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-20 12:25:44 +09:00
Alexandre Julliard c82626a4c1 user32: Add workaround for removed SC_TASKLIST system menu item.
Word 95 assumes that the item exists.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 20:55:15 +09:00
Alexandre Julliard 8693805431 user32/tests: Fix a test that assumes that a menu handle is invalid.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 20:55:14 +09:00
Dmitry Timoshkov c0de7f8641 user32: Menu item with a "magic" bitmap should not have MFT_BITMAP type set.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 13:07:15 +09:00
Dmitry Timoshkov 5ef96fd5bc user32/tests: Add more tests for mixed menu with strings and bitmaps.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 13:07:13 +09:00
Hugh McMaster 11669fa5e2 Assorted spelling and grammar fixes.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 22:56:40 +09:00
Austin English 230217e4d2 user32: Use winediag debug channel for some error messages.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 10:58:40 +09:00
Andrew Eikum c465209cc1 user32: Use font default height if GetTextExtentPoint returns empty rectangle.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 21:32:56 +09:00
Nikolay Sivov f7468386a7 user32/tests: Use separate test window for each scrollbar test.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:13:58 +09:00
Alex Henrie 5b53c0b88b user32: Avoid double initialization.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 21:59:08 +09:00
Alex Henrie 6771fa22e9 user32: Remove redundant check for buf's existence.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 21:59:08 +09:00
Alex Henrie 4a3065c5d7 user32: Turn magic values into static constants.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 21:59:08 +09:00
Huw Davies e79684874d user32: Restore the dc's colours after sending WM_DRAWITEM.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-02 23:02:24 +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
Nikolay Sivov 8b353f5409 user32: Added a GetDisplayConfigBufferSizes stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 16:16:54 +09:00
Alex Henrie a3e4c69419 user32: Release capture before sending WM_COMMAND.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 21:07:56 +09:00
Dmitry Timoshkov 0fe60f83d2 user32: Always call BeginPaint/EndPaint when handling a WM_PAINT message for the button.
Python 3.5 installer creates windows with class "Button" that have 0x000e
button style, that causes infinite painting loops and inability to draw
the installer UI.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:39 +09:00
Nikolay Sivov 83a652a9d4 include: Add a couple of documented Toolbar messages definitions.
Thanks to Alan Feldman for pointing this out.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-19 12:20:56 +09:00
Joachim Priesner 0fc1753444 user32: msgbox: Rearrange buttons for correct tab order.
Tab order is the order of the controls in the dialog template, so
arrange them in a way that buttons appear in the correct order for all
possible combination of buttons (specified by the MB_* constants).

Signed-off-by: Joachim Priesner <joachim.priesner@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 00:53:21 +09:00
Joachim Priesner 217fe9cfad user32: msgbox: Make buttons an own control group.
Signed-off-by: Joachim Priesner <joachim.priesner@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 00:53:21 +09:00
Jactry Zeng b007a98e1a user32: Add driver entry point for FlashWindowEx.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 23:35:26 +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
Sebastian Lackner 240cf96235 user32: Use RtlIsCriticalSectionLockedByThread to check lock owner.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-11 13:47:42 +09:00
Joachim Priesner 175e714656 user32: Hide horizontal Listbox scroll bar if no horizontal extent is set.
Signed-off-by: Joachim Priesner <joachim.priesner@web.de>
2015-10-07 21:28:55 +09:00
Michael Müller 2be56fdc95 user32: Ignore lParam argument of WM_SIZE message for edit control.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-06 22:18:49 +09:00
Sebastian Lackner e4a3cd60df user32/tests: Add a test for sending WM_SIZE message to edit control.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-06 22:18:30 +09:00
Alex Henrie 7bbcc766ef user32: Pass num_steps=0 to alloc_icon_handle if is_ani=FALSE.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-06 22:17:57 +09:00
Alex Henrie 9c750bb956 user32: Remove unused parameter mask from create_alpha_bitmap.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-06 22:17:46 +09:00
Alex Henrie be5015fb74 user32: Remove unused parameter istep from release_icon_frame.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-06 22:17:35 +09:00
Alex Henrie d687512674 user32: Move misplaced break statement.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-06 22:17:23 +09:00
Alex Henrie 64e63f4550 user32: Remove always-false condition.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-06 22:16:37 +09:00
André Hentschel 83bfda7caf user32/tests: Allow tracing in menu tests.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
2015-10-02 18:11:31 +09:00
Alex Henrie a66f4e521c user32: Remove unused variable ani_icon_data from release_icon_frame.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-02 18:11:30 +09:00
Alex Henrie 50403fec1e user32: Replace release_icon_ptr with release_user_handle_ptr.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-02 18:11:30 +09:00
Thomas Faber 8a718259d3 user32: Use float literals for float operation. 2015-09-07 17:55:05 +09:00
Nikolay Sivov 873e12c87b user32/tests: Fix a test failure on Win8/Win10. 2015-08-24 14:42:13 +09:00
André Hentschel 3c9b8d7028 user32/tests: Add ARM and ARM64 arch strings. 2015-08-12 22:52:28 +09:00