HIGHCONTRAST

The HIGHCONTRAST structure contains information about the High Contrast accessibility feature, which sets the appearance scheme of the user interface for maximum visibility for a visually-impaired user, and advises applications to comply with this appearance scheme.

typedef struct tagHIGHCONTRAST {     // hc 
    UINT             cbSize; 
    DWORD            dwFlags; 
    LPTSTR           lpszDefaultScheme; 
} HIGHCONTRAST, FAR* LPHIGHCONTRAST; 
 

Members

cbSize
Specifies the size, in bytes, of this structure.
dwFlags
Specifies a combination of the following values:
Value Meaning
HCF_AVAILABLE The High Contrast feature is available.
HCF_CONFIRMHOTKEY A confirmation dialog appears when the High Contrast feature is activated by using the hot key.
HCF_HIGHCONTRASTON The High Contrast feature is on.
HCF_HOTKEYACTIVE The user can turn the High Contrast feature on and off by simultaneously pressing the left alt, left shift, and print screen keys.
HCF_HOTKEYAVAILABLE The hot key associated with the High Contrast feature can be enabled. An application can retrieve this value, but cannot set it.
HCF_HOTKEYSOUND A siren is played when the user turns the High Contrast feature on or off by using the hot key.
HCF_INDICATOR A visual indicator is displayed when the High Contrast feature is on. This value is not currently used and is ignored.

lpszDefaultScheme
Points to a string that contains the name of the default color scheme.

Remarks

An application uses this structure when calling the SystemParametersInfo function with the SPI_GETHIGHCONTRAST or SPI_SETHIGHCONTRAST value. When using SPI_GETHIGHCONTRAST, an application must specify the cbSize member of the HIGHCONTRAST structure; the SystemParametersInfo function fills the remaining members. An application must specify all structure members when using the SPI_SETHIGHCONTRAST value.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winuser.h.
  Unicode: Defined as Unicode and ANSI structures.

See Also

Accessibility Overview, Accessibility Structures, SystemParametersInfo