Compartilhar via


CTabCtrl::HitTest

Determines which tab, if any, is at the specified screen position.

int HitTest(
  TCHITTESTINFO* pHitTestInfo 
) const;

Parameters

  • pHitTestInfo
    Pointer to a TCHITTESTINFO structure, as described in the Windows SDK, which specifies the screen position to test.

Return Value

Returns the zero-based index of the tab or – 1 if no tab is at the specified position.

Requirements

Header: afxcmn.h

See Also

Reference

CTabCtrl Class

Hierarchy Chart

Other Resources

CTabCtrl Members