aboutsummaryrefslogtreecommitdiff
path: root/src/samples/thmviewer/thmviewer.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-10-27 15:30:02 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-11-01 16:34:09 -0500
commitc092722a147940532b08f62403e182ef279f2c74 (patch)
tree2f4d85e26c3e13566ec7f1bf7b18a2de4430d628 /src/samples/thmviewer/thmviewer.cpp
parent3d73efba15565f5995a492e660dff72286e0b672 (diff)
downloadwix-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/samples/thmviewer/thmviewer.cpp')
-rw-r--r--src/samples/thmviewer/thmviewer.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/samples/thmviewer/thmviewer.cpp b/src/samples/thmviewer/thmviewer.cpp
index 1d941323..94b1ef55 100644
--- a/src/samples/thmviewer/thmviewer.cpp
+++ b/src/samples/thmviewer/thmviewer.cpp
@@ -312,13 +312,8 @@ static HRESULT CreateMainWindowClass(
312 ATOM atom = 0; 312 ATOM atom = 0;
313 WNDCLASSW wc = { }; 313 WNDCLASSW wc = { };
314 314
315 wc.lpfnWndProc = MainWndProc; 315 ThemeInitializeWindowClass(pTheme, &wc, MainWndProc, hInstance, THMVWR_WINDOW_CLASS_MAIN);
316 wc.hInstance = hInstance; 316
317 wc.hIcon = reinterpret_cast<HICON>(pTheme->hIcon);
318 wc.hCursor = ::LoadCursorW(NULL, (LPCWSTR)IDC_ARROW);
319 wc.hbrBackground = pTheme->rgFonts[pTheme->dwFontId].hBackground;
320 wc.lpszMenuName = NULL;
321 wc.lpszClassName = THMVWR_WINDOW_CLASS_MAIN;
322 atom = ::RegisterClassW(&wc); 317 atom = ::RegisterClassW(&wc);
323 if (!atom) 318 if (!atom)
324 { 319 {