Discussion:
which notification will come when we change the time format.
(too old to reply)
KJ
2011-01-05 10:42:57 UTC
Permalink
Hi ! Friends;
I wanted to know, When we change the time format
(ex 12:00hr clock to 24:00 hr clock) from the control panel then which
event will come to notify there is a change in time format. As I
checked in the default windows case in our application its change by
itself but in case my list view where I will be adding the node name
with respect to time. So once after adding the node in the list view
if I change the time format. I want to update the node name
accordingly.


Thanks in advance.
Leo Davidson
2011-01-05 12:07:15 UTC
Permalink
Post by KJ
I wanted to know, When we change the time format
(ex 12:00hr clock to 24:00 hr clock) from the control panel then which
event will come to notify there is a change in time format.
When settings like that change the system should send a
WM_SETTINGSCHANGE message to all top-level windows:

http://msdn.microsoft.com/en-us/library/ms725497%28v=vs.85%29.aspx
KJ
2011-01-06 04:07:46 UTC
Permalink
Post by Leo Davidson
Post by KJ
I wanted to know, When we change the time format
(ex 12:00hr clock to 24:00 hr clock) from the control panel then which
event will come to notify there is a change in time format.
When settings like that change the system should send a
http://msdn.microsoft.com/en-us/library/ms725497%28v=vs.85%29.aspx
Thanks for your reply Leo Davidson, Yes what ever you told has worked
fine for me, but I did not got how I will distinguish that time format
only has changed. Because I will be getting this event for any of the
change in parameter from the control panel. This event is coming with
lparam as "Intel". Please Let me know how I can get the exact change.
jon
2011-01-06 06:50:11 UTC
Permalink
Post by KJ
Thanks for your reply Leo Davidson, Yes what ever you told has worked
fine for me, but I did not got how I will distinguish that time format
only has changed. Because I will be getting this event for any of the
change in parameter from the control panel. This event is coming with
lparam as "Intel". Please Let me know how I can get the exact change.
You can find out what's changed by keeping a copy of whatever settings
you're interested in, and comparing them against the current settings
when you get the notification message.
Leo Davidson
2011-01-06 08:43:45 UTC
Permalink
Post by KJ
Thanks for your reply Leo Davidson, Yes what ever you told has worked
fine for me, but I did not got how I will distinguish that time format
only has changed. Because I will be getting this event for any of the
change in parameter from the control panel. This event is coming with
lparam as "Intel". Please Let me know how I can get the exact change.
Apps usually don't care what has changed and simply re-initialise
themselves (or the parts of them sensitive to system settings) in
response to the message.

The message is sent so rarely that it usually is not worth optimizing
things any further.

Of course, if responding to the change might trigger something which
takes a very long time, you might want to do what Jon suggests and
store the old value so you can compare it to the new one.
KJ
2011-01-06 13:02:11 UTC
Permalink
Post by Leo Davidson
Post by KJ
Thanks for your reply Leo Davidson, Yes what ever you told has worked
fine for me, but I did not got how I will distinguish that time format
only has changed. Because I will be getting this event for any of the
change in parameter from the control panel. This event is coming with
lparam as "Intel". Please Let me know how I can get the exact change.
Apps usually don't care what has changed and simply re-initialise
themselves (or the parts of them sensitive to system settings) in
response to the message.
The message is sent so rarely that it usually is not worth optimizing
things any further.
Of course, if responding to the change might trigger something which
takes a very long time, you might want to do what Jon suggests and
store the old value so you can compare it to the new one.
Thanks yar it worked. Thanks again.

Continue reading on narkive:
Loading...