Click to See Complete Forum and Search --> : context menu of Edit Control


balak yap
May 4th, 1999, 10:36 PM
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!!!

May 6th, 1999, 01:28 AM
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????