Archived

This topic is now archived and is closed to further replies.

slider bars

This topic is 5093 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am assuming when you say no MFC, that you would like to do it in Win32 API. I have never used slider bars in Win32 but i can point you in the direction of where to find great information.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/trackbar/messages/tbm_getpos.asp

msdn is really an amazing place.

More information i found on it, is it is called a track bar and i found this code in some projects i was looking at :

hTrack = GetDlgItem(hWnd,IDC_TAB3_Track);
SendMessage(hTrack,TBM_SETRANGE,
FALSE,(LPARAM) MAKELONG(0,20));
SendMessage(hTrack,TBM_SETTICFREQ,(LPARAM) 1,0);
SendMessage(hTrack,TBM_SETPAGESIZE,FALSE,(LPARAM) 1);
SendMessage(hTrack,TBM_SETPOS,TRUE,(LPARAM) 0);

You can look up those TBM_messages and see what they do and hopefully you will easily be able to find one to find the current value of it!

I think i found it: TBM_GETPOS

Hope that helps

"What we do in life, echos in eternity" -- Gladiator

Share this post


Link to post
Share on other sites