Condividi tramite


CMFCToolBar::HitTest

Returns the index of the toolbar button that is located at the specified position.

virtual int HitTest(
   CPoint point 
);

Parameters

  • [in] point
    The point to be tested, in client coordinates.

Return Value

The index of the button that is located at the specified position, or -1 if there is no such button or the button is a separator.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart