CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    context menu of Edit Control

    Hi;
    Just wonder how to get the HMENU or CMenu of the context menu of the Edit Control.
    i would like to append some of my submenu into it, so i need the hmenu....
    note i am DON't want to makel my onw and new context menu and replace it, but just keep the original
    context menu with original functionalities and add my submenu with my own functionalities.


    Hello World!!!

  2. #2
    Guest

    Re: context menu of Edit Control

    OK I'm still pretty new at this but I think this might work!!! First create your own class derived from CEdit, then add the OnContextMenu handler to that class. In the OnContextMenu handler I believe you can get a pointer to the CMenu object using something like this...

    CMenu* pMenu = GetMenu();

    Now I'm not 100% sure if this will work, but you may want to give it a try!!! Maybe someone with more experience could confirm this method or provide a better one????


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