Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

context menu for rich edit

Status
Not open for further replies.

serpem

Programmer
Feb 20, 2003
22
US
I am trying to implement a context menu for a rich edit view that displays the Edit submenu of the main menu. I have heard about the IRichEditOleCallback::GetContextMenu()
method of CRichEditView, but I am not familiar with how to use it. does anyone know how?
thanks.
 
In your class derived from CRichEditCtrl (or CRichEditView) you must handle the WM_RBUTTONUP message

For actually displaying the menu look at CMenu::TrackPopupMenu.

Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top