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

CMFCRibbonBar::HitTest

Retrieves a pointer to the ribbon element specified by the location of the point.

virtual CMFCRibbonBaseElement* HitTest(
   CPoint point,
   BOOL bCheckActiveCategory = FALSE,
   BOOL bCheckPanelCaption = FALSE 
);

[in] point

Location of the point in ribbon bar coordinates.

[in] bCheckActiveCategory

TRUE to search the active category; FALSE not to search the active category.

[in] bCheckPanelCaption

TRUE to test the caption of the ribbon panel with the point located in it; FALSE not to test the caption of the ribbon panel with the point located in it. See the Remarks section for more information.

A pointer to the ribbon element located at the specified point; otherwise NULL if the point is not located in a ribbon element.

The caption of the ribbon panel with the point located in it is not tested unless the bCheckActiveCategory parameter is TRUE.

Header: afxribbonbar.h

Show:
© 2015 Microsoft