Helgef wrote:as is stated in the documentation
Is it? The quoted documentation only says that A_GuiWidth will have a particular value in a specific example scenario.
A_GuiWidth is calculated from the width passed by WM_SIZE, with the current setting for DPIScale. It's not that it
doesn't reflect changes, but that it makes the opposite change. In fact, it's possible that DPI scaling wasn't even turned on when the GUI was created, but was turned on prior to GuiSize being called. For example,
Code: Select all
Gui -DPIScale
Gui Show, Hide w500
GuiSize:
Gui +DPIScale
MsgBox % A_GuiWidth
ExitApp
This shows 333 for me on my current monitor.