Microsoft Windows CE 3.0  

WM_SETTINGCHANGE

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This message is sent by the OS to all top-level windows after a system-wide change has been made. The WM_SETTINGCHANGE message is the same as the older WM_WININICHANGE message.

WM_SETTINGCHANGE
wParam= 
wFlag; 
lParam= 
(LPARAM)(LPCTSTR)
pszSectionName;

Parameters

wFlag
When the system sends the message as a result of a SystemParametersInfocall, this parameter is a flag that indicates the system parameter that was changed. For a list of values, see the SystemParametersInfofunction.

When an application sends the message, this parameter must be NULL.

pszSectionName
Pointer to a null-terminated string that indicates the area that contains the system parameter that was changed. For example, this string can be the name of a registry key or the name of a section in the Win.ini file.

This parameter is not particularly useful in determining which system parameter changed. For example, when the string is a registry name, it typically indicates only the leaf node in the registry, not the whole path. In addition, some applications send this message with lParamset to NULL. In general, when you receive this message, you should check and reload any system parameter settings used by your application.

Return Values

An application should return zero if it processes this message.

Remarks

The wParamparameter is set to NULL.

The lParamparameter is a constant, defined in Winuser.h, rather than a pointer to a string. For Windows CE versions 2.10 and later, lParamis not used.

At this time, the only value defined for lParamis INI_INTL, which indicates that a user has made a change to the regional settings in the control panel. This message is sent to all running applications. An application does not need to send this message.

A change in the input panel information sets wFlagsto SPI_SETSIPINFO, whereas a change in the current IM sets the flag to SPI_SETCURRENTIM. An application can change the input panel size in response to this message. However, for performance reasons, inactivated applications—for example, applications not currently in the foreground—should cache any input panel changes and delay updating the window until the application is reactivated. When notified of the change in the input panel state, an activated application may want to query the current input panel state before making the final adjustment. Do so by calling the SipGetInfofunction.

The change in the storage location has no effect on the behavior of this message.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

SendMessage, SipGetInfo, SystemParametersInfo