SupportHighContrastInk Property
SupportHighContrastInk Property |
Gets or sets a value that specifies whether ink is rendered as just one color when the system is in High Contrast mode.
Declaration
[C++]
[C++]
[propget] HRESULT get_SupportHighContrastInk([out, retval] VARIANT_BOOL* Support);
[propput] HRESULT put_SupportHighContrastInk([in] VARIANT_BOOL Support);
[Microsoft® Visual Basic® 6.0]
[Visual Basic]
Public Property Get SupportHighContrastInk() As Boolean
Public Property Let SupportHighContrastInk( _
ByVal Support As Boolean)
Property Value
BOOL A value that specifies whether ink is rendered as just one color when the system is in High Contrast mode.
TRUE | Default. All ink is drawn in high contrast when the system is in High Contrast mode. |
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 occurs while processing. |
E_INVALIDARG | 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 DefaultDrawingAttributes.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 DrawingAttributes.Color property and the GetSysColor function.
Example
[Visual Basic 6.0]
This Visual Basic 6.0 example sets the SupportHighContrastInk property of an InkOverlay object, theInkOverlay, to FALSE.
[Visual Basic]
Dim theInkOverlay As New InkOverlay
theInkOverlay.hWnd = Me.hWnd
theInkOverlay.SupportHighContrastInk = False
Applies To
- InkCollector Class (Automation Library Reference)
- InkOverlay Class (Automation Library Reference)
- InkPicture Control (Automation Library Reference)