Module: wine Branch: master Commit: 6f139defeeb4bc7dc0621da9f565bc7562369079 URL: https://source.winehq.org/git/wine.git/?a=commit;h=6f139defeeb4bc7dc0621da9f...
Author: Zhiyi Zhang zzhang@codeweavers.com Date: Fri Jan 21 15:47:30 2022 +0800
uxtheme/tests: Add EnableThemeDialogTexture() tests.
These tests show that DefDlgProcA/W() are hooked to implemented dialog theming, using a pattern brush created from the tab body part. For dialogs that need theming, EnableThemeDialogTexture(ETDT_USETABTEXTURE) or EnableThemeDialogTexture(ETDT_USEAEROWIZARDTABTEXTURE) is called for the dialog. And then static or button controls in comctl32 v6 call EnableThemeDialogTexture(ETDT_ENABLE) to activate it. A WM_ERASEBKGND is also needed to activate dialog theming. test_WM_CTLCOLORSTATIC() in dlls/comctl32/tests/static.c doesn't send this message after EnableThemeDialogTexture() calls, which misdirected me to think that DefDlgProcA/W() are not hooked.
Signed-off-by: Zhiyi Zhang zzhang@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/uxtheme/tests/system.c | 658 ++++++++++++++++++++++++++++++++++++++++++++ dlls/uxtheme/tests/v6util.h | 131 +++++++++ 2 files changed, 789 insertions(+)
Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=6f139defeeb4bc7dc0621...