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.
Printable View
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.
You can't using standard C/C++. You can using whatever OS platform you use as a target for your project. This site offers boards specializing in C#, Windows and Linux OS. Posting on the board appropriate for your target is the best idea I can give you at the moment.
You can literally find this in a matter of seconds on MSDN. Anyway, you'll want to use the message TBM_GETPOS
I don't know how or where or with what functon I need to use it though.
Could you enlighten me?
Something like:
Code:DWORD dwPos;
dwPos = SendDlgItemMessage(hDlg, IDC_SLIDER1, TBM_GETPOS, 0, 0);
You've been here long enough, Cool-August, to know not to cross-post(see 4.):
http://cboard.cprogramming.com/showthread.php?t=68993
It's also a windows specific question.
Continue this in the thread on the Windows board. Link in KF's post.