CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Popup menu

  1. #1
    Join Date
    Mar 2001
    Location
    Singapore
    Posts
    57

    Popup menu

    Hi all, my program currently has a set of tool buttons which when clicked, changes the
    toolbar to show the subset of that particular tool.
    I want some of functionality of the particular tool to be accessed quickly through
    a pop up menu when i right click on the CView client area (my program is MDI).
    Some menu function are already handled in the CMainframe message map while some by
    CDoc and CView.
    Is there a simple way to popup a menu in the cview where the menu item selected
    activates generates message to the appropriate class (such as CDoc, cview) which handles
    it? Currently, i popup a menu in the CView class on the right button up message.




  2. #2
    Join Date
    Feb 2001
    Location
    Sydney, Australia
    Posts
    1,909

    Re: Popup menu

    use TrackPopupMenu()

    Please - rate answer if it helped you
    It gives me inspiration when I see myself in the top list =)

    Best regards,

    -----------
    Igor Soukhov (Brainbench/Tekmetrics ID:50759)
    igor@soukhov.com | ICQ:57404554 | http://soukhov.com
    Best regards,
    Igor Sukhov

    www.sukhov.net

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured