ContrastCmdInputParm (Windows CE 5.0)

Send Feedback

This structure supports software control of a platform's display contrast. Use this structure conjunction with the GWES function ExtEscape and the display driver's DrvEscape functions.

struct ContrastCmdInputParm{intcommand;intparm;};

Members

  • command
    Contrast command. The following table shows the available contrast commands.
    Contrast command Description
    CONTRAST_CMD_GET Gets the current contrast. The parm member is ignored. The return value from DrvEscape should be the current contrast setting.
    CONTRAST_CMD_SET Sets the current contrast. The parm member contains the desired contrast setting. The return value from DrvEscape should be the actual contrast setting after the operation.
    CONTRAST_CMD_INCREASE Increases the contrast by the amount specified in parm. The return value from DrvEscape should be the resulting contrast setting.
    CONTRAST_CMD_DECREASE Decreases the contrast by the amount specified in parm. The return value from DrvEscape should be the resulting contrast setting.
    CONTRAST_CMD_DEFAULT Applies the default contrast setting. The parm member is ignored. The return value from DrvEscape should be the actual contrast setting after the operation.
    CONTRAST_CMD_MAX Applies the maximum contrast setting. The return value from DrvEscape should be the actual contrast setting after the operation.
  • parm
    Value that applies to some of the contrast commands.

Requirements

OS Versions: Windows CE 2.12 and later.
Header: Pwingdi.h.

See Also

Display Drivers | Display Driver Escape Codes | ExtEscape

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.