Share via


COleDocument::OnUpdatePasteMenu

Called by the framework to determine whether an embedded OLE item can be pasted from the Clipboard.

afx_msg void OnUpdatePasteMenu(
   CCmdUI* pCmdUI 
);

Parameters

  • pCmdUI
    A pointer to a CCmdUI structure that represents the menu that generated the update command. The update handler calls the Enable member function of the CCmdUI structure through pCmdUI to update the user interface.

Remarks

The Paste menu command and button are enabled or disabled depending on whether the item can be pasted into the document or not.

Requirements

Header: afxole.h

See Also

Reference

COleDocument Class

Hierarchy Chart

COleDocument::OnUpdatePasteLinkMenu

CCmdUI Class

Other Resources

COleDocument Members