HeaderPane
Main
Hide

SftButton/OCX 4.0 - ActiveX Button Control

Share Link
Print

HighContrastMode Property, SftButton Object

Defines the high contrast setting (off, on, or following the Windows setting).

Syntax

Get

VB.NETMode = object.HighContrastMode As SftButtonHighContrastConstants
VBMode = object.HighContrastMode As SftButtonHighContrastConstants
C#.NETSftButtonHighContrastConstants Mode = object.HighContrastMode;
VC++enum SftButtonHighContrastConstants Mode = object->HighContrastMode;
enum SftButtonHighContrastConstants Mode = object->GetHighContrastMode();
CHRESULT object->get_HighContrastMode(enum SftButtonHighContrastConstants* Mode);

Put

VB.NETobject.HighContrastMode = Mode As SftButtonHighContrastConstants
VBobject.HighContrastMode = Mode As SftButtonHighContrastConstants
C#.NETSftButtonHighContrastConstants object.HighContrastMode = Mode;
VC++enum SftButtonHighContrastConstants object->HighContrastMode = Mode;
void object->PutHighContrastMode(enum SftButtonHighContrastConstants Mode);
CHRESULT object->put_HighContrastMode(enum SftButtonHighContrastConstants Mode);

object

A SftButton object.

Mode

Defines the high contrast setting (off, on, or following the Windows setting).

NameValueDescription
highContrastSftButtonOff0Ignore the Windows High Contrast setting and render normally.
highContrastSftButtonOn1Always use the system palette.
highContrastSftButtonAuto2Follow the Windows High Contrast setting (the default).

Comments

The HighContrastMode property defines the high contrast setting (off, on, or following the Windows setting).

When set to highContrastSftButtonAuto, the control follows the Windows High Contrast accessibility setting and re-renders automatically; the HighContrastChange event is raised when the effective state changes.

Use HighContrastActive to determine whether high contrast is currently active.

See Also SftButton Object | Object Hierarchy | High Contrast


Last Updated 08/02/2026 - (email)
© 2026 Softel vdm, Inc.