🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4377

PostMessage not being received

#4377
From: Nate Lockwood
Date: Fri, 24 Feb 2006 22:34
19 lines
1361 bytes
After determining that there is another instance of the application 
running I try to post a message but I'm not receiving it.

   String sMessage = "USDA.FS.FireScience.GooleEarthTool.Awake";
   WM_MYMSG = RegisterWindowMessage(sMessage.c_str());

and then

void __fastcall TFormMain::WndProc(TMessage& message)
{
    if(message.Msg == WM_MYMSG)
      FormMain->Show();
    else
       TForm::WndProc(message); //pass on to parent
}

Is this right?  Do I need to implement a message map?

Nate
Technical Details
Message-ID: <43ff8a0d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3775f67446cfe781,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 24 Feb 2006 14:34:55 -0800
From: Nate Lockwood <RNLockwoodREMOVE@attglobal.net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: PostMessage not being received
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.234.59.217
Message-ID: <43ff8a0d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1140820493 69.234.59.217 (24 Feb 2006 14:34:53 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail