text: #ifndef __UIPROGRESS_H__
  #define __UIPROGRESS_H__
  
  #pragma once
  
  namespace DirectUI
  {
  	class DirectUI_API CProgressUI : public CLabelUI
  	{
  	public:
  		CProgressUI();
  
  		LPCTSTR GetClass() const;
  		LPVOID GetInterface(LPCTSTR pstrName);
  
  		bool IsHorizontal();
  		void SetHorizontal(bool bHorizontal = true);
  		bool IsStretchForeImage();
  		void SetStretchForeImage(bool bStretchForeImage = 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);
  
  		SIZE EstimateSize(SIZE szAvailable);
  
  	protected:
  		bool m_bHorizontal;
  		bool m_bStretchForeImage;
  		int m_nMax;
  		int m_nMin;
  		int m_nValue;
  
  		CUIString m_sForeImage;
  		CUIString m_sForeImageModify;
  	};
  
  } // namespace DirectUI
  
  #endif // __UIPROGRESS_H__
  