newntui/activex/groupscombo/src/groupscomboctl.cpp
//-------------------------------------------------------------------------------------
// This function will add all groups elements to the group with name "name"
// It will scan groups list to detect all selected groups.
//-------------------------------------------------------------------------------------
This function will add all groups elements to the group with name "name"
It will scan groups list to detect all selected groups.
This function will add all groups elements to the group with name " name " It will scan groups list to detect all selected groups .
void CGroupsComboCtrl::MakeGroupsConcat(CString& name) {
register i;
CString serverQuery;
   for(i=0;i<m_ElementsList.GetItemCount();i++) {
      if(m_ElementsList.GetItemState(i,LVIS_SELECTED)!=0) {
	     serverQuery.Format("group add %s group@%s",
				             name, m_ElementsList.GetItemText(i,0));
		 EvaluateSync(serverQuery);
	  }
   }
}
void CGroupsComboCtrl :: MakeGroupsConcat ( CString & name ) { register i ; CString serverQuery ; for ( i = 0 ; i < m_ElementsList . GetItemCount ( ) ; i ++ ) { if ( m_ElementsList . GetItemState ( i , LVIS_SELECTED ) != 0 ) { serverQuery . Format ( " " , name , m_ElementsList . GetItemText ( i , 0 ) ) ; EvaluateSync ( serverQuery ) ; } } }
This function will add all groups elements to the group with name "name"
It will scan groups list to detect all selected groups.
This function will add all groups elements to the group with name " name " It will scan groups list to detect all selected groups .
// Searching all  selected groups