aboutsummaryrefslogtreecommitdiff
path: root/src/thmviewer/thmviewer.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-07-06 19:56:06 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-07-06 21:40:29 +1000
commit9034d33599132a705f5852a4258affe97f12e5cd (patch)
treee57e37ed3031470957918fafa8b786a21068838d /src/thmviewer/thmviewer.cpp
parent5f89a76d42dd9d132f4454e196e4f26fd65333ee (diff)
downloadwix-9034d33599132a705f5852a4258affe97f12e5cd.tar.gz
wix-9034d33599132a705f5852a4258affe97f12e5cd.tar.bz2
wix-9034d33599132a705f5852a4258affe97f12e5cd.zip
Update to latest thmutil.
Diffstat (limited to 'src/thmviewer/thmviewer.cpp')
-rw-r--r--src/thmviewer/thmviewer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/thmviewer/thmviewer.cpp b/src/thmviewer/thmviewer.cpp
index adad3f50..f83182d3 100644
--- a/src/thmviewer/thmviewer.cpp
+++ b/src/thmviewer/thmviewer.cpp
@@ -100,8 +100,8 @@ int WINAPI wWinMain(
100 hr = CreateMainWindowClass(hInstance, vpTheme, &atom); 100 hr = CreateMainWindowClass(hInstance, vpTheme, &atom);
101 ExitOnFailure(hr, "Failed to create main window."); 101 ExitOnFailure(hr, "Failed to create main window.");
102 102
103 hWnd = ::CreateWindowExW(0, reinterpret_cast<LPCWSTR>(atom), vpTheme->sczCaption, vpTheme->dwStyle, CW_USEDEFAULT, CW_USEDEFAULT, vpTheme->nWidth, vpTheme->nHeight, HWND_DESKTOP, NULL, hInstance, NULL); 103 hr = ThemeCreateParentWindow(vpTheme, 0, reinterpret_cast<LPCWSTR>(atom), vpTheme->sczCaption, vpTheme->dwStyle, CW_USEDEFAULT, CW_USEDEFAULT, HWND_DESKTOP, hInstance, NULL, THEME_WINDOW_INITIAL_POSITION_DEFAULT, &hWnd);
104 ExitOnNullWithLastError(hWnd, hr, "Failed to create window."); 104 ExitOnFailure(hr, "Failed to create window.");
105 105
106 if (!sczThemeFile) 106 if (!sczThemeFile)
107 { 107 {
@@ -353,11 +353,11 @@ static LRESULT CALLBACK MainWndProc(
353 353
354 case WM_CREATE: 354 case WM_CREATE:
355 { 355 {
356 HRESULT hr = ThemeLoadControls(vpTheme, hWnd, vrgInitControls, countof(vrgInitControls)); 356 HRESULT hr = ThemeLoadControls(vpTheme, vrgInitControls, countof(vrgInitControls));
357 if (FAILED(hr)) 357 if (FAILED(hr))
358 { 358 {
359 return -1; 359 return -1;
360 } 360 }
361 } 361 }
362 break; 362 break;
363 363