Article View: borland.public.cppbuilder.nativeapi
Article #10031Re: Using Damon Chandler's FindNextChangeNotification example
From: Timothy H. Buchman
Date: Sat, 22 May 2004 14:28
Date: Sat, 22 May 2004 14:28
25 lines
1916 bytes
1916 bytes
> The problem is that my application gets the notification twice.
>
> //--------------------------------------------------------------
> void __fastcall TMain::WndProc( TMessage &Message )
> {
> if( Message.Msg == APP_WATCHFOLDER_FILECHANGE )
> {
> ShowMessage("A File was changed");
> }
> else TForm::WndProc(Message);
I didn't look at Damon's original, but don't you want the default
handling to always take place after you do your processing? The code
above could leave the message hanging around.
ShowMessage("A File was changed");
}
TForm::WndProc(Message);
--
Timothy H. Buchman
========================================
City Center Theater, New York NY
mail address tbuchmanPLEASE(at sign)REMOVEcitycenterD O Torg
Search .borland message archive on http://www.tamaracka.com/search.htm
Technical Details
Message-ID:
<40af63b7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40ade94f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,32a59cffbb6bea4a X-Google-Attributes: gid10cc67,public From: "Timothy H. Buchman" <tbuchmanREMOVE(at)PLEASEcitycenter D O To r g> Newsgroups: borland.public.cppbuilder.nativeapi References: <40ade94f$1@newsgroups.borland.com> Subject: Re: Using Damon Chandler's FindNextChangeNotification example Date: Sat, 22 May 2004 10:28:04 -0400 Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 69.3.194.217 Message-ID: <40af63b7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1085236151 69.3.194.217 (22 May 2004 07:29:11 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail