Export (0) Print
Expand All

InkCollector.SupportHighContrastInk property

Applies to: desktop apps only

Gets or sets a value that specifies whether ink is rendered as just one color when the system is in High Contrast mode.

This property is read/write.

Syntax

HRESULT put_SupportHighContrastInk(
  [in]           VARIANT_BOOL Support
);

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

Property value

VARIANT_TRUE to draw the ink in high contrast when the system is in High Contrast mode; VARIANT_FALSE draw the ink as it would be drawn when not in High Contrast mode. The default value is VARIANT_TRUE.

Error codes

NameMeaning
S_OK

Success.

E_POINTER

The parameter in the getter is an invalid pointer.

E_INK_EXCEPTION

An exception occurred while processing.

E_INK_INVALID_MODE

The parameter in the setter is invalid.

Remarks

This property changes the way ink renders when the system changes to High Contrast mode.

Real-time ink application uses the COLOR_WINDOWTEXT color when the system is in High Contrast mode and the SupportHighContrastInk property is TRUE, but the inherent color of a stroke made under these conditions remains unchanged. For example, if the Color property is set to RGB(0,0,255) (blue), the COLOR_WINDOWTEXT color is set to RGB(255,255,255) (white), and the system is in High Contrast mode, then a newly drawn stroke renders in white but the actual stroke color is still blue. For more information about this behavior, see the Color property and the GetSysColor function.

Requirements

Minimum supported client

Windows XP Tablet PC Edition

Minimum supported server

None supported

Header

Msinkaut.h (also requires Msinkaut_i.c)

Library

InkObj.dll

See also

InkCollector Class
Color Property
DefaultDrawingAttributes Property
SupportHighContrastSelectionUI Property [InkPicture Control]
SupportHighContrastSelectionUI Property [InkOverlay Class]

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft