HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

IsDarkModeActive

Returns whether dark-palette rendering is currently in effect.

C

BOOL SftMask_IsDarkModeActive(HWND hwndCtl);

C++

BOOL CSftMask::IsDarkModeActive() const;

Parameters

hwndCtl

The window handle of the masked edit control.

Returns

The return value is TRUE if dark-palette rendering is currently in effect (after resolving SFTMASK_DARKMODE_AUTO against the Windows setting).

Comments

While high contrast is active, dark mode rendering is suppressed - high contrast takes precedence (see High Contrast).

See Also SetDarkMode | GetDarkMode | IsHighContrastActive | Dark Mode


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