/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2007.09.11 * ³» ¿ë : »ö »óÀÚ ±×·ì * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once class cColorBox; /// »ö »óÀÚ ±×·ì class cColorBoxGroup { friend class cColorBox; public: cColorBoxGroup(); ~cColorBoxGroup(); /// üũµÈ »óÀÚÀ» ¼³Á¤ void SetCheckedBox( int id ); void SetCheckedBox( cColorBox* box ); /// üũµÈ »óÀÚÀ» ¸®ÅÏ cColorBox* GetCheckedBox() const; int GetCheckedBoxIndex() const; protected: /// »óÀÚÀ» Ãß°¡ void Add( cColorBox* box ); /// »óÀÚÀ» Á¦°Å bool Remove( unsigned int index ); protected: /// »óÀÚ ¹è¿­ typedef tArray cBoxArray; cBoxArray mBoxArray; /// üũµÈ »óÀÚ cColorBox* mCheckedBox; }; inline cColorBox* cColorBoxGroup::GetCheckedBox() const { return mCheckedBox; }