• Zhiyi Zhang's avatar
    uxtheme/tests: Add EnableThemeDialogTexture() tests. · 6f139def
    Zhiyi Zhang authored
    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: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    6f139def
system.c 89 KB