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/test | |
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/test')
-rw-r--r-- | src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp b/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp index e5ff9131..b502285f 100644 --- a/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp +++ b/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp | |||
@@ -130,30 +130,24 @@ private: | |||
130 | HRESULT CreateTestingWindow() | 130 | HRESULT CreateTestingWindow() |
131 | { | 131 | { |
132 | HRESULT hr = S_OK; | 132 | HRESULT hr = S_OK; |
133 | HICON hIcon = reinterpret_cast<HICON>(m_pBafTheme->hIcon); | ||
134 | WNDCLASSW wc = { }; | 133 | WNDCLASSW wc = { }; |
135 | int x = CW_USEDEFAULT; | 134 | int x = CW_USEDEFAULT; |
136 | int y = CW_USEDEFAULT; | 135 | int y = CW_USEDEFAULT; |
137 | POINT ptCursor = { }; | 136 | POINT ptCursor = { }; |
138 | 137 | ||
138 | ThemeInitializeWindowClass(m_pBafTheme, &wc, CBafThmUtilTesting::TestingWndProc, m_hModule, BAFTHMUTILTESTING_WINDOW_CLASS); | ||
139 | |||
139 | // If the theme did not provide an icon, try using the icon from the bundle engine. | 140 | // If the theme did not provide an icon, try using the icon from the bundle engine. |
140 | if (!hIcon) | 141 | if (!wc.hIcon) |
141 | { | 142 | { |
142 | HMODULE hBootstrapperEngine = ::GetModuleHandleW(NULL); | 143 | HMODULE hBootstrapperEngine = ::GetModuleHandleW(NULL); |
143 | if (hBootstrapperEngine) | 144 | if (hBootstrapperEngine) |
144 | { | 145 | { |
145 | hIcon = ::LoadIconW(hBootstrapperEngine, MAKEINTRESOURCEW(1)); | 146 | wc.hIcon = ::LoadIconW(hBootstrapperEngine, MAKEINTRESOURCEW(1)); |
146 | } | 147 | } |
147 | } | 148 | } |
148 | 149 | ||
149 | // Register the window class and create the window. | 150 | // Register the window class and create the window. |
150 | wc.lpfnWndProc = CBafThmUtilTesting::TestingWndProc; | ||
151 | wc.hInstance = m_hModule; | ||
152 | wc.hIcon = hIcon; | ||
153 | wc.hCursor = ::LoadCursorW(NULL, (LPCWSTR)IDC_ARROW); | ||
154 | wc.hbrBackground = m_pBafTheme->rgFonts[m_pBafTheme->dwFontId].hBackground; | ||
155 | wc.lpszMenuName = NULL; | ||
156 | wc.lpszClassName = BAFTHMUTILTESTING_WINDOW_CLASS; | ||
157 | if (!::RegisterClassW(&wc)) | 151 | if (!::RegisterClassW(&wc)) |
158 | { | 152 | { |
159 | ExitWithLastError(hr, "Failed to register window."); | 153 | ExitWithLastError(hr, "Failed to register window."); |