Retrieves a pointer to the ribbon element specified by the location of the point.
virtual CMFCRibbonBaseElement* HitTest(
BOOL bCheckActiveCategory = FALSE,
BOOL bCheckPanelCaption = FALSE
Location of the point in ribbon bar coordinates.
to search the active category; FALSE not to search the active category.
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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback