Re: Update clock in tray after SetSystemTime



I know you said you're using Win98, but FWIW I can't repro that on Windows
2000 or Windows XP using the code from
http://vbnet.mvps.org/code/network/winsocksynctime.htm - the clock
immediately reflects the time change.

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
----------------------------------------------------------------------------
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/
----------------------------------------------------------------------------



"Terry S" <tms@xxxxxxxxxxxx> wrote in message
news:1113102940.422396.114930@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
:I have an app to synchronize a Win98 PC's clock to an NNTP server using
: WinInet API's and then setting the clock with SetSystemTime. Works
: fine, but the clock in the systray doesn't get updated to the sync'ed
: time unless one opens the Date/Time Properties window. Currently, I
: have the app automatically opening up the Date/Time Properties window
: after successful synchronization in order to apply the sync'ed time to
: the tray clock. Is there a better way of doing this? Is there a way
: to update the time shown in the tray clock to the sync'ed time without
: opening the Date/Time Prop window?
:
: TIA
:

.



Relevant Pages

  • Re: HATE VISTA EVER MORE!!!
    ... FIRST OF ALL FUCKTARD, CHANGE YOUR CLOCK ... folder setup for a certain view, sorting, appearance, ... The window was resized and placed at a random location. ...
    (microsoft.public.windows.vista.general)
  • Re: Calling sysdm.cpl from MFC....
    ... I do the same thing with the clock. ... I tried it from control panel and noticed something ... temp window after launch (it's a blocking call so they probably need to kill ... lots and lots of balloons in that code, ...
    (microsoft.public.vc.mfc)
  • Window open / close vbscripting question
    ... When the clock ... What I want to do if possible, is when the server side asp vbscript is ... capable of coding server side script, I haven't done any client side ... Window A) Main server side script. ...
    (microsoft.public.scripting.vbscript)
  • Re: Real examples of metastability causing bugs
    ... only one in every three has _any_ chance of ... a metastable window, ... The easiest proof would be to imagine twice the clock rate, ... Peter's looked at this problem (measuring metastability) for a very, very long time with full experimental setups to verify his numbers. ...
    (comp.arch.fpga)
  • Re: Quick Launch bar
    ... Since Customize Notifications... ... right-click the clock, then click Properties. ... Taskbar and Start Menu Properties window. ... Customize Notifications window either by clicking the Customize button here ...
    (microsoft.public.windowsxp.basics)