diff options
Diffstat (limited to 'alf/alf.h')
| -rw-r--r-- | alf/alf.h | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -685,6 +685,44 @@ ALF_SpinBox_EditControl(HWND spinbox); HWND ALF_SpinBox_UpDownControl(HWND spinbox); +// progress +enum ALFProgressState { + ALF_PROGRESS_STATE_NORMAL = 1, //==PBST_NORMAL + ALF_PROGRESS_STATE_ERROR = 2, //==PBST_ERROR FIXME! only supported in native commctl v6 progress bar on Vista+ + ALF_PROGRESS_STATE_PAUSED = 3, //==PBST_PAUSED FIXME! only supported in native commctl v6 progress bar on Vista+ + ALF_PROGRESS_STATE_INDETERMINATE = 4, + ALF_PROGRESS_STATE_HIDDEN = 5 // TODO: define semantics and implement +}; + +HWND +ALF_AddNativeProgressBar(HWND parent, WORD id, int x, int y); + +HWND +ALF_AddProgressGauge(HWND parent, WORD id, int x, int y); + +// creates a native progress bar on commctlv6 (XP+), a selfmade progress gauge otherwise +HWND +ALF_AddProgressBar(HWND parent, WORD id, int x, int y); + +void +ALF_Progress_Range(HWND progress, int *pMin, int *pMax); + +void +ALF_Progress_SetRange(HWND progress, int min, int max); + +int +ALF_Progress_Value(HWND progress); + +void +ALF_Progress_SetValue(HWND progress, int value); + +enum ALFProgressState +ALF_Progress_State(HWND progress); + +void +ALF_Progress_SetState(HWND progress, enum ALFProgressState state); + + #ifdef __cplusplus } // extern C #endif |
