• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

Is There an automated way to tell when user has changed language settings?

Is there an automated way to tell if the user has changed the language in the Regional Settings control panel besides something crude like a timer that just keeps getting the current setting? I want my program to be able to figure out on the fly if the settings have changed.  Yes, I could pepper my code with the call to get the current settings but I am wondering if there is a more elegant "notification" method built into win32 and/or MFC?
0
staggart
Asked:
staggart
1 Solution
 
MirkwoodCommented:
Trap the message WM_WININICHANGE and reread the settings that you are interested in.
0
 
jkrCommented:
There's a message broadcasted when a user changes the settings, in the 'early days' it was 'WM_WININICHANGE' - nowadays it is called 'WM_SETTINGCHANGE'. Simply handle this message...
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now