Vs 2008
MFC
C ++
Win7 64bit
If you want the slider control to achieve the effect of moving the slider to where the mouse clicks it, just like the progress bar and volume of the player
When a normal slider control is clicked, only a fixed Distance length will be moved.
So I thought of reloading this class and implementing this function myself.
An article found onlineArticle
Http://blog.csdn.net/shen_wei/article/details/6692458
But there is still a problem,
1. When you want to pull the slider, it is difficult to get the slider with the mouse (when you click the mouse, you can directly respond to the overloaded lbuttondown function)
2. When the mouse clicks slider to the rightmost, it will jump directly to the end, which is very strange and cannot find the reason (in this case, someone asked online, but I cannot find the webpage)
After thinking a lot of ways, I feel like this is definitely not possible.
Then I went to the codeproject to find the ready-made controls. It took a long time to find them.
Cbitmapslider
Http://www.codeproject.com/Articles/4850/CBitmapSlider