Original Post
🔒 Locked
slider bars
Advertisement
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
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
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement