Article View: borland.public.cppbuilder.nativeapi
Article #14495Re: Windows Date - Time changed
From: Eyyub Volkan �ektimur
Date: Tue, 12 Aug 2003 14:37
Date: Tue, 12 Aug 2003 14:37
28 lines
1801 bytes
1801 bytes
you can handle WM_TIMECHANGE event
if you'll add this code to your form object
void __fastcall OnTimeChange(TMessage &Message);
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_TIMECHANGE, TMessage, OnTimeChange)
END_MESSAGE_MAP(TControl)
OnTimeChange method will triggered when the system date/time changed.
Also you can control the message in WndProc...
--
___________________________________
Eyyub Volkan �ektimur
Proya Software & Trade Inc.
Head of Core Development Department
"Stan" <thewatcher@email.com> wrote in message
news:3f38f0a7@newsgroups.borland.com...
> Hello
> Is there a way that my application could be notified every time the user
> changes the windows date or time ?
> thanks
>
>
Technical Details
Message-ID:
<3f38fb9c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!newspeer.radix.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f38f0a7@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,d3e224aa67ae08b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-12 07:40:35 PST From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f38f0a7@newsgroups.borland.com> Subject: Re: Windows Date - Time changed Date: Tue, 12 Aug 2003 17:37:11 +0300 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.232.9.4 Message-ID: <3f38fb9c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060699036 213.232.9.4 (12 Aug 2003 07:37:16 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!newspeer.radix.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail