Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.