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.
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're only born perfect.
You can literally find this in a matter of seconds on MSDN. Anyway, you'll want to use the message TBM_GETPOS
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
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.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Continue this in the thread on the Windows board. Link in KF's post.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.