Article View: borland.public.cppbuilder.nativeapi
Article #17148Re: Mapping to user-defined Windows Message
From: Remy Lebeau (TeamB)
Date: Mon, 07 Apr 2003 17:11
Date: Mon, 07 Apr 2003 17:11
20 lines
1549 bytes
1549 bytes
"Gerald O'Brien" <gob@the-ideas-organiser.com> wrote in message news:3e91aa4b$1@newsgroups.borland.com... > BEGIN_MESSAGE_MAP > MESSAGE_HANDLER(CM_CHANGECOLOR, TMessage, CMChangeColor) > END_MESSAGE_MAP(TControl) > > but that is for a constant message not a Registered Windows Message. Correct. You can't use a MESSAGE_MAP with a dynamic message value obtained at runtime, the value has to be known at compile-time. > Can anybody tell me how to map correctly a Registered Windows Message? You need to override the receiving form's WndProc() method and catch the message there instead. Gambit
Technical Details
Message-ID:
<3e91b11b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e91aa4b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7914e0c3bd2d5c6d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-07 10:18:00 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e91aa4b$1@newsgroups.borland.com> Subject: Re: Mapping to user-defined Windows Message Date: Mon, 7 Apr 2003 10:11:04 -0700 Lines: 22 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: <3e91b11b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049735451 207.175.226.26 (7 Apr 2003 10:10:51 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail