aboutsummaryrefslogtreecommitdiff
path: root/src/thmviewer/thmviewer.cpp
diff options
context:
space:
mode:
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