Поделиться через


CDragListBox::ItemFromPt

Call this function to retrieve the zero-based index of the list box item located at pt.

int ItemFromPt(
   CPoint pt,
   BOOL bAutoScroll = TRUE 
) const;

Parameters

  • pt
    A CPoint object containing the coordinates of a point within the list box.

  • bAutoScroll
    Nonzero if scrolling is allowed, otherwise 0.

Return Value

Zero-based index of the drag list box item.

Requirements

Header: afxcmn.h

See Also

Reference

CDragListBox Class

Hierarchy Chart

Other Resources

CDragListBox Members