aboutsummaryrefslogtreecommitdiff
path: root/src/ext
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext')
-rw-r--r--src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp b/src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp
index cdb9d017..23158a1c 100644
--- a/src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp
+++ b/src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp
@@ -2647,31 +2647,25 @@ private:
2647 HRESULT CreateMainWindow() 2647 HRESULT CreateMainWindow()
2648 { 2648 {
2649 HRESULT hr = S_OK; 2649 HRESULT hr = S_OK;
2650 HICON hIcon = reinterpret_cast<HICON>(m_pTheme->hIcon);
2651 WNDCLASSW wc = { }; 2650 WNDCLASSW wc = { };
2652 DWORD dwWindowStyle = 0; 2651 DWORD dwWindowStyle = 0;
2653 int x = CW_USEDEFAULT; 2652 int x = CW_USEDEFAULT;
2654 int y = CW_USEDEFAULT; 2653 int y = CW_USEDEFAULT;
2655 POINT ptCursor = { }; 2654 POINT ptCursor = { };
2656 2655
2656 ThemeInitializeWindowClass(m_pTheme, &wc, CWixStandardBootstrapperApplication::WndProc, m_hModule, WIXSTDBA_WINDOW_CLASS);
2657
2657 // If the theme did not provide an icon, try using the icon from the bundle engine. 2658 // If the theme did not provide an icon, try using the icon from the bundle engine.
2658 if (!hIcon) 2659 if (!wc.hIcon)
2659 { 2660 {
2660 HMODULE hBootstrapperEngine = ::GetModuleHandleW(NULL); 2661 HMODULE hBootstrapperEngine = ::GetModuleHandleW(NULL);
2661 if (hBootstrapperEngine) 2662 if (hBootstrapperEngine)
2662 { 2663 {
2663 hIcon = ::LoadIconW(hBootstrapperEngine, MAKEINTRESOURCEW(1)); 2664 wc.hIcon = ::LoadIconW(hBootstrapperEngine, MAKEINTRESOURCEW(1));
2664 } 2665 }
2665 } 2666 }
2666 2667
2667 // Register the window class and create the window. 2668 // Register the window class and create the window.
2668 wc.lpfnWndProc = CWixStandardBootstrapperApplication::WndProc;
2669 wc.hInstance = m_hModule;
2670 wc.hIcon = hIcon;
2671 wc.hCursor = ::LoadCursorW(NULL, (LPCWSTR)IDC_ARROW);
2672 wc.hbrBackground = m_pTheme->rgFonts[m_pTheme->dwFontId].hBackground;
2673 wc.lpszMenuName = NULL;
2674 wc.lpszClassName = WIXSTDBA_WINDOW_CLASS;
2675 if (!::RegisterClassW(&wc)) 2669 if (!::RegisterClassW(&wc))
2676 { 2670 {
2677 ExitWithLastError(hr, "Failed to register window."); 2671 ExitWithLastError(hr, "Failed to register window.");