1370b324cSopenharmony_ci// Windows/Control/ProgressBar.h
2370b324cSopenharmony_ci
3370b324cSopenharmony_ci#ifndef ZIP7_INC_WINDOWS_CONTROL_PROGRESSBAR_H
4370b324cSopenharmony_ci#define ZIP7_INC_WINDOWS_CONTROL_PROGRESSBAR_H
5370b324cSopenharmony_ci
6370b324cSopenharmony_ci#include "../../Common/MyWindows.h"
7370b324cSopenharmony_ci
8370b324cSopenharmony_ci#include <CommCtrl.h>
9370b324cSopenharmony_ci
10370b324cSopenharmony_ci#include "../Window.h"
11370b324cSopenharmony_ci
12370b324cSopenharmony_cinamespace NWindows {
13370b324cSopenharmony_cinamespace NControl {
14370b324cSopenharmony_ci
15370b324cSopenharmony_ciclass CProgressBar: public CWindow
16370b324cSopenharmony_ci{
17370b324cSopenharmony_cipublic:
18370b324cSopenharmony_ci  LRESULT SetPos(int pos) { return SendMsg(PBM_SETPOS, (unsigned)pos, 0); }
19370b324cSopenharmony_ci  // LRESULT DeltaPos(int increment) { return SendMsg(PBM_DELTAPOS, increment, 0); }
20370b324cSopenharmony_ci  // UINT GetPos() { return (UINT)SendMsg(PBM_GETPOS, 0, 0); }
21370b324cSopenharmony_ci  // LRESULT SetRange(unsigned short minValue, unsigned short maxValue) { return SendMsg(PBM_SETRANGE, 0, MAKELPARAM(minValue, maxValue)); }
22370b324cSopenharmony_ci  DWORD SetRange32(int minValue, int maxValue) { return (DWORD)SendMsg(PBM_SETRANGE32, (unsigned)minValue, (LPARAM)(unsigned)maxValue); }
23370b324cSopenharmony_ci  // int SetStep(int step) { return (int)SendMsg(PBM_SETSTEP, step, 0); }
24370b324cSopenharmony_ci  // LRESULT StepIt() { return SendMsg(PBM_STEPIT, 0, 0); }
25370b324cSopenharmony_ci  // INT GetRange(bool minValue, PPBRANGE range) { return (INT)SendMsg(PBM_GETRANGE, BoolToBOOL(minValue), (LPARAM)range); }
26370b324cSopenharmony_ci
27370b324cSopenharmony_ci  #ifndef UNDER_CE
28370b324cSopenharmony_ci  COLORREF SetBarColor(COLORREF color) { return (COLORREF)SendMsg(PBM_SETBARCOLOR, 0, (LPARAM)color); }
29370b324cSopenharmony_ci  COLORREF SetBackgroundColor(COLORREF color) { return (COLORREF)SendMsg(PBM_SETBKCOLOR, 0, (LPARAM)color); }
30370b324cSopenharmony_ci  #endif
31370b324cSopenharmony_ci};
32370b324cSopenharmony_ci
33370b324cSopenharmony_ci}}
34370b324cSopenharmony_ci
35370b324cSopenharmony_ci#endif
36