共用方式為


CMFCRibbonCategory::GetPanelFromPoint

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

CMFCRibbonPanel* GetPanelFromPoint(
   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

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

Remarks

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

Requirements

Header: afxribboncategory.h

See Also

Reference

CMFCRibbonCategory Class

Hierarchy Chart