I didn't see any effect at all, on win7.
When needed, I do this,
Code: Select all
#SingleInstance, force
Gui, new, +hwndguiId
Dwm_SetWindowAttributeTransistionDisable(guiId,1)
Gui, show, w300 h200
Sleep,2000
Gui,destroy
Exitapp
Dwm_SetWindowAttributeTransistionDisable(hwnd,onOff)
{
;
; DWMWA_TRANSITIONS_FORCEDISABLED=3
; Use with DwmSetWindowAttribute. Enables or forcibly disables DWM transitions.
; The pvAttribute parameter points to a value of TRUE to disable transitions or FALSE to enable transitions.
;
dwAttribute:=3
cbAttribute:=4
VarSetCapacity(pvAttribute,4,0)
NumPut(onOff,pvAttribute,0,"Int")
hr:=DllCall("Dwmapi.dll\DwmSetWindowAttribute", "Uint", hwnd, "Uint", dwAttribute, "Uint", &pvAttribute, "Uint", cbAttribute)
return hr
}
This only affects the windows of choise, while
SystemParametersInfo wrote:
Retrieves or sets the value of one of the system-wide parameters.
Edit: Maybe I missed the point, is this related specifically to
Progress windows?