Daylight

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hello,

does anybody know how can I change programatically a checkbox value for
"Automatically adjust clock for daylight saving" in the time zone
dialog? Please somebody help me.

Thanks,
John
 
Note that it's only read by the shell on startup and when the time is
changed manually, so you might want to call SetLocalTime (even if you just
set the local time to the same time it was showing before), after changing
the registry setting. Otherwise, I think you'll need a hard reset.

Paul T.
 
I don't see any sign that the Date/Time control panel applet is doing a
WM_WININICHANGE, at least in regular Windows CE, so I don't think that it'll
help. Best I can tell, the shell will be waiting on one of three things to
occur before it rechecks that registry setting: a DST transition, a change
of the date/time (other than just the clock counting), or a change of the
timezone setting. Until one of those things happens, the setting is pretty
much ignored (again, in regular Windows CE). So, to have it notice that
change, you need to do one of those things.

Paul T.
 
Back
Top