Export (0) Print
Expand All

HIGHCONTRAST structure

Contains information about the high contrast accessibility feature. This feature 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.

Syntax


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

Members

cbSize

Type: UINT

Specifies the size, in bytes, of this structure.

dwFlags

Type: DWORD

Specifies a combination of the following values:

ValueMeaning
HCF_AVAILABLE
0x00000002

The high contrast feature is available.

HCF_CONFIRMHOTKEY
0x00000008

A confirmation dialog appears when the high contrast feature is activated by using the hot key.

HCF_HIGHCONTRASTON
0x00000001

The high contrast feature is on.

HCF_HOTKEYACTIVE
0x00000004

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
0x00000040

The hot key associated with the high contrast feature can be enabled. An application can retrieve this value, but cannot set it.

HCF_HOTKEYSOUND
0x00000010

A siren is played when the user turns the high contrast feature on or off by using the hot key.

HCF_INDICATOR
0x00000020

A visual indicator is displayed when the high contrast feature is on. This value is not currently used and is ignored.

 

lpszDefaultScheme

Type: LPTSTR

Points to a string that contains the name of the color scheme that will be set to the default 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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Accessibility Structures
SystemParametersInfo

 

 

Community Additions

ADD
Show:
© 2014 Microsoft