SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTree/NET 2.0 - Tree Control
Apply dark mode to a dialog and all of its children in one call. The recommended one-shot helper to invoke from WM_INITDIALOG (plain Win32) or OnInitDialog (MFC).
C
void SftDarkMode_ApplyToDialog(HWND hwndDlg);
hwndDlg
The dialog window handle.
ApplyToDialog performs four steps:
Call ApplyToDialog from WM_INITDIALOG once. Re-call it after toggling the dark state through SftDarkMode_SetActive so the dialog and children re-theme to match. The WM_SETTINGCHANGE branch of SftDarkMode_HandleDialogMessage re-applies dark mode automatically when the user flips the Windows setting - applications that route every dialog through HandleDialogMessage do not need to handle WM_SETTINGCHANGE themselves.
ApplyToDialog is also the right call for an MFC CFormView or other non-modal form host: theming requires the same dialog property + theme + child sweep regardless of whether the parent is a DIALOGEX template or a CFormView with a dialog template.
See Also ApplyToWindow | ApplyToChildren | HandleDialogMessage | Init
