3

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.

WPF-it
  • 19,625
  • 8
  • 55
  • 71

2 Answers2

2

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).

Mike Kwan
  • 24,123
  • 12
  • 63
  • 96
0

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.

Serge Wautier
  • 21,494
  • 13
  • 69
  • 110