Article View: borland.public.cppbuilder.nativeapi
Article #17435Re: Remy Lebeau (TeamB)
From: Remy Lebeau (TeamB)
Date: Mon, 24 Mar 2003 21:21
Date: Mon, 24 Mar 2003 21:21
18 lines
1652 bytes
1652 bytes
"Jim Donachiue" <jdonachiue@bjservices.ca> wrote in message news:3e7f677e@newsgroups.borland.com... > BEGIN_MESSAGE_MAP > VCL_MESSAGE_HANDLER(WM_JM_CTTR_COMM, TMessage, OnJobMasterExtMsgA) > END_MESSAGE_MAP(TForm) You can't use RegisterWindoweMessage() with a MESSAGE_MAP. The compiler expects the MESSAGE_MAP values to be compile-time constants, thus they need to be known to the compiler ahead of time. But RegisterWindowMessage() return a dynamic run-time value that is not known until the application is actually running, thus the compiler has nothing to compile with. That is why I mentioned earlier that you'll have to override your form's inherited WndProc() method in order to intercept the registered message. Gambit
Technical Details
Message-ID:
<3e7f747e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e7f677e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,cca25498022ba683 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-24 13:18:57 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e7f677e@newsgroups.borland.com> Subject: Re: Remy Lebeau (TeamB) Date: Mon, 24 Mar 2003 13:21:15 -0800 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e7f747e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048540286 207.175.226.26 (24 Mar 2003 13:11:26 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail