Commit Graph

18 Commits

Author SHA1 Message Date
Jacek Caban 27c0b997f0 win32u: Move menu handle management from user32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-25 17:53:03 +01:00
Jacek Caban d5fd27761f win32u: Move NtUserSetFocus implementation from user32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-11 19:23:28 +01:00
Zhiyi Zhang b02405d799 uxtheme: Hook DefDlgProc() for dialog theming.
Fix controls on OpenMPT's channel setting dialog having incorrect background.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-24 10:18:31 +01:00
Zhiyi Zhang 9c9274990e uxtheme: Do not hook DefDlgProc() for theming.
Currently there is no need to hook DefDlgProc(). Tests show that dialog theming shouldn't be
implemented in DefDlgProc().

Also fix a double free bug because WM_DESTROY in UXTHEME_DefDlgProc() calls CloseThemeData() even
when the theme handle is not opened when handling WM_CREATE in UXTHEME_DefDlgProc(). The bug can
be demonstrated by running comctl32/tests/propsheet.c tests with Light theme.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-07 12:22:49 +01:00
Zhiyi Zhang b0e51ead0d uxtheme: Move themed dialog to uxtheme.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51137
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 18:49:55 +02:00
Piotr Caban 91eced0ce5 user32: Only store dialog focus when window is hidden or inactive. 2015-01-07 23:48:28 +01:00
Alex Henrie 4b67e6c778 user32: Correct dialog focus behavior. 2012-08-16 11:59:23 +02: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
Alexandre Julliard 2ea73fd709 user32: Remove the no longer needed WIN_ISDIALOG flag. 2009-12-23 21:13:58 +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
Alexandre Julliard b76f85872c user32: Use the correct type for the return value of DefDlgProcA/W. 2009-11-13 11:52:15 +01:00
Alexandre Julliard 76dcb0ecb9 user32: Reimplement DefDlgProc16 using message mapping functions. 2009-11-13 11:11:31 +01:00
Dmitry Timoshkov 96e44ddb78 user32: Return 0 from DefDlgProc and dialog loop for invalid dialog handles. 2009-08-12 12:53:25 +02:00
Maarten Lankhorst 7981d6c736 user32: Fix dialogs for 64-bits wine. 2008-12-03 11:28:25 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Alexandre Julliard d00d54ebeb user32: Get rid of winproc.h and move definitions in user_private.h. 2007-08-08 15:31:59 +02:00
Dmitry Timoshkov 8c5d169a20 user32: Add a test for DefDlgProc(WM_SETFOCUS), make the test pass under Wine. 2007-02-20 12:24:09 +01:00
Alexandre Julliard b8a2e3b8a4 user32: Renamed the user/ directory to user32. 2006-11-16 14:49:25 +01:00