Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const HWND_BROADCAST = &HFFFF&
Const WM_SETTINGCHANGE = &H1APrivate Sub Command1_Click()
SendMessage HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0
End Sub
Const HWND_BROADCAST = &HFFFF&
Const WM_SETTINGCHANGE = &H1APrivate Sub Command1_Click()
SendMessage HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0
End Sub
The system sends the WM_SETTINGCHANGE message to all top-level windows when the SystemParametersInfo function changes a system-wide setting or when policy settings have changed. Applications should send WM_SETTINGCHANGE to all top-level windows when they make changes to system parameters.