text: #ifndef __UIOPTION_H__
  #define __UIOPTION_H__
  
  #pragma once
  
  namespace UiLib
  {
  	class UILIB_API COptionUI : public CButtonUI
  	{
  	public:
  		COptionUI();
  		~COptionUI();
  
  		LPCTSTR GetClass() const;
  		LPVOID GetInterface(LPCTSTR pstrName);
  
  		void SetManager(CPaintManagerUI* pManager, CControlUI* pParent, bool bInit = true);
  
  		bool Activate();
  		void SetEnabled(bool bEnable = true);
  
  		LPCTSTR GetSelectedImage();
  		void SetSelectedImage(LPCTSTR pStrImage);
  
  		LPCTSTR GetSelectedHotImage();
  		void SetSelectedHotImage(LPCTSTR pStrImage);
  
  		LPCTSTR GetSelectedPushedImage();
  		void SetSelectedPushedImage(LPCTSTR pStrImage);
  
  		void SetSelectedTextColor(DWORD dwTextColor);
  		DWORD GetSelectedTextColor();
  
  		void SetSelectedBkColor(DWORD dwBkColor);
  		DWORD GetSelectBkColor();
  
  		LPCTSTR GetForeImage();
  		void SetForeImage(LPCTSTR pStrImage);
  
  		LPCTSTR GetSelectedForedImage();
  		void SetSelectedForedImage(LPCTSTR pStrImage);
  
  		LPCTSTR GetGroup() const;
  		void SetGroup(LPCTSTR pStrGroupName = NULL);
  		bool IsSelected() const;
  		virtual void Selected(bool bSelected);
  
  		SIZE EstimateSize(SIZE szAvailable);
  		void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  
  		void PaintStatusImage(HDC hDC);
  		void PaintText(HDC hDC);
  
  	protected:
  		bool			m_bSelected;
  		CDuiString		m_sGroupName;
  
  		DWORD			m_dwSelectedBkColor;
  		DWORD			m_dwSelectedTextColor;
  
  		CDuiString		m_sSelectedImage;
  		CDuiString		m_sSelectedHotImage;
  		CDuiString		m_sSelectedPushedImage;
  		CDuiString		m_sForeImage;
  		CDuiString		m_sSelectedForeImage;
  	};
  
  } // namespace UiLib
  
  #endif // __UIOPTION_H__