1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/7zstub/src/Windows/Control/ProgressBar.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +// Windows/Control/ProgressBar.h 1.5 + 1.6 +#ifndef __WINDOWS_CONTROL_PROGRESSBAR_H 1.7 +#define __WINDOWS_CONTROL_PROGRESSBAR_H 1.8 + 1.9 +#include "Windows/Window.h" 1.10 +#include "Windows/Defs.h" 1.11 + 1.12 +namespace NWindows { 1.13 +namespace NControl { 1.14 + 1.15 +class CProgressBar: public CWindow 1.16 +{ 1.17 +public: 1.18 + LRESULT SetPos(int pos) 1.19 + { return SendMessage(PBM_SETPOS, pos, 0); } 1.20 + LRESULT DeltaPos(int increment) 1.21 + { return SendMessage(PBM_DELTAPOS, increment, 0); } 1.22 + UINT GetPos() 1.23 + { return SendMessage(PBM_GETPOS, 0, 0); } 1.24 + LRESULT SetRange(unsigned short minValue, unsigned short maxValue) 1.25 + { return SendMessage(PBM_SETRANGE, 0, MAKELPARAM(minValue, maxValue)); } 1.26 + DWORD SetRange32(int minValue, int maxValue) 1.27 + { return SendMessage(PBM_SETRANGE32, minValue, maxValue); } 1.28 + int SetStep(int aStep) 1.29 + { return SendMessage(PBM_SETSTEP, aStep, 0); } 1.30 + int StepIt() 1.31 + { return SendMessage(PBM_STEPIT, 0, 0); } 1.32 + 1.33 + int GetRange(bool minValue, PPBRANGE range) 1.34 + { return SendMessage(PBM_GETRANGE, BoolToBOOL(minValue), (LPARAM)range); } 1.35 + 1.36 + COLORREF SetBarColor(COLORREF color) 1.37 + { return SendMessage(PBM_SETBARCOLOR, 0, color); } 1.38 + COLORREF SetBackgroundColor(COLORREF color) 1.39 + { return SendMessage(PBM_SETBKCOLOR, 0, color); } 1.40 +}; 1.41 + 1.42 +}} 1.43 + 1.44 +#endif 1.45 \ No newline at end of file