Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Retrieves the ribbon element associated with the specified data.

CMFCRibbonBaseElement* FindByData(
   DWORD_PTR dwData,
   BOOL bVisibleOnly = TRUE
) const;

[in] dwData

The data 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.

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

Header: afxribboncategory.h

© 2015 Microsoft