1 // Windows/Control/Trackbar.h
\r
3 #ifndef __WINDOWS_CONTROL_TRACKBAR_H
\r
4 #define __WINDOWS_CONTROL_TRACKBAR_H
\r
6 #include "Windows/Window.h"
\r
7 #include "Windows/Defs.h"
\r
10 namespace NControl {
\r
12 class CTrackbar: public CWindow
\r
15 void SetRange(int minimum, int maximum, bool redraw = true)
\r
16 { SendMessage(TBM_SETRANGE, BoolToBOOL(redraw), MAKELONG(minimum, maximum)); }
\r
17 void SetPos(int pos, bool redraw = true)
\r
18 { SendMessage(TBM_SETPOS, BoolToBOOL(redraw), pos); }
\r
19 void SetTicFreq(int freq)
\r
20 { SendMessage(TBM_SETTICFREQ, freq); }
\r
23 { return (int)SendMessage(TBM_GETPOS); }
\r