diff options
| author | Rob Mensching <rob@firegiant.com> | 2026-01-06 22:59:35 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2026-01-07 16:25:33 -0800 |
| commit | b337ce4678a5c66c7a2edc2bf9f87a71b4916b1b (patch) | |
| tree | a0d807245cd7019dde71051bd9e8de9a39e313a4 /src/libs | |
| parent | 164ea64ea05c1298979cadda1842feaf86a1bda9 (diff) | |
| download | wix-main.tar.gz wix-main.tar.bz2 wix-main.zip | |
Fixes 8104
Diffstat (limited to 'src/libs')
| -rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/thmutil.h | 13 | ||||
| -rw-r--r-- | src/libs/dutil/WixToolset.DUtil/thmutil.cpp | 22 |
2 files changed, 35 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/thmutil.h b/src/libs/dutil/WixToolset.DUtil/inc/thmutil.h index 45e4fc51..14e20c0d 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/thmutil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/thmutil.h | |||
| @@ -567,6 +567,19 @@ void DAPI ThemeInitializeWindowClass( | |||
| 567 | ); | 567 | ); |
| 568 | 568 | ||
| 569 | /******************************************************************** | 569 | /******************************************************************** |
| 570 | ThemeInitializeWindowClassEx - sets defaults for the window class | ||
| 571 | from the given theme. | ||
| 572 | |||
| 573 | *******************************************************************/ | ||
| 574 | void DAPI ThemeInitializeWindowClassEx( | ||
| 575 | __in THEME* pTheme, | ||
| 576 | __in WNDCLASSEXW* pWndClass, | ||
| 577 | __in WNDPROC pfnWndProc, | ||
| 578 | __in HINSTANCE hInstance, | ||
| 579 | __in LPCWSTR wzClassName | ||
| 580 | ); | ||
| 581 | |||
| 582 | /******************************************************************** | ||
| 570 | ThemeCreateParentWindow - creates a parent window for the theme. | 583 | ThemeCreateParentWindow - creates a parent window for the theme. |
| 571 | 584 | ||
| 572 | *******************************************************************/ | 585 | *******************************************************************/ |
diff --git a/src/libs/dutil/WixToolset.DUtil/thmutil.cpp b/src/libs/dutil/WixToolset.DUtil/thmutil.cpp index a7a7e45b..4482c96e 100644 --- a/src/libs/dutil/WixToolset.DUtil/thmutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/thmutil.cpp | |||
| @@ -856,6 +856,28 @@ DAPI_(void) ThemeInitializeWindowClass( | |||
| 856 | } | 856 | } |
| 857 | 857 | ||
| 858 | 858 | ||
| 859 | DAPI_(void) ThemeInitializeWindowClassEx( | ||
| 860 | __in THEME* pTheme, | ||
| 861 | __in WNDCLASSEXW* pWndClass, | ||
| 862 | __in WNDPROC pfnWndProc, | ||
| 863 | __in HINSTANCE hInstance, | ||
| 864 | __in LPCWSTR wzClassName | ||
| 865 | ) | ||
| 866 | { | ||
| 867 | pWndClass->cbSize = sizeof(WNDCLASSEXW); | ||
| 868 | pWndClass->style = CS_HREDRAW | CS_VREDRAW; | ||
| 869 | pWndClass->cbWndExtra = DLGWINDOWEXTRA; | ||
| 870 | pWndClass->hCursor = ::LoadCursorW(NULL, (LPCWSTR)IDC_ARROW); | ||
| 871 | |||
| 872 | pWndClass->lpfnWndProc = pfnWndProc; | ||
| 873 | pWndClass->hInstance = hInstance; | ||
| 874 | pWndClass->lpszClassName = wzClassName; | ||
| 875 | |||
| 876 | pWndClass->hIcon = reinterpret_cast<HICON>(pTheme->hIcon); | ||
| 877 | pWndClass->hbrBackground = pTheme->rgFonts[pTheme->dwFontId].hBackground; | ||
| 878 | } | ||
| 879 | |||
| 880 | |||
| 859 | DAPI_(HRESULT) ThemeCreateParentWindow( | 881 | DAPI_(HRESULT) ThemeCreateParentWindow( |
| 860 | __in THEME* pTheme, | 882 | __in THEME* pTheme, |
| 861 | __in DWORD dwExStyle, | 883 | __in DWORD dwExStyle, |
