Gets and sets the dimming rate for windows that use the DDW (Dim Disabled Windows) feature.
The DDW feature is used to automatically dim disabled windows. For more details, see
Dim disabled windows.
// -- Project initialization
// Change dimming rate
WinRateDDW(40)
// Enable the DDW feature for all the application windows
WinActivateDDW(True)
Syntax
<Result>: Integer
Current dimming rate (between 0 and 100). The default dimming rate is set to 18%.
Changing the dimming rate Hide the details
<Result> = WinRateDDW(<Dimming rate>)
<Result>: Integer
Initial dimming rate (between 0 and 100).
<Dimming rate>: Integer
New dimming rate (between 0 and 100). The maximum value (100) will be used if the specified value is greater than 100. WinRateDDW will have no effect if a value less than 0 is specified. The default dimming rate is set to 18%.
Remarks
Configuration of the end-user computers
Depending on the configuration of the end-user computers, the DDW feature may have no effect.
Indeed, the DDW feature is affected by the characteristics of the video card, the speed of the processor, ...
If a problem occurs, ask the end users to update the driver of their video card.
Remark: To operate, the end-user computers must:
- have a display mode greater than 256 colors.
- be in 32-bit or 64-bit mode.
- be running Windows 2000 or later.
- use the maximum level of "Hardware acceleration" for the video card (advanced display properties of the computer).
Enabling the DDW feature (DDW)