Board index » delphi » SetSystemTime & systray clock

SetSystemTime & systray clock

When using the SetSystemTime function, the Windows systray clock is not
updated immediately, you must wait for the next minute change.

Do you know the right message to send in order to immediately refresh the
clock ?

--

Axel CHAMBILY-CASADESUS

Site Web : http://home.worldnet.fr/achambil

 

Re:SetSystemTime & systray clock


I found the trick ;-)

SendMessage(FindWindow('Shell_TrayWnd',nil),WM_TIMECHANGE,0,0);

Other Threads