Using Slider control in Win32
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
can anyone help in using the Slider control in win32. I have the handle of the dailog item. I mean The slider control on dialog. and now I want to do SetRange and SetPos.
"A winner is not one who never fails...but the one who never quits"
To set range: BOOL fRedraw = TRUE; WORD Min = 0; WORD Max = 100; SendMessage(hwndTrackbar, TBM_SETRANGE, (WPARAM)fRedraw, (LPARAM)MAKELONG(Min,Max)); To set position: BOOL fRedraw = TRUE; LONG Position = 50; SendMessage(hwndTrackbar, TBM_SETPOS, (WPARAM)fRedraw, (LPARAM)Position);