Article View: comp.windows.ms.programmer
Article #3715Re: Popup menu
From: Alex Marbus
Date: Tue, 17 Aug 1999 00:00
Date: Tue, 17 Aug 1999 00:00
29 lines
1442 bytes
1442 bytes
Hi,
In the OnUpdatehandler of the item (for example item called 'About'),
please add 'pCmdUI->Enable(true)'
For example:
void CMyView::OnUpdateAbout(CCmdUI* pCmdUI)
{
pCmdUI->Enable(true);
}
This must work..
On Mon, 16 Aug 1999 17:39:54 -0400, "TC" <t_charle@yahoo.com> wrote:
>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 ?
>
>Anyhelp could be very appreciated
>
>
>
>
Technical Details
Message-ID:
<37b90e85.3260050@news.solcon.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<Vw%t3.822$zv3.65899@weber.videotron.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdcad,c028f5f90326ebeb X-Google-Attributes: gidfdcad,public X-Google-Thread: f7a51,c028f5f90326ebeb X-Google-Attributes: gidf7a51,public X-Google-Thread: 104d65,c028f5f90326ebeb X-Google-Attributes: gid104d65,public X-Google-Thread: f801d,c028f5f90326ebeb X-Google-Attributes: gidf801d,public From: alex@atlassoftware.nl (Alex Marbus) Subject: Re: Popup menu Date: 1999/08/17 Message-ID: <37b90e85.3260050@news.solcon.nl> X-Deja-AN: 513707350 References: <Vw%t3.822$zv3.65899@weber.videotron.net> Organization: Solcon Holding BV, Dronten, The Netherlands Reply-To: newsreply@mcs.iwarp.com Newsgroups: comp.windows.ms.programmer,fr.comp.lang.c++,microsoft.public.vc.language,microsoft.public.vc.mfc