|
-
May 4th, 1999, 10:36 PM
#1
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!!!
-
May 6th, 1999, 01:28 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|