I have this Trackbar with the handle of 'hTrackVolume' and with a control ID of 104. I have set up all of it's parameters. But it's useless if I don't know how to detect it's position. How do I do that?
Thanks in advance, August.
I have this Trackbar with the handle of 'hTrackVolume' and with a control ID of 104. I have set up all of it's parameters. But it's useless if I don't know how to detect it's position. How do I do that?
Thanks in advance, August.
Trackbar notifications are sent to the trackbar's parent as WM_HSCROLL and WM_VSCROLL messages depending on the orientation of the trackbar. You can send a TBM_GETPOS message to the trackbar to get its position.
For more details refer to the Trackbar Notification Messages section on this msdn page.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.