newntui/activex/groupscombo/src/groupscomboctl.cpp
//-------------------------------------------------------------------------------------
// This function will calculate all elements which are common to the selected groups
// and add them to the group named "name"
// It will scan groups list to detect all selected groups.
//-------------------------------------------------------------------------------------
This function will calculate all elements which are common to the selected groups
and add them to the group named "name"
It will scan groups list to detect all selected groups.
This function will calculate all elements which are common to the selected groups and add them to the group named " name " It will scan groups list to detect all selected groups .
void CGroupsComboCtrl::MakeGroupsIntersect(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 intersect %s group@%s",
				                 name,
								 m_ElementsList.GetItemText(i,0));
		   EvaluateSync(serverQuery);
	   }
   }
}
void CGroupsComboCtrl :: MakeGroupsIntersect ( 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 calculate all elements which are common to the selected groups
and add them to the group named "name"
It will scan groups list to detect all selected groups.
This function will calculate all elements which are common to the selected groups and add them to the group named " name " It will scan groups list to detect all selected groups .