SupportHighContrastSelectionUI Property

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.

Declaration

[C++]

[C++]
[propget] HRESULT get_SupportHighContrastSelectionUI([out, retval] VARIANT_BOOL* Support);
[propput] HRESULT put_SupportHighContrastSelectionUI([in] VARIANT_BOOL Support);

[Microsoft® Visual Basic® 6.0]

[Visual Basic]
Public Property Get SupportHighContrastSelectionUI() As Boolean
Public Property Let SupportHighContrastSelectionUI( _
    ByVal|ByRef Support As Boolean)

Property Value

BOOL a value that specifies whether all selection UI elements are drawn in high contrast when the system is in High Contrast mode.

TRUE Default. All selection UI renders in high contrast when the system is in High Contrast mode
FALSE Changes to the system's High Contrast mode are ignored and the selection UI 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 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 Leave Site function in MSDN®.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example sets the SupportHighContrastSelectionUI property of an InkOverlay object, theInkOverlay, to FALSE.

[Visual Basic]
Dim theInkOverlay As New InkOverlay
theInkOverlay.hWnd = Me.hWnd
theInkOverlay.SupportHighContrastSelectionUI = False

Applies To