Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 27th, 2007, 09:18 AM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default right click on a menu item

I am trying to implement a menu item which can be right clicked on to bring up a pop up menu with operations that can be performed on that item, similar to how you can right click on an item in the IE favorites menu to rename, delete,etc. Does anyone know how to implement this feature?

Chuck Cottle
Advanced Inspection and Measurement
Reply With Quote
  #2 (permalink)  
Old April 27th, 2007, 11:14 AM
Friend of Wrox
 
Join Date: Jan 2006
Location: Fort Wayne, Indiana, USA.
Posts: 103
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Geo121
Default

It depends on your program I would assume that you are planning on using the Win32 API correct? If so you can use the API features to apply this effect let me know about your plans and I can guide you from there

~ Geo

~ Don't take life too seriously, you'll never get out alive!
Reply With Quote
  #3 (permalink)  
Old April 27th, 2007, 12:08 PM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To be specific, I built the program using the MFC App Wizard. It is dialog based. I have been trying to do this using OnNcHitTest and MenuItemFromPoint. Thanks for your help

Chuck Cottle
Advanced Inspection and Measurement
Reply With Quote
  #4 (permalink)  
Old May 14th, 2007, 10:34 AM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If its a problem with MFC, can anyone tell me how to do it with the Win32 API and I'll see about translating that myself.
Reply With Quote


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot add a new item to this menu ... paulmarshall General .NET 0 April 18th, 2007 03:03 PM
how create menubar, menu, menu item in xsl vijayanmsc XSLT 1 June 5th, 2006 06:43 AM
Menu Help in statusbar at mousemove over Menu item Kaustav VB Components 1 September 14th, 2005 09:28 AM
How do i click the root menu item of skmMenu? dayib ASP.NET 1.x and 2.0 Application Design 0 September 12th, 2005 11:19 PM
right click menu hidden by drop-drown menu Andraw HTML Code Clinic 0 March 18th, 2005 03:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.