From c092722a147940532b08f62403e182ef279f2c74 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 27 Oct 2021 15:30:02 -0500 Subject: Add CS_HREDRAW and CS_VREDRAW to fix painting issues when resizing. --- src/samples/thmviewer/thmviewer.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/samples/thmviewer/thmviewer.cpp') 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( ATOM atom = 0; WNDCLASSW wc = { }; - wc.lpfnWndProc = MainWndProc; - wc.hInstance = hInstance; - wc.hIcon = reinterpret_cast(pTheme->hIcon); - wc.hCursor = ::LoadCursorW(NULL, (LPCWSTR)IDC_ARROW); - wc.hbrBackground = pTheme->rgFonts[pTheme->dwFontId].hBackground; - wc.lpszMenuName = NULL; - wc.lpszClassName = THMVWR_WINDOW_CLASS_MAIN; + ThemeInitializeWindowClass(pTheme, &wc, MainWndProc, hInstance, THMVWR_WINDOW_CLASS_MAIN); + atom = ::RegisterClassW(&wc); if (!atom) { -- cgit v1.2.3-55-g6feb