Windows created by CreateWindowEx also appear to be affected.
The invisible borders are 5 pixels thick.
You can see this clearly when you use WinMove to set them to the same dimensions.
Another difference is that in AHK v2, the title bar is taller.
How can I get rid of the invisible borders and fix the title bar, to make the GUI look like it did in AHK v1? Thanks.
Code: Select all
; AHK v1 demo GUI:
Gui, Show, w300 h300
WinGetPos, X, Y, W, H, % A_ScriptName
MsgBox, % W " " H ; 306 329
WinMove, % A_ScriptName,, 300, 300, 300, 300
return
; AHK v2 demo GUI:
Gui().Show("w300 h300")
WinGetPos(&X, &Y, &W, &H, A_ScriptName)
MsgBox(W " " H) ; 316 339
WinMove(300, 300, 300, 300, A_ScriptName)
return