Ruth
Ruth

Reputation: 31

How do I get the trackbar value?

I feel a little silly asking this, seems pretty simple but I can't find the solution anywhere. I have a trackbar made in visual studio 2008 and I want to use it to adjust an image threshold but I can't find the code to retrieve the sliders/markers position. Any help would be much appreciated and I am using C++

Upvotes: 1

Views: 2455

Answers (1)

jamesdlin
jamesdlin

Reputation: 90055

For raw Win32, send the trackbar a TBM_GETPOS message.

Trackbar messages: http://msdn.microsoft.com/en-us/library/ff486075%28VS.85%29.aspx

Upvotes: 1

Related Questions