ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Menu's DPI scale failed after first click.

Open suyangzuo opened this issue 8 months ago • 2 comments

System information

  • Windows OS version: Windows 11 24H2
  • ImageGlass version: 9.2.0.1208
  • ImageGlass release: Classic
  • I have 2 monitors, first is 3840 × 2160 with 150%, second is 3840 × 2400 with 200%, and ImageGlass is running on second.

To Reproduce

Steps to reproduce the behavior:

  1. Click "Main Menu"
  2. Click "Main Menu" again

Actual behavior

Menu's DPI scale failed

Expected behavior

Menu should keep the DPI scale no matter how many times the menu was clicked

Screenshots / Video / Sample image file

Image

suyangzuo avatar Apr 11 '25 03:04 suyangzuo

This is WinForms framework issue. I don't have a solution. ToolStripMenu control is not scaled properly when DPI changed. It does not receive WM_DPICHANGED message from Windows as well.

Just hope that in next version of .NET, Microsoft will improve the DPI scaling for WinForms

d2phap avatar Apr 12 '25 02:04 d2phap