Commit Graph

75 Commits

Author SHA1 Message Date
Vijay Kiran Kamuju 7a6b00dc25 user32: Add DlgDirList wildcard checks.
Based on a patch from Christian Lupien.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=8226
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-27 22:21:17 +01:00
Nikolay Sivov 47a44e6d9c user32/dialog: Fix setting negative dialog item ids.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46494
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-24 19:39:46 +01:00
Alistair Leslie-Hughes d8a27a78dd user32: Don't reset focus if current dialog is a child.
The standard File Open Dialog creates an empty WS_EX_CONTROLPARENT
child dialog which shouldn't receive focus.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46215
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-17 22:35:14 +01:00
Dmitry Timoshkov 44f89322ba user32: If there is no dialog controls to set focus to then set focus to dialog itself.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-28 09:36:08 +01:00
Dmitry Timoshkov b1b8fb77be user32: Add support for navigating a group of radio buttons using a keyboard.
The patch approximates the behaviour observed in the message tests
but still doesn't make the message tests pass without failures.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-27 09:02:04 +01:00
Dmitry Timoshkov 5277aa8f64 user32: Fix the pointer to custom dialog control data.
Suggested by vendor2013@herdsoft.com.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-01 19:12:23 -07:00
Alexandre Julliard a525631920 user32: Scale dialog base units based on DPI awareness.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 12:06:13 +02:00
Zhiyi Zhang 608aa7f3d7 user32: Send notification for the focused button in IsDialogMessage().
When handling WM_KEYDOWN,VK_RETURN messages from a dialog hwnd in
IsDialogMessage(), if the focused button is in the dialog, send a BN_CLICKED
notification to the dialog proc. This also make it possible for the
default button with an id larger than 0xFFFF in the dialog to receive
the correct BN_CLICKED notification, which has a null lParam before this.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-16 21:28:45 +02:00
Huw Davies da943f2c08 user32: Avoid using the comma operator in a while condition.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-04 22:04:27 +02:00
Michael Stefaniuc e8411d22d5 user32: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 16:02:53 +02: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
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
Nikolay Sivov 17987c589f user32: Handle invalid dialog handles in IsDialogMessage().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-17 11:53:41 +09:00
Michael Stefaniuc 07ada9a85b user32: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 19:59:30 +09:00
Jacek Caban 36b64321b2 user32: Use the original owner used to create the dialog for WM_ENTERIDLE messages.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 22:09:30 +09:00
Jacek Caban fc4b906d78 user32: Don't enable owner in DIALOG_DoDialogBox.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 22:09:27 +09:00
Jacek Caban 2f8f9d20aa user32: Use GWLP_HWNDPARENT to find an owner in EndDialog.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 22:09:25 +09:00
Jacek Caban 9da0c00a68 user32: Use top level window as dialog parent for modal dialogs.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 22:09:22 +09:00
Jacek Caban d75991d80e user32: Removed unused owner argument.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 14:19:06 +09:00
Jacek Caban 0d7116b968 user32: Use proper window as dialog owner.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 14:18:16 +09:00
Jacek Caban 142133ae6c user32: Always enable owner window in EndDialog.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-26 19:54:34 +09:00
Piotr Caban 73ee2a8b4f user32: Select text control content while setting dialog focus.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 00:49:11 +09:00
Alex Henrie d9c8effbf3 user32: Avoid double initialization in IsDialogMessageW.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-01 17:53:39 +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
Piotr Caban 6c5d4cb07e user32: Only use DIALOGINFO->hwndFocus to store last focus of inactive windows. 2015-02-06 00:28:34 +09:00
Michael Stefaniuc 1e5328c77c user32: Remove superfluous function pointer casts. 2012-09-20 19:22:59 +02:00
Dmitry Timoshkov 38387dcffe user32: IsDialogMessage should allow control ids other than IDOK when processing WM_KEYDOWN. 2012-03-29 20:49:19 +02:00
Dmitry Timoshkov 2455b3815a user32: Strip WS_CAPTION|WS_SYSMENU when a dialog has DS_CONTROL style set. 2011-12-12 11:13:23 +01:00
Rico Schüller b83d322dba d3dx9: Implement D3DXSHAdd(). 2011-12-12 10:19:30 +01:00
Dmitry Timoshkov 1830739118 user32: Strip WS_CAPTION|WS_SYSMENU when a dialog has DS_CONTROL style set. 2011-12-12 10:19:26 +01:00
Dmitry Timoshkov 18576b36e4 user32: Add the tests for dialog window styles, make them pass under Wine. 2011-12-07 17:50:00 +01:00
Alex Henrie 59c398b8ed user32: If a dialog has no tab-accessible controls, set focus to first control (with tests). 2011-12-05 20:12:14 +01:00
Erich Hoover d202990851 user32: Prioritize focus for dialog owner on EndDialog. 2011-11-18 15:37:05 +01:00
Dmitry Timoshkov eb0576ba59 user32: Issue a warning when dialog control creation fails. 2011-11-17 11:37:41 +01:00
Dmitry Timoshkov 2429ef905c user32: Dialog creation code should force WS_CHILD style for dialog controls. 2011-11-15 19:37:33 +01:00
André Hentschel a355121414 user32: Fix for finding nested default buttons. 2011-07-28 19:54:46 +02:00
Alexandre Julliard ad32b28ac0 user32: Avoid accessing the dialog info of a destroyed window. 2011-04-06 13:01:20 +02:00
Dmitry Timoshkov bb411cfb65 user32: DefDlgProc on WM_QUIT should repost it and terminate the dialog message loop. 2011-04-05 13:36:56 +02:00
Vladimir Panteleev 592d994f00 user32: Fix VK_RETURN handling in IsDialogMessage for dialogs without an IDOK. 2010-09-15 17:05:54 -05:00
Michael Stefaniuc bf7241c125 user32: Avoid using long. 2010-05-21 14:37:53 +02:00
Andrew Eikum 17789c1636 Revert "user32: Don't use DLGTEMPLATE's ExStyle when creating dialogs.".
This reverts commit 897f11d331.
2010-05-19 11:17:55 +02:00
Andrew Eikum 897f11d331 user32: Don't use DLGTEMPLATE's ExStyle when creating dialogs. 2010-05-08 13:12:49 +02:00
Henri Verbeet 6ee4a87ad6 user32: Also show dialogs right after a WM_TIMER message. 2010-03-02 14:29:21 +01:00
Andrew Nguyen 0b23012867 user32: Ensure that WM_INITDIALOG passes the first tabstop control handle to the dialog procedure. 2010-02-23 12:09:50 +01:00
Alexandre Julliard a64765f673 user32: Don't overwrite the default button id when creating the dialog structure. 2010-02-17 11:43:34 +01:00
Dmitry Timoshkov 9e93906658 user32: In a DLGTEMPLATEEX resource dialog version goes before signature. 2010-02-09 17:13:36 +01:00
Michael Stefaniuc 0a22cd2b8f user32: Avoid using HIWORD() on atoms/resources. 2010-02-04 13:39:27 +01:00
Alexandre Julliard 2ea73fd709 user32: Remove the no longer needed WIN_ISDIALOG flag. 2009-12-23 21:13:58 +01:00
Alexandre Julliard 7f11441af9 user32: Duplicate DIALOG_Enable/DisableOwner implementation on the 16-bit side. 2009-12-23 19:33:26 +01:00
Alexandre Julliard b615656f00 user32: Get rid of the 16-bit dialog heap.
Edit controls don't allocate memory on the 16-bit heap anyway.
2009-12-22 15:35:15 +01:00