Article View: borland.public.cppbuilder.nativeapi
Article #9580SendMessage
From: Digby Millikan
Date: Mon, 21 Jun 2004 15:40
Date: Mon, 21 Jun 2004 15:40
28 lines
1486 bytes
1486 bytes
Hi!
I have a bcb application running and I wish it to run some code
by sending it a message with SendMessage.
If I place the code within a WndProc, what message can I send
it, do I have to use messages from a pre determined list or can I
make my own message up e.g.
first application;
void __fastcall TGBNGForm::WndProc(TMessage &Message)
{
if((Message.Msg==WM_RUNMYCODE){
Message.Result=false;
StatusBar(Sender);
}else{
TForm::WndProc(Message);
}
}
second application;
SendMessage(GBNGHandle,WM_RUNMYCODE,NULL,NULL);
Can I use the message WM_RUNMYCODE?
Digby
Technical Details
Message-ID:
<40d70160@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.euro.net!62.253.162.219.MISMATCH!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b47642e92e7a84b,start X-Google-Attributes: gid10cc67,public From: "Digby Millikan" <digbym@internode.on.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: SendMessage Date: Tue, 22 Jun 2004 01:10:23 +0930 Lines: 37 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: 150.101.77.251 Message-ID: <40d70160@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1087832416 150.101.77.251 (21 Jun 2004 08:40:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.euro.net!62.253.162.219.MISMATCH!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail