HeaderPane
Main

Dark Mode Support

Share Link
Print

SftDarkMode_IsActive

Return TRUE if dark mode is currently active.

C

BOOL SftDarkMode_IsActive(void);

Parameters

None.

Return Value

TRUE if dark mode is currently in effect, FALSE otherwise.

Comments

The returned value reflects the cached dark-mode state established at SftDarkMode_Init time and updated automatically by SftDarkMode_HandleDialogMessage when WM_SETTINGCHANGE / ImmersiveColorSet is delivered to a dialog or window that routes through the helper.

Use IsActive to drive application-side rendering decisions - choosing icon variants, picking GDI brush handles, deciding which color overrides to push into Softel vdm controls' SFT*_CONTROL structures, and so on.

The state can also be overridden programmatically through SftDarkMode_SetActive. After SetActive, IsActive returns the override value rather than the system setting.

See Also Init | SetActive


Last Updated 05/09/2026 - (email)
© 2026 Softel vdm, Inc.