mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:36:07 +00:00
[REACTOS] Replace remnant legacy SPIF_SENDWININICHANGE by SPIF_SENDCHANGE (#1526)
No functional change otherwise.
This commit is contained in:
parent
89f6929dae
commit
cf48f8bf8a
5 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ void RegistrySettings::SetWallpaper(LPCTSTR szFileName, RegistrySettings::Wallpa
|
||||||
desktop.SetStringValue(_T("TileWallpaper"), (style == RegistrySettings::TILED) ? _T("1") : _T("0"));
|
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()
|
void RegistrySettings::LoadPresets()
|
||||||
|
|
|
@ -301,7 +301,7 @@ SetKeyboardLayout(
|
||||||
swprintf(szLayoutId, L"%08lx", ulLayoutId);
|
swprintf(szLayoutId, L"%08lx", ulLayoutId);
|
||||||
|
|
||||||
hKl = LoadKeyboardLayoutW(szLayoutId, KLF_ACTIVATE | KLF_REPLACELANG | KLF_SETFORPROCESS);
|
hKl = LoadKeyboardLayoutW(szLayoutId, KLF_ACTIVATE | KLF_REPLACELANG | KLF_SETFORPROCESS);
|
||||||
SystemParametersInfoW(SPI_SETDEFAULTINPUTLANG, 0, &hKl, SPIF_SENDWININICHANGE);
|
SystemParametersInfoW(SPI_SETDEFAULTINPUTLANG, 0, &hKl, SPIF_SENDCHANGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -473,7 +473,7 @@ static void UXTHEME_RestoreSystemMetrics(void)
|
||||||
/* Make system settings persistent, so they're in effect even w/o uxtheme
|
/* Make system settings persistent, so they're in effect even w/o uxtheme
|
||||||
* loaded.
|
* loaded.
|
||||||
* For efficiency reasons, only the last SystemParametersInfoW sets
|
* For efficiency reasons, only the last SystemParametersInfoW sets
|
||||||
* SPIF_SENDWININICHANGE */
|
* SPIF_SENDCHANGE */
|
||||||
static void UXTHEME_SaveSystemMetrics(void)
|
static void UXTHEME_SaveSystemMetrics(void)
|
||||||
{
|
{
|
||||||
const struct BackupSysParam* bsp = backupSysParams;
|
const struct BackupSysParam* bsp = backupSysParams;
|
||||||
|
|
|
@ -1551,8 +1551,8 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SPIF_UPDATEINIFILE 1
|
#define SPIF_UPDATEINIFILE 1
|
||||||
#define SPIF_SENDWININICHANGE 2
|
|
||||||
#define SPIF_SENDCHANGE 2
|
#define SPIF_SENDCHANGE 2
|
||||||
|
#define SPIF_SENDWININICHANGE SPIF_SENDCHANGE
|
||||||
#define ATF_ONOFFFEEDBACK 2
|
#define ATF_ONOFFFEEDBACK 2
|
||||||
#define ATF_TIMEOUTON 1
|
#define ATF_TIMEOUTON 1
|
||||||
|
|
||||||
|
|
|
@ -2107,7 +2107,7 @@ UserSystemParametersInfo(
|
||||||
InitMetrics();
|
InitMetrics();
|
||||||
|
|
||||||
/* Send notification to toplevel windows, if requested */
|
/* Send notification to toplevel windows, if requested */
|
||||||
if (fWinIni & (SPIF_SENDCHANGE | SPIF_SENDWININICHANGE))
|
if (fWinIni & SPIF_SENDCHANGE)
|
||||||
{
|
{
|
||||||
/* Send WM_SETTINGCHANGE to all toplevel windows */
|
/* Send WM_SETTINGCHANGE to all toplevel windows */
|
||||||
co_IntSendMessageTimeout(HWND_BROADCAST,
|
co_IntSendMessageTimeout(HWND_BROADCAST,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue