Returns the current high contrast setting (OFF / ON / AUTO).
C
int SftMask_GetHighContrastMode(HWND hwndCtl);
C++
int CSftMask::GetHighContrastMode() const;
hwndCtl
The window handle of the masked edit control.
The return value is the high contrast setting: SFTMASK_HIGHCONTRAST_OFF, SFTMASK_HIGHCONTRAST_ON or SFTMASK_HIGHCONTRAST_AUTO.
GetHighContrastMode returns the configured setting, not the resolved state. Use IsHighContrastActive to determine whether high contrast rendering is currently in effect.
See Also SetHighContrastMode | IsHighContrastActive | High Contrast