BuildTools
Qt
Src
Agave
Components
Elevator
Mastering
Plugins
ReplayGainAnalysis
WAT
Wasabi
Wasabi2
Winamp
aacPlus
aacdec
aacdec-mft
adpcm
alac
albumart
apev2
auth
bmp
burnlib
codesign
config
devices
external_dependencies
f263
filereader
freetypewac
gif
gracenote
h264
h264dec
id3v2
ie_plugin
installer
jpeg
libvp6
libvpShared
mp3-mpg123
mp4v
mpeg4dec
nde
nprt_plugin
ns-eel
ns-eel2
nsavi
nsmkv
nsutil
nsv
nsvdec_vp3
nsvdec_vp5
nsvdec_vp6
nswasabi
nu
threadpool
Alias.h
AudioOutput.h
AutoChar.h
AutoCharFn.h
AutoHeader.h
AutoLock.h
AutoUrl.h
AutoWide.h
AutoWideFn.h
CCVersion.cpp
CCVersion.h
CGlobalAtom.h
ChildSizer.cpp
ChildSizer.h
ComboBox.h
Config.h
ConfigCOM.cpp
ConfigCOM.h
DialogSkinner.cpp
DialogSkinner.h
GaplessRingBuffer.cpp
GaplessRingBuffer.h
GrowBuf.h
HTMLContainer.cpp
HTMLContainer.h
HTMLContainer2.cpp
HTMLContainer2.h
LockFreeItem.h
LockFreeStack.h
MainThread.cpp
MainThread.h
MakeThunk.h
MediaLibraryInterface.cpp
MediaLibraryInterface.h
NonBlockLock.h
Nullsoft Utility Library.txt
Pairs.h
ProgressTracker.h
ReEntry.h
RedBlackTree.cpp
RedBlackTree.h
RingBuffer.cpp
RingBuffer.h
SampleQueue.h
SendTo.h
ServiceBuilder.h
ServiceWatcher.cpp
ServiceWatcher.h
Singleton.h
Slider.h
SpillBuffer.cpp
SpillBuffer.h
ThreadQueue.cpp
ThreadQueue.h
Vectors.h
VideoClock.h
bitbuffer.cpp
bitbuffer.h
cast64.h
comboskin.cpp
comboskin.h
cstrlib.cpp
cstrlib.h
dispatchTable.h
factoryt.h
listview.cpp
listview.h
menuHelpers.cpp
menuHelpers.h
menushortcuts.cpp
menushortcuts.h
mtbrowser.cpp
mtbrowser.h
noarg.c
nochkclr.c
noenv.c
nomsgs.c
nonewthrow.c
nosec.c
ns_wc.h
refcount.h
regexp.cpp
regexp.h
simple_rwlock.h
smalheap.c
sort.cpp
sort.h
strsafe.c
strsafe.h
strsafe.sln
strsafe.vcproj
threadname.h
trace.cpp
trace.h
wa_str.h
windowsTheme.cpp
windowsTheme.h
winstr.c
omBrowser
pcm
pfc
playlist
plist
png
replicant
resources
tagz
tataki
theora
timer
vlb
vp32
vp6
vp8x
wbm
winampAll
winampa
xml
xspf
vcpkg-ports
.gitignore
LICENSE.md
README.md
automate-git.py
cef_x86.bat
install-packages.cmd
vcpkg_version_finder.py
winampAll_2019.sln
35 lines
602 B
C++
35 lines
602 B
C++
#pragma once
|
|
#include <windows.h>
|
|
#include <commctrl.h>
|
|
class Slider
|
|
{
|
|
public:
|
|
|
|
Slider(HWND hwndDlg, int id)
|
|
{
|
|
slider_hwnd = GetDlgItem(hwndDlg, id);
|
|
}
|
|
|
|
void SetRange(WORD low, WORD high, BOOL redraw = TRUE)
|
|
{
|
|
SendMessage(slider_hwnd, TBM_SETRANGE, redraw, MAKELONG(low,high));
|
|
}
|
|
|
|
void SetPosition(LPARAM position, BOOL redraw = TRUE)
|
|
{
|
|
SendMessage(slider_hwnd, TBM_SETPOS, redraw, position);
|
|
}
|
|
|
|
void SetTickFrequency(LPARAM frequency)
|
|
{
|
|
SendMessage(slider_hwnd, TBM_SETTICFREQ, frequency, 0);
|
|
}
|
|
|
|
enum
|
|
{
|
|
NO_REDRAW = FALSE,
|
|
REDRAW = TRUE,
|
|
};
|
|
private:
|
|
HWND slider_hwnd;
|
|
}; |