Handle DPI change gracefully (#786)

* Ensure icon in context menu is not leaked

* Hande theme/dpi size change gracefully
This commit is contained in:
Chris Davis
2019-11-26 19:45:18 -08:00
committed by GitHub
parent ae4413d0aa
commit 8e8be502fd

View File

@@ -554,6 +554,10 @@ INT_PTR CPowerRenameUI::_DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
bRet = _OnNotify(wParam, lParam); bRet = _OnNotify(wParam, lParam);
break; break;
case WM_THEMECHANGED:
_OnSize(SIZE_RESTORED);
break;
case WM_SIZE: case WM_SIZE:
_OnSize(wParam); _OnSize(wParam);
break; break;