窗口消息通知 - 语言和区域设置
我想找出当我们更改区域设置(特别是日期时间和语言)时发送的获胜消息。
我知道当窗口主题更改时我们会收到 WM_THEMECHANGED。
I want to find out what win message is / are sent when we change the locale settings, Date Time and Language in particular.
I know when window Theme is changed we receive WM_THEMECHANGED.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
WM_SETTINGSCHANGE 用于区域设置和 WM_TIMECHANGE 用于时间更改。
您将在语言之前收到 WM_INPUTLANGCHANGEREQUEST已更改(您可以选择接受或拒绝更改),然后 WM_INPUTLANGCHANGE 成功更改语言后(如果您将 WM_INPUTLANGCHANGEREQUEST 传递给 DefWindowProc)。
WM_SETTINGSCHANGE for locale settings and WM_TIMECHANGE for time changes.
You will get WM_INPUTLANGCHANGEREQUEST before the language is changed (and you can choose whether to accept or reject the change), and then WM_INPUTLANGCHANGE after the language is successfully changed (if you pass WM_INPUTLANGCHANGEREQUEST to the DefWindowProc).
每当系统时间达到时,就会发送 WM_TIMECHANGE改变了。
WM_SETTINGCHANGE 也会在更改时发送一些修改。然而,这是由更改设置的应用程序在志愿者基础上完成的。人们可以假设标准控制面板小程序是公平的参与者。
WM_TIMECHANGE is sent whenever system time is changed.
WM_SETTINGCHANGE is also sent upon change of some modifications. However, it's done on a volunteer base by the app that changes the setting. One can assume standard Control Panel applets are fair players.