static void setGroupListBoxValues(CListBox &GroupListBox, const CGroupList &GroupList) { GroupListBox.ResetContent(); CGroupList::EConstIterator it; for (it = GroupList.Begin(); !it.IsDone(); it++) { CString tmpCStr; tmpCStr = _TEXT("["); tmpCStr += ((*it).m_Label); tmpCStr += _TEXT("] "); GroupListBox.AddString(tmpCStr); } }