🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Displaying menu after using CreatePopupMenu()

#1536
From: Kris
Date: Sat, 28 Jul 2007 17:01
19 lines
1923 bytes
Remy Lebeau (TeamB) wrote:
> "Kris" <ks@ks.com> wrote in message news:46aa2e75@newsgroups.borland.com...
> 
>> However, my WndProc() does receive WM_COMMAND
>> messages other than the one that I am explicitly generating
>> when my pop-up menu item is clicked.

Thanks for clarifying this. Everything is making much more sense now :-)

I assume it is OK to call my event handler (the one that does some 
processing due to the menu click) from within WndProc() itself ?

Or should I be exiting WndProc() as soon as possible ? And e.g. only set 
a flag that the menu-item has been clicked, exit WndProc() and call the 
event handler from within e.g. ApplicationEventsIdle ?

Thanks,

Kris
Technical Details
Message-ID: <46ab765f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!news.astraweb.com!border1.a.newsrouter.astraweb.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46a9b224$1@newsgroups.borland.com> <46a9c918$1@newsgroups.borland.com> <46a9e711$1@newsgroups.borland.com> <46aa2786$1@newsgroups.borland.com> <46aa2e75@newsgroups.borland.com> <46aa3e31@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,36d1a4e51ed2600d
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 28 Jul 2007 19:01:37 +0200
From: Kris <ks@ks.com>
User-Agent: Thunderbird 2.0.0.5 (Windows/20070716)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Displaying menu after using CreatePopupMenu()
References: <46a9b224$1@newsgroups.borland.com> <46a9c918$1@newsgroups.borland.com> <46a9e711$1@newsgroups.borland.com> <46aa2786$1@newsgroups.borland.com> <46aa2e75@newsgroups.borland.com> <46aa3e31@newsgroups.borland.com>
In-Reply-To: <46aa3e31@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 83.134.83.23
Message-ID: <46ab765f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1185642079 83.134.83.23 (28 Jul 2007 10:01:19 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!news.astraweb.com!border1.a.newsrouter.astraweb.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail