🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3716

Re: Popup menu

#3716
From: David Lowndes
Date: Tue, 17 Aug 1999 00:00
18 lines
1436 bytes
>I have made a programm with an icon in the system tray. This icon is created
>in a CFrameWnd.
>When I click right on the taskbar i want to display a popupmenu  with this
>code
>
>pMenu->TrackPopupMenu(0,x,y,AfxGetMainWnd(),NULL)
>
>The PopupMenu is diplayed but all items are disabled and i don't know why ?

It's probably because you've not yet created any handlers for the menu
commands. By default MFC disables menu items that don't have a command
handler.

Dave
-- 
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.
Technical Details
Message-ID: <37bd1091.4858145@msnews.microsoft.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <Vw%t3.822$zv3.65899@weber.videotron.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f7a51,c028f5f90326ebeb
X-Google-Attributes: gidf7a51,public
X-Google-Thread: 104d65,c028f5f90326ebeb
X-Google-Attributes: gid104d65,public
X-Google-Thread: fdcad,c028f5f90326ebeb
X-Google-Attributes: gidfdcad,public
X-Google-Thread: f801d,c028f5f90326ebeb
X-Google-Attributes: gidf801d,public
From: davidl@mvps.org (David Lowndes)
Subject: Re: Popup menu
Date: 1999/08/17
Message-ID: <37bd1091.4858145@msnews.microsoft.com>
X-Deja-AN: 513734701
Content-Transfer-Encoding: 7bit
References: <Vw%t3.822$zv3.65899@weber.videotron.net>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Reply-To: davidl@mvps.org.---
Newsgroups: comp.windows.ms.programmer,fr.comp.lang.c++,microsoft.public.vc.language,microsoft.public.vc.mfc