Windows High Contrast is an accessibility setting, not a visual preference. Users who enable it have committed to a specific high-contrast color scheme for everything on screen, and Microsoft's accessibility guidelines require applications to let the user's scheme win over any application-chosen colors. SftBox/OCX 6.0 supports this with the HighContrastMode property, which an application should set to highContrastSftBoxAuto.
While high contrast is active, the combo box control:
The HighContrastMode property has three values (see SftBoxHighContrastConstants):
| Value | Description |
|---|---|
| highContrastSftBoxAuto | Follow the Windows High Contrast setting. The control re-renders when the setting flips. |
| highContrastSftBoxOn | Always use the system colors, regardless of the Windows High Contrast setting. Useful for testing. |
| highContrastSftBoxOff (default) | Ignore the Windows High Contrast setting and render normally, using the colors defined by the application. Not recommended in shipping applications - users with accessibility needs will see rendering that does not comply with their contrast theme. |
The HighContrastChange event is fired each time the active state flips (highContrastSftBoxAuto only) so the application can repaint its own chrome to match. The HighContrastActive property reports the current state at any time.
Dark mode and Windows High Contrast are independent. If the user has both enabled, high contrast takes precedence - the contrast theme's palette wins over the dark palette, because honoring the user's contrast theme is the stronger accessibility requirement. See Dark Mode.