mirror of
https://github.com/duilib/duilib.git
synced 2026-10-18 06:46:58 +08:00
02d1ed8832
2、修正了若干bug
42 lines
832 B
C++
42 lines
832 B
C++
#ifndef __UIPROGRESS_H__
|
|
#define __UIPROGRESS_H__
|
|
|
|
#pragma once
|
|
|
|
namespace DuiLib
|
|
{
|
|
class DUILIB_API CProgressUI : public CLabelUI
|
|
{
|
|
public:
|
|
CProgressUI();
|
|
|
|
LPCTSTR GetClass() const;
|
|
LPVOID GetInterface(LPCTSTR pstrName);
|
|
|
|
bool IsHorizontal();
|
|
void SetHorizontal(bool bHorizontal = true);
|
|
int GetMinValue() const;
|
|
void SetMinValue(int nMin);
|
|
int GetMaxValue() const;
|
|
void SetMaxValue(int nMax);
|
|
int GetValue() const;
|
|
void SetValue(int nValue);
|
|
LPCTSTR GetForeImage() const;
|
|
void SetForeImage(LPCTSTR pStrImage);
|
|
|
|
void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
|
|
void PaintStatusImage(HDC hDC);
|
|
|
|
protected:
|
|
bool m_bHorizontal;
|
|
int m_nMax;
|
|
int m_nMin;
|
|
int m_nValue;
|
|
|
|
TDrawInfo m_diFore;
|
|
};
|
|
|
|
} // namespace DuiLib
|
|
|
|
#endif // __UIPROGRESS_H__
|