|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
The framework calls this function as part of the processing of IRichEditOleCallback::GetContextMenu.
This function is a typical part of right mouse-button down processing.
The selection type can be any combination of the following flags:
SEL_EMPTY Indicates that there is no current selection.
SEL_TEXT Indicates that the current selection contains text.
SEL_OBJECT Indicates that the current selection contains at least one OLE item.
SEL_MULTICHAR Indicates that the current selection contains more than one character of text.
SEL_MULTIOBJECT Indicates that the current selection contains more than one OLE object.
The default implementation returns NULL. This is an advanced overridable.
For more information on the OLEOBJECT type, see the OLE Data Structures and Structure Allocation article in the OLE Knowledge Base.