Return TRUE if the button is currently rendering with a dark palette.
C
BOOL SftButton_IsDarkModeActive(HWND hwndCtl);
C++
BOOL CSftButton::IsDarkModeActive() const;
hwndCtl
The window handle of the button control.
TRUE if dark mode is currently in effect, FALSE otherwise.
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