How to set MFC slider control jump value?

D.D.K-2637 966 Reputation points
2021-05-21T10:03:44.82+00:00

Hi,
How can I calculate the slider control's jump magnitude.
suppose my setting m_sliderCtrl.SetRange(0, 100, TRUE);
Can I set each jump to 5?

Developer technologies | C++
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 122.6K Reputation points
    2021-05-21T11:05:20.9+00:00

    Try something like this:

    m_sliderCtrl.SetLineSize(5);
    m_sliderCtrl.SetPageSize(20);
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.