mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +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);
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user