When I try this, I get an error from TrackPopupMenu, because a popup menu is
already active.
Can this be done?
Thanks for posting in the group.
Surely it could be done. To display a context-sensitive menu for a menu
item, please call the TrackPopupMenuEx function with TPM_RECURSE.
From MSDN, we could see that:
Windows 98/Me, Windows 2000/XP: Use the TPM_RECURSE flag to display a menu
when another menu is already displayed. This is intended to support context
menus within a menu.
So we could search TPM_RESURSE in MSDN and Internet to find information on
this topic.
Does that answer your question?
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!From: "Francis L Spafford" <NOfspaf...@yahoo.com>
!Subject: Error: Popup menu already active
!Date: Fri, 19 Sep 2003 11:01:01 -0500
!Lines: 10
!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.1106
!Message-ID: <#8ReAdsf...@TK2MSFTNGP09.phx.gbl>
!Newsgroups: microsoft.public.vc.mfc
!NNTP-Posting-Host: uslec-63-243-84-50.cust.uslec.net 63.243.84.50
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.vc.mfc:391333
!X-Tomcat-NG: microsoft.public.vc.mfc
!
!I want to display a context menu for an item on a popup menu, similar to
the
!way the favorites menu of Internet Explorer works (example: context menu
!allows you to delete a link).
!
!When I try this, I get an error from TrackPopupMenu, because a popup menu
is
!already active.
!
!Can this be done?
!
!
!