Hi,

Is it possible to extend context menu of an edit control?

I can read its handle, but i cant do InsertMenuItem() and cant read its items using GetMenuItemInfo (in this case i could clone original menu items, and add my own items), i cant even get item count using GetMenuItemCount(), so is there any way to extend it?
Posted on 2003-11-03 11:11:28 by bart
I've never investigated the method you tried - but when I needed something similar recently, I sub-classed the edit control and handled the WM_CONTEXTMENU message myself
Posted on 2003-11-04 10:31:11 by eGo
Hi,

I havent tried it, but subclassing edit control and insert additional menu items at message WM_INITMENUPOPUP may do what you want.

Japheth
Posted on 2003-11-04 23:12:50 by japheth