Ah, ok.
Then something like this.
Initialize your slider with:
Code:
	m_slider.SetRange(0,10);
	m_slider.SetTic(5);
	m_slider.SetTic(6);
	m_slider.SetTic(7);
	m_slider.SetTic(8);
	m_slider.SetTic(9);
Then handle TRBN_THUMBPOSCHANGING as follows:
Code:
void CslidertestDlg::OnThumbposchangingSlider1(NMHDR *pNMHDR, LRESULT *pResult)
{
	// This feature requires Windows Vista or greater.
	// The symbol _WIN32_WINNT must be >= 0x0600.
	NMTRBTHUMBPOSCHANGING *pNMTPC = reinterpret_cast<NMTRBTHUMBPOSCHANGING *>(pNMHDR);
	if (pNMTPC->dwPos >= 0 && pNMTPC->dwPos <= 2)
	{
		m_slider.SetPos(0);
		*pResult = 1;
	}
	else if (pNMTPC->dwPos > 2 && pNMTPC->dwPos <= 5)
	{
		m_slider.SetPos(5);
		*pResult = 1;
	}
	else
		*pResult = 0;
}