comctl32: Prevent double theme closing when WM_DESTROY is called many times.
This commit is contained in:
parent
7d17bc55eb
commit
7e3103199c
|
@ -54,6 +54,8 @@ LRESULT CALLBACK THEMING_DialogSubclassProc (HWND hWnd, UINT msg,
|
|||
|
||||
case WM_DESTROY:
|
||||
CloseThemeData ( theme );
|
||||
SetWindowTheme( hWnd, NULL, NULL );
|
||||
OpenThemeData( hWnd, NULL );
|
||||
return THEMING_CallOriginalClass (hWnd, msg, wParam, lParam);
|
||||
|
||||
case WM_THEMECHANGED:
|
||||
|
|
Loading…
Reference in New Issue