IContextMenuProvider::EmptyMenuList

[This is preliminary documentation and subject to change.]

Clears a context menu.

HRESULT EmptyMenuList( )

This method has no parameters.

Return Values

S_OK
The context menu was cleared.

Remarks

IContextMenuProvider::ShowContextMenu automatically clears the context menu after displaying it. Nevertheless, it is a good practice to call EmptyMenuList before beginning to build a context menu.

See Also

IContextMenuProvider