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

CMFCRibbonBar::FindByData

Retrieves a pointer to a ribbon element if it has the specified data and visibility.

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

[in] dwData

The data associated with a ribbon element.

[in] bVisibleOnly

TRUE to search visible ribbon elements only; FALSE to search all ribbon elements.

A pointer to a ribbon element if it has the specified data and visibility; otherwise NULL.

A ribbon element is any control that you can add to the ribbon, such as a ribbon button, or a ribbon category, or a ribbon slider.

Header: afxribbonbar.h

Show:
© 2015 Microsoft