diff options
Diffstat (limited to 'src/samples/thmviewer/thmviewer.cpp')
-rw-r--r-- | src/samples/thmviewer/thmviewer.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/samples/thmviewer/thmviewer.cpp b/src/samples/thmviewer/thmviewer.cpp index e593d6ad..1d941323 100644 --- a/src/samples/thmviewer/thmviewer.cpp +++ b/src/samples/thmviewer/thmviewer.cpp | |||
@@ -353,16 +353,7 @@ static LRESULT CALLBACK MainWndProc( | |||
353 | case WM_NCDESTROY: | 353 | case WM_NCDESTROY: |
354 | DecrementHandleTheme(pHandleTheme); | 354 | DecrementHandleTheme(pHandleTheme); |
355 | ::SetWindowLongPtrW(hWnd, GWLP_USERDATA, 0); | 355 | ::SetWindowLongPtrW(hWnd, GWLP_USERDATA, 0); |
356 | break; | 356 | ::PostQuitMessage(0); |
357 | |||
358 | case WM_CREATE: | ||
359 | { | ||
360 | HRESULT hr = ThemeLoadControls(vpTheme); | ||
361 | if (FAILED(hr)) | ||
362 | { | ||
363 | return -1; | ||
364 | } | ||
365 | } | ||
366 | break; | 357 | break; |
367 | 358 | ||
368 | case WM_THMVWR_THEME_LOAD_BEGIN: | 359 | case WM_THMVWR_THEME_LOAD_BEGIN: |
@@ -377,10 +368,6 @@ static LRESULT CALLBACK MainWndProc( | |||
377 | OnNewTheme(vpTheme, hWnd, reinterpret_cast<HANDLE_THEME*>(lParam)); | 368 | OnNewTheme(vpTheme, hWnd, reinterpret_cast<HANDLE_THEME*>(lParam)); |
378 | return 0; | 369 | return 0; |
379 | 370 | ||
380 | case WM_DESTROY: | ||
381 | ::PostQuitMessage(0); | ||
382 | break; | ||
383 | |||
384 | case WM_THMUTIL_LOADING_CONTROL: | 371 | case WM_THMUTIL_LOADING_CONTROL: |
385 | return OnThemeLoadingControl(reinterpret_cast<THEME_LOADINGCONTROL_ARGS*>(wParam), reinterpret_cast<THEME_LOADINGCONTROL_RESULTS*>(lParam)); | 372 | return OnThemeLoadingControl(reinterpret_cast<THEME_LOADINGCONTROL_ARGS*>(wParam), reinterpret_cast<THEME_LOADINGCONTROL_RESULTS*>(lParam)); |
386 | 373 | ||