@argumentum I found and fixed an issue with your _HiDpi_Ctrl_LazyInit() function on 64-bit systems:
Func _HiDpi_Ctrl_LazyInit($iCONTEXT = -2) ; under the current state of developnment, -2 is the best option for this UDF.
If $iCONTEXT <> Null Then
If Not ($iCONTEXT < -1 And $iCONTEXT > -5) Then $iCONTEXT = -2
;DllCall("user32.dll", "bool", "SetProcessDpiAwarenessContext", "int", $iCONTEXT) ; not working on 64-bit
DllCall("User32.dll", "bool", "SetProcessDpiAwarenessContext" , "HWND", $iCONTEXT) ; working on 64-bit
EndIf
_HiDpi_CtrlSetVarDPI( _HiDpi_GetDpiForWindow())
_HiDpi_CtrlSetVarRatio(_HiDpi_CtrlSetVarDPI() / 96)
EndFunc ;==>_HiDpi_Ctrl_LazyInit