diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-10-27 15:30:02 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-11-01 16:34:09 -0500 |
commit | c092722a147940532b08f62403e182ef279f2c74 (patch) | |
tree | 2f4d85e26c3e13566ec7f1bf7b18a2de4430d628 /src/ext | |
parent | 3d73efba15565f5995a492e660dff72286e0b672 (diff) | |
download | wix-c092722a147940532b08f62403e182ef279f2c74.tar.gz wix-c092722a147940532b08f62403e182ef279f2c74.tar.bz2 wix-c092722a147940532b08f62403e182ef279f2c74.zip |
Add CS_HREDRAW and CS_VREDRAW to fix painting issues when resizing.
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp | 14 |
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."); |