CMFCRibbonCategory::FindByID

Retrieves the ribbon element associated with the specified command ID.

CMFCRibbonBaseElement* FindByID(
   UINT uiCmdID,
   BOOL bVisibleOnly = TRUE
) const;

Parameters

  • [in] uiCmdID
    Command ID associated with a ribbon element.

  • [in] bVisibleOnly
    TRUE to include quick access ribbon elements in the search; FALSE to exclude quick access ribbon elements in the search.

Return Value

Pointer to a ribbon element if the method was successful; otherwise NULL.

Requirements

Header: afxribboncategory.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonCategory Class

Change History

Date

History

Reason

October 2008

Updated whole topic.

Information enhancement.