Partager via


CSliderCtrl::GetTicPos

Retrieves the current physical position of a tick mark in a slider control.

int GetTicPos(
   int nTic 
) const;

Parameters

  • nTic
    Zero-based index identifying a tick mark.

Return Value

The physical position, in client coordinates, of the specified tick mark or – 1 if nTic does not specify a valid index.

Requirements

Header: afxcmn.h

See Also

Reference

CSliderCtrl Class

Hierarchy Chart

CSliderCtrl::SetTic

CSliderCtrl::GetTic

CSliderCtrl::SetTicFreq

CSliderCtrl::ClearTics

Other Resources

CSliderCtrl Members