次の方法で共有


ContrastCmdInputParm (Compact 2013)

3/26/2014

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

See Also

Reference

Display Driver Structures

Other Resources

ExtEscape