DSetBrightness
(Available for flat panel only)
Purpose Use
Syntax
DWORD DSetBrightness (hdc, nDisplay, Brightness)
Return value
DWORD –
otherwise, operating system error code.
Example This example sets the brightness of the panel.
#include <mdpcint.h>
{
HDC
UWORD
DWORD
DWORD
dwRetCode = DSetBrightness (NULL, nDisplay,
return dwRetCode;
}
See also
DGetBrightness
DSetBrightness
Parameter Type
HDC
UWORD
DWORD
zero (0) if function completed successfully;
hdc;
nDisplay = (UWORD) Win2000DisplayNum |
WIN2K_DISPLAY_NUMBER;
dwRetCode;
dwBrightness = 0;/* Set to full
to set the brightness of the flat panel.
Name
Description
NULL
hdc
device.
Target display.
nDisplay
Contains the new brightness
Brightness
setting for the flat panel.
Valid settings are 0 (zero)
to 255, with 0 (zero) being
full brightness.
brightness */
dwBrightness);
DSetBrightness | 33
or
of target
hdc