Partager via


ContrastCmdInputParm (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

struct ContrastCmdInputParm {
  int command;
  int parm;
};

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

Header pwingdi.h
Windows Embedded CE Windows CE 2.12 and later

See Also

Reference

Display Driver Structures

Concepts

Display Driver Escape Codes

Other Resources

Display Drivers
ExtEscape