Expand Minimize
This topic has not yet been rated - Rate this topic

CMFCRibbonCategory::HitTest

Retrieves a pointer to a ribbon element if the specified point is located in it.

CMFCRibbonBaseElement* HitTest(
   CPoint point,
   BOOL bCheckPanelCaption = FALSE
) const;
[in] point

The x and y coordinates of the mouse pointer, relative to the upper-left corner of the window.

[in] bCheckPanelCaption

TRUE to test the ribbon panel caption; FALSE to exclude the ribbon panel caption.

Pointer to a ribbon element if the method was successful; otherwise NULL.

Only ribbon elements that are contained in the ribbon category are tested.

Header: afxribboncategory.h

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.