IInkOverlay::SupportHighContrastInk
4/8/2010
Gets or sets a value that specifies whether ink is rendered as just one color in the IInkOverlay control when the system is in High Contrast mode.
Syntax
[propget] HRESULT get_SupportHighContrastInk([out, retval] VARIANT_BOOL *Support);
[propput] HRESULT put_SupportHighContrastInk([in] VARIANT_BOOL Support
);
Parameters
Support
A value that specifies whether ink is rendered as just one color when the system is in High Contrast mode.If TRUE, the default, all ink is drawn in high contrast when the system is in High Contrast mode.
If FALSE, changes to the system's High Contrast mode are ignored and ink is drawn as it is when High Contrast mode is off.
This property is read/write.
Return Value
HRESULT value | Description |
---|---|
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 IInkDrawingAttributes::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 GetSysColor function.
Requirements
Header | msinkaut.h |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later |