HeaderPane
Main
Hide

SftButton/DLL 3.0 - Button Control

Share Link
Print

IsDarkModeActive

Return TRUE if the button is currently rendering with a dark palette.

C

BOOL SftButton_IsDarkModeActive(HWND hwndCtl);

C++

BOOL CSftButton::IsDarkModeActive() const;

Parameters

hwndCtl

The window handle of the button control.

Return Value

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

Comments

IsDarkModeActive returns the resolved state, not the requested setting. When SetDarkMode(SFTBUTTON_DARKMODE_AUTO) has been called, the return value reflects the current Windows "Choose your mode" setting. When set to ON or OFF, the return value matches that setting regardless of the Windows preference.

SFTBUTTONN_DARKMODE_CHANGED is sent to the parent window each time the effective state flips (AUTO mode only).

See Also SetDarkMode | GetDarkMode | Dark Mode


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