BCGControlBar Pro for MFC
virtual CBCGPBaseRibbonElement* CBCGPRibbonBar::HitTest ( CPoint  point,
BOOL  bCheckActiveCategory = FALSE,
BOOL  bCheckPanelCaption = FALSE 
)
virtual

Returns a pointer to a ribbon element located at the specified point.

Returns
A pointer to ribbon element, or NULL if there is no ribbon element located at the specified point.

Use this function to find a ribbon element located at point in ribbon bar's client coordinates.

Parameters
pointSpecifies a point in ribbon client coordinates.
bCheckActiveCategoryIf TRUE, the active category will be searched.
bCheckPanelCaptionIf TRUE, panel caption of active category will be searched.