IRichEditOleCallback::GetContextMenu
Queries the application for a context menu to use on a right mouse down.
HRESULT GetContextMenu(
WORD seltyp,
LPOLEOBJECT lpoleobj,
CHARRANGE FAR *lpchrg,
HMENU FAR *lphmenu
);
Parameters
-
seltype
-
selection type
-
lpoleobj
-
Pointer to a OLEOBJECT structure specifying the first selected OLE object if the selection contains one or more objects NULL otherwise. The caller must use AddRef to increment the object reference count if it holds onto it.
-
lpchrg
-
Pointer to a CHARRANGE structure containing the current selection.
-
lphmenu
-
Pointer to a variable containing the handle of a context menu to use. This parameter is ignored if an error is returned. A rich edit control destroys the menu when it is finished with it so the client should not.
Return Values
Returns success status.
QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in richole.h.
See Also
Rich Edit Controls Overview, Rich Edit OLE Interfaces, CHARRANGE, IRichEditOleCallback