36 | DGetContrast
DGetContrast
(Available for flat panel only)
Purpose Use
DGetContrast
to return the current contrast setting of
the flat panel.
Syntax
DWORD DGetContrast (hdc, nDisplay, pContrast)
Return value
DWORD –
zero (0) if function completed successfully;
otherwise, operating system error code.
Example This example returns the contrast of a panel.
#include <mdpcint.h>
{
HDC
hdc;
UWORD
nDisplay = (UWORD) Win2000DisplayNum |
WIN2K_DISPLAY_NUMBER;
DWORD
dwRetCode;
DWORD
dwContrast;
dwRetCode = DGetContrast (NULL, nDisplay,
&dwContrast);
return dwRetCode;
}
See also
DSetContrast
Parameter Type
Name
Description
HDC
hdc
NULL
or
hdc
of target device.
UWORD
nDisplay
Target display.
DWORD FAR *
pContrast
Pointer to
DWORD.
It is filled in
with the current contrast setting
of the flat panel (on successful
return). Current values are
0 (zero) to 255. The panel
powers up with a contrast
value of 0x80.
Summary of Contents for Dome DX/PCI
Page 6: ......