[REACTOS] Replace remnant legacy SPIF_SENDWININICHANGE by SPIF_SENDCHANGE (#1526)

No functional change otherwise.
This commit is contained in:
Serge Gautherie 2019-04-28 21:19:42 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent 89f6929dae
commit cf48f8bf8a
5 changed files with 5 additions and 5 deletions

View file

@ -46,7 +46,7 @@ void RegistrySettings::SetWallpaper(LPCTSTR szFileName, RegistrySettings::Wallpa
desktop.SetStringValue(_T("TileWallpaper"), (style == RegistrySettings::TILED) ? _T("1") : _T("0"));
}
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (PVOID) szFileName, SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (PVOID) szFileName, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
}
void RegistrySettings::LoadPresets()

View file

@ -301,7 +301,7 @@ SetKeyboardLayout(
swprintf(szLayoutId, L"%08lx", ulLayoutId);
hKl = LoadKeyboardLayoutW(szLayoutId, KLF_ACTIVATE | KLF_REPLACELANG | KLF_SETFORPROCESS);
SystemParametersInfoW(SPI_SETDEFAULTINPUTLANG, 0, &hKl, SPIF_SENDWININICHANGE);
SystemParametersInfoW(SPI_SETDEFAULTINPUTLANG, 0, &hKl, SPIF_SENDCHANGE);
}

View file

@ -473,7 +473,7 @@ static void UXTHEME_RestoreSystemMetrics(void)
/* Make system settings persistent, so they're in effect even w/o uxtheme
* loaded.
* For efficiency reasons, only the last SystemParametersInfoW sets
* SPIF_SENDWININICHANGE */
* SPIF_SENDCHANGE */
static void UXTHEME_SaveSystemMetrics(void)
{
const struct BackupSysParam* bsp = backupSysParams;

View file

@ -1551,8 +1551,8 @@ extern "C" {
#endif
#define SPIF_UPDATEINIFILE 1
#define SPIF_SENDWININICHANGE 2
#define SPIF_SENDCHANGE 2
#define SPIF_SENDWININICHANGE SPIF_SENDCHANGE
#define ATF_ONOFFFEEDBACK 2
#define ATF_TIMEOUTON 1

View file

@ -2107,7 +2107,7 @@ UserSystemParametersInfo(
InitMetrics();
/* Send notification to toplevel windows, if requested */
if (fWinIni & (SPIF_SENDCHANGE | SPIF_SENDWININICHANGE))
if (fWinIni & SPIF_SENDCHANGE)
{
/* Send WM_SETTINGCHANGE to all toplevel windows */
co_IntSendMessageTimeout(HWND_BROADCAST,