Article View: borland.public.cppbuilder.nativeapi
Article #678Re: How to use traditional Windows message and API function ?
From: Luka Gabri�
Date: Fri, 22 Feb 2008 02:14
Date: Fri, 22 Feb 2008 02:14
30 lines
1960 bytes
1960 bytes
Can you modify the code so I could use it in my Application!?
I have a DLL that should send a variable(parameter) to my APP. This may be
the solution!
Can I use this with PostMessage in my DLL or something.
Please help,
thanks!
> // in your header file
> class TMyForm : public TForm
> {
> private:
> // declare a handler function for your message
> MESSAGE void __fastcall WM_TimeChange(TMessage &Message);
>
> BEGIN_MESSAGE_MAP
> // associate your handler function with some message
> VCL_MESSAGE_HANDLER(WM_TIMECHANGE, TMessage,
> WM_TimeChange);
> END_MESSAGE_MAP(TForm);
> };
>
> // in your source file
> // define the handler function
> MESSAGE void __fastcall TMyForm::WM_TimeChange(TMessage &Message)
> {
> // do something when the WM_TIMECHANGE message is received
> }
>
Technical Details
Message-ID:
<47be2fa2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47b02ecf$1@newsgroups.borland.com> <MPG.221a525c60a3d10c989a5f@newsgroups.borland.com> <47b0d385$1@newsgroups.borland.com> <47b0d5c9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,985e142ee2266c4 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Luka Gabri�" <luka.gabric@gmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <47b02ecf$1@newsgroups.borland.com> <MPG.221a525c60a3d10c989a5f@newsgroups.borland.com> <47b0d385$1@newsgroups.borland.com> <47b0d5c9$1@newsgroups.borland.com> Subject: Re: How to use traditional Windows message and API function ? Date: Fri, 22 Feb 2008 03:14:11 +0100 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 89.201.136.203 Message-ID: <47be2fa2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1203646370 89.201.136.203 (21 Feb 2008 18:12:50 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail