Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have dialog box made in resource editor that behaves as a child control of the main window.

In normal mode, when behaving as a popup, dialog can receive WM_SETTINGCHANGE[^] message that notifies dialog box about user changing locale settings, but as a child it does not seem to receive this message -> after setting up a breakpoint at relevant code, the debugger never reaches those lines.

Is there a way to detect in child dialog box when user changes locale in Control Panel?
Posted
Comments
barneyman 2-Feb-15 19:39pm    
it only goes to the top window, you'll have to have an internal mechanism to broadcast it to your child windows - just enum your child windows and repeat the message if you don't want to have children register for it
Jochen Arndt 3-Feb-15 3:07am    
This would be an answer.
When the dialog box is created by the main window, the handle can be stored there to forward the message (or a user defined one) to the dialog box. This avoids enumeration.

1 solution

You must forward the message in your app. Post it with the same parameters to your actual window and handle it in a message handler.
 
Share this answer
 
Comments
AlwaysLearningNewStuff 11-Feb-15 10:39am    
Exactly what I did. Hoped to bypass this approach but it seems there is no other way...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900