IRichEditOleCallback::GetContextMenu  110CO31

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.

See Also

CHARRANGE, IRichEditOleCallback