BCGControlBar Pro for MFC
virtual BOOL CBCGPRibbonBar::OnFilterSearchResult ( const CBCGPBaseRibbonElement )

Called before a search result is added to the list of results.

Override this method in a derived class to perform custom filtering of search results. You have to return FALSE if the result should be excluded from the list. The default implementation does nothing and returns TRUE.