question

DangDKhanh-2637 avatar image
0 Votes"
DangDKhanh-2637 asked DangDKhanh-2637 commented

How to set MFC slider control jump value?

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?

c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Viorel-1 avatar image
0 Votes"
Viorel-1 answered DangDKhanh-2637 commented

Try something like this:

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


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
Exactly what I need.
Thanks you!

0 Votes 0 ·