mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
Handle DPI change gracefully (#786)
* Ensure icon in context menu is not leaked * Hande theme/dpi size change gracefully
This commit is contained in:
@@ -554,6 +554,10 @@ INT_PTR CPowerRenameUI::_DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
bRet = _OnNotify(wParam, lParam);
|
||||
break;
|
||||
|
||||
case WM_THEMECHANGED:
|
||||
_OnSize(SIZE_RESTORED);
|
||||
break;
|
||||
|
||||
case WM_SIZE:
|
||||
_OnSize(wParam);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user