BCGControlBar Pro for MFC
virtual BOOL CBCGPWorkspace::OnEditCtrlContextMenu ( CBCGPEdit pEdit,
const CPoint &  point 

Called by the framework when edit control's context menu should be displayed.

pEditA pointer to the edit control.
pointA point in the screen coordinates where context menu should be displayed or (-1, -1) if menu was invoked by keyboard.
Return TRUE if a custom context menu has been displayed. FALSE - display a default (system) context menu.