Eric Pouech
f2b4634c18
comctl32/tests: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-28 21:30:19 +01:00
Zhiyi Zhang
1e8ce36e30
comctl32/tests: Remove WM_CTLCOLORSTATIC tests for property sheets.
...
The removed tests are covered by test_EnableThemeDialogTexture() in uxtheme/tests/system.c.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-21 09:24:49 +01:00
Alex Henrie
b173a96237
comctl32/tests: Use GetLocaleInfoA when the buffer size is in bytes (Coverity).
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-28 19:11:03 +01:00
Alex Henrie
8fd1bd9646
comctl32/tests: Mark smaller propsheet buffer as broken.
...
Fixes another testbot failure.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-27 15:00:54 +01:00
Alex Henrie
56a6a03918
comctl32/tests: Permit larger propsheet buffers.
...
Fixes a testbot failure on Windows 10 Hebrew.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-13 11:32:08 +01:00
Zhiyi Zhang
e8390a6c39
comctl32/propsheet: Return a pattern brush when handling WM_CTLCOLORSTATIC for theming.
...
Fix a regression from 2f1bbd8
that makes the static control for DPI sample text in winecfg not
refreshing its background when moving the DPI slider.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-07 12:22:54 +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
b1ccad4b5c
comctl32/propsheet: Handle WM_CTLCOLORSTATIC in the property sheet page window procedure.
...
Move themed WM_CTLCOLORSTATIC handling from UXTHEME_DefDlgProc() to the property sheet page window
procedure.
Fix a regression from 2f1bbd8
that makes the static controls in file open dialog to have black
background when using some themes.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51987
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-07 12:22:30 +01:00
Zhiyi Zhang
ee1b19aa16
comctl32/tests: Test WM_CTLCOLORSTATIC for themed property sheets.
...
These tests show that it's the themed property sheet page window procedure that sets device contexts
transparent and return a pattern brush created from the tab body part in a theme. Combined with
test_WM_CTLCOLORSTATIC() in dlls/comctl32/tests/static.c, we can conclude that UXTHEME_DefDlgProc()
shouldn't handle WM_CTLCOLORSTATIC.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-07 12:22:21 +01:00
Zhiyi Zhang
3c789e2f10
comctl32/tests: Add an optional message to avoid test failures.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-25 21:19:46 +01:00
Nikolay Sivov
4c86e860e6
comctl32/tests: Use wide strings literals.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-25 10:48:48 +02:00
Dmitry Timoshkov
4ee173dfdd
comctl32: Don't ignore page creation error for a non-modal propery sheet.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-18 20:49:56 +01:00
Dmitry Timoshkov
ca41fd8904
comctl32/tests: Add a test for passing dialog template with bad control class to PropertySheet.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-18 20:49:51 +01:00
Nikolay Sivov
3845cc10e8
comctl32/tests: Link to comctl32.dll dynamically.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 16:03:00 +01:00
Alex Henrie
b8d01f9e1e
comctl32/tests: Detect and handle an RTL locale.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-21 21:47:42 +01:00
Nikolay Sivov
1ec91f592e
comctl32/tests: Fully initialize message tests data.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 17:17:16 +02:00
Nikolay Sivov
429705eaf3
comctl32/propsheet: Implement PSPCB_ADDREF/PSPCB_RELEASE notifications.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 10:34:00 +01:00
Nikolay Sivov
a3aa217f03
comctl32/propsheet: Enforce minimal PROPSHEETPAGE structure size when creating a page.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 10:33:58 +01:00
Nikolay Sivov
ad7a1a0e3d
comctl32/tests: Some tests for property page initialization.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:33:39 +01:00
Peter Hater
a6661ba9ad
comctl32/propsheet: Added PSM_INSERTPAGE implementation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 11:37:01 +01:00
Sebastian Lackner
87a3ce056e
comctl32/tests: Add tests for PROPSHEET_InsertPage.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-17 12:24:58 +01:00
Nikolay Sivov
9d404ddac6
comctl32/propsheet: Double size of a template buffer passed to PSCB_PRECREATE.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-13 14:51:17 +01:00
Michael Stefaniuc
a16a270751
comctl32/tests: WC_DIALOG is already an INTATOM (PVS-Studio).
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 22:24:52 +09:00
Bernhard Übelacker
ccf2ea6179
comctl32/tests: Free memory used by property sheet page (Valgrind).
2015-06-18 21:41:02 +09:00
Huw Davies
dd856be316
comctl32/tests: Post a key-down message rather than use keybd_event.
2014-11-03 16:31:52 +09:00
Huw Davies
433df0d5d8
comctl32: Enable the appropriate wizard buttons before sending DM_SETDEFID.
2014-10-30 23:09:52 +09:00
Saulius Krasuckas
85aa34eea6
comctl32/tests: Make propsheet.c compile with -D__WINESRC__.
2013-11-08 12:45:52 +01:00
Nikolay Sivov
f8ce7ed978
comctl32/tests: Remove useless message tracing.
2013-06-06 10:43:03 +02:00
Ričardas Barkauskas
379d492b12
comctl32: Use index value if property sheet page isn't found.
2012-12-26 18:23:04 +01:00
Piotr Caban
21898b2fba
comctl32: Remove property sheet page that can't be initialized.
2012-08-29 20:13:48 +02:00
Francois Gouget
5464d5423a
comctl32/tests: Use the PROPSHEETHEADERA_V1_SIZE macros for compatibility with old comctl32 versions.
2011-09-09 16:10:31 +02:00
Francois Gouget
31a24ca7af
comctl32: Fix the wizard and property sheet dialog styles.
2011-09-08 20:08:06 +02:00
Francois Gouget
325275304c
comctl32/tests: Check the styles of the wizard and property sheet dialogs.
2011-09-08 20:07:51 +02:00
Francois Gouget
6deccab6c9
comctl32: Property sheets must be able to redraw themselves even if no page is selected.
2011-09-06 12:23:55 +02:00
André Hentschel
a355121414
user32: Fix for finding nested default buttons.
2011-07-28 19:54:46 +02:00
Michael Stefaniuc
11e780ea07
comctl32/tests: Don't cast NULL to an int.
2011-07-19 18:26:21 +02:00
Nikolay Sivov
a3ff177d7d
comctl32/tests: Simplify a workaround for old module versions, add basic PSM_ADDPAGE test.
2011-07-06 17:03:51 +02:00
Paul Vriens
a9c31ed90e
comctl32/tests: Fix shell32 test failures on NT4/W2K.
2010-11-23 14:16:22 +01:00
Bernhard Übelacker
43aa5f6b2e
comctl32: Test for window messages of a property sheet with custom dialog proc.
2010-11-08 18:12:57 +01:00
Alex Balut
32f240bfc1
comctl32/tests: Added a test that checks whether setting a custom default button in a property sheet works.
2010-06-07 16:43:34 +02:00
Paul Vriens
9e73769112
comctl32/tests: Fix some test failures on comctl32 4.70.
2009-11-19 12:29:30 +01:00
Paul Vriens
9bd6887372
comctl32/tests: Use A-functions.
2009-10-28 16:07:48 +01:00
Ričardas Barkauskas
a8f89a2ffa
comctl32/propsheet: Test and fix for crash processing PSM_INDEXTOHWND with no longer valid handle.
2009-10-19 14:44:57 +02:00
Jan de Mooij
2f8e5da90f
comctl32/propsheet: Update position of hidden buttons too.
2009-09-01 17:37:12 +02:00
Alexandre Julliard
d649320045
comctl32/tests: Fix the property sheet tests on older Windows versions.
2009-08-18 14:49:21 +02:00
Andrew Eikum
70f4ce36a0
comctl32/tests: Add tests for wizard dialog navigation.
2009-08-14 13:59:08 +02:00
Michael Stefaniuc
ac37f1b7fb
comctl32/tests: Do not cast the IDC_* defines to a LPSTR.
2009-01-05 12:35:06 +01:00
Vincent Povirk
2893294f4b
comctl32: Disable owner of modal property sheets before creating the dialog.
2008-07-09 12:40:08 +02:00
Vincent Povirk
57b25bcf48
comctl32: Add test for disabling owner of modal property sheets.
2008-07-09 12:40:03 +02:00
Aric Stewart
5688ffb7ab
comctl32: Propsheet exception fix.
...
Do not attempt to draw a page during WM_PAINT if there is no active page.
2007-04-04 16:16:53 +02:00