Поделиться через


COleDocument::OnUpdateEditLinksMenu

Called by the framework to update the Links command on the Edit menu.

afx_msg void OnUpdateEditLinksMenu( 
   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

Starting with the first OLE item in the document, OnUpdateEditLinksMenu accesses each item, tests whether the item is a link, and, if it is a link, enables the Links command. Override this function to change the behavior.

Requirements

Header: afxole.h

See Also

Reference

COleDocument Class

Hierarchy Chart

COleDocument::OnEditLinks

COleDocument::GetStartPosition

COleDocument::GetNextClientItem

CCmdUI Class