Udostępnij za pośrednictwem


CMFCRibbonPanel::HitTestEx

Retrieves the zero-based index of the ribbon element that has the specified point located in it.

virtual int HitTestEx(
   CPoint point
) const;

Parameters

  • [in] point
    The x and y coordinates of the pointer, relative to the upper-left corner of the window.

Return Value

The zero-based index of the ribbon element that has the specified point located in it; otherwise -1.

Remarks

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

Requirements

Header: afxribbonpanel.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonPanel Class

Change History

Date

History

Reason

October 2008

Updated whole topic.

Information enhancement.