Returns whether dark-palette rendering is currently in effect.
C
BOOL SftMask_IsDarkModeActive(HWND hwndCtl);
C++
BOOL CSftMask::IsDarkModeActive() const;
hwndCtl
The window handle of the masked edit control.
The return value is TRUE if dark-palette rendering is currently in effect (after resolving SFTMASK_DARKMODE_AUTO against the Windows setting).
While high contrast is active, dark mode rendering is suppressed - high contrast takes precedence (see High Contrast).
See Also SetDarkMode | GetDarkMode | IsHighContrastActive | Dark Mode