InkOverlay.SupportHighContrastSelectionUI property

Gets or sets a value that specifies whether all selection user interface (UI) elements are drawn in high contrast when the system is in High Contrast mode.

This property is read/write.

Syntax


HRESULT put_SupportHighContrastSelectionUI(
  [in]          VARIANT_BOOL Support
);

HRESULT get_SupportHighContrastSelectionUI(
  [out, retval] VARIANT_BOOL *Support
);

Property value

VARIANT_TRUE to render all selection UI in high contrast when the system is in High Contrast mode; otherwise, VARIANT_FALSE. The default value is VARIANT_TRUE.

Error codes

NameMeaning
S_OK

Success.

E_POINTER

The parameter must be a valid pointer.

Remarks

This property changes the way selection UI is displayed when the system changes to High Contrast mode. Selection UI elements include the selection bounding box and the selection handles.

Ink selection uses the COLOR_WINDOWTEXT, COLOR_WINDOW, and COLOR_HIGHLIGHT system colors to draw elements of the selection UI when the system is in High Contrast mode and the SupportHighContrastSelectionUI property is TRUE. For more information on system colors, see the GetSysColor function in MSDN.

Requirements

Minimum supported client

Windows XP Tablet PC Edition [desktop apps only]

Minimum supported server

None supported

Header

Msinkaut.h (also requires Msinkaut_i.c)

Library

InkObj.dll

See also

InkOverlay Class
Color Property
SupportHighContrastInk Property

 

 

Show: