WM_SETTINGCHANGE消息是干什么的,怎样使用?

来源:百度知道 编辑:UC知道 时间:2024/05/26 04:49:17
WM_SETTINGCHANGE消息是干什么的,怎样使用?
高手们举点例子好吗?小弟菜鸟一个!!

WM_SETTINGCHANGE
The system sends the WM_SETTINGCHANGE message to all top-level windows when theSystemParametersInfo function changes a system-wide setting. The system sends this message only if the SystemParametersInfo caller specifies the SPIF_SENDCHANGE flag.

An application can send WM_SETTINGCHANGE to all top-level windows when it makes changes to system parameters. For example, you can send this message after a call to theWriteProfileString,WriteProfileSection, orSetLocaleInfo functions, or after making changes to system parameters in the registry.

The WM_SETTINGCHANGE message is the same as the older WM_WININICHANGE message.

WM_SETTINGCHANGE
wParam = wFlag; // system-wide parameter flag
lParam = (LPARAM) (LPCTSTR) pszSection; // name of changed section or registry

Parameters
wFlag
Value of wParam. When the system sends the message as a result of aSystemParametersInfo call, this par