Compartilhar via


CSliderCtrl::SetTicFreq

Sets the frequency with which tick marks are displayed in a slider.

void SetTicFreq(
   int nFreq 
);

Parameters

  • nFreq
    Frequency of the tick marks.

Remarks

For example, if the frequency is set to 2, a tick mark is displayed for every other increment in the slider's range. The default setting for the frequency is 1 (that is, every increment in the range is associated with a tick mark).

You must create the control with the TBS_AUTOTICKS style to use this function. For more information, see CSliderCtrl::Create.

Requirements

Header: afxcmn.h

See Also

Reference

CSliderCtrl Class

Hierarchy Chart

CSliderCtrl::Create

CSliderCtrl::SetTic

CSliderCtrl::GetTicArray

Other Resources

CSliderCtrl Members