/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2007.09.11 * ³» ¿ë : À̹ÌÁö ¹öư ±×·ì * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once class cImageButton; /// À̹ÌÁö ¹öư ±×·ì class cImageButtonGroup { friend class cImageButton; public: cImageButtonGroup(); ~cImageButtonGroup(); /// üũµÈ ¹öưÀ» ¼³Á¤ void SetCheckedButton( int id ); void SetCheckedButton( cImageButton* button ); /// üũµÈ ¹öưÀ» ¸®ÅÏ cImageButton* GetCheckedButton() const; int GetCheckedButtonIndex() const; protected: /// ¹öưÀ» Ãß°¡ void Add( cImageButton* button ); /// ¹öưÀ» Á¦°Å bool Remove( unsigned int index ); protected: /// ¹öư ¹è¿­ typedef tArray cButtonArray; cButtonArray mButtonArray; /// üũµÈ ¹öư cImageButton* mCheckedButton; }; inline cImageButton* cImageButtonGroup::GetCheckedButton() const { return mCheckedButton; }