newntui/discovermdi/src/simplifyselection.cpp
//-----------------------------------------------------------------------------------------
// This function will be called from the simplify tree view to update item status.
// Possible valuse of the status are :
//  0 - item was not processed
//  1 - item was processed, file was not updated
//  2 - item was processed, file was updated.
//------------------------------------------------------------------------------------------
This function will be called from the simplify tree view to update item status.
Possible valuse of the status are :
0 - item was not processed
1 - item was processed, file was not updated
2 - item was processed, file was updated.
This function will be called from the simplify tree view to update item status . Possible valuse of the status are : 0 - item was not processed 1 - item was processed file was not updated 2 - item was processed file was updated .
void CSimplifySelection::SetItemStatus(int item, int status) {
CString text;
    if(item<0) return;
	m_List.SetItem( item,0,LVIF_IMAGE,"", status,0,0,0);
	switch(status) {
	    case 0 :m_List.SetItemText(item,1,"Unprocessed");break;
		case 1 :m_List.SetItemText(item,1,"Visited");    break;
		case 2 :m_List.SetItemText(item,1,"Updated");    break;
	}
}
void CSimplifySelection :: SetItemStatus ( int item , int status ) { CString text ; if ( item < 0 ) return ; m_List . SetItem ( item , 0 , LVIF_IMAGE , " " , status , 0 , 0 , 0 ) ; switch ( status ) { case 0 : m_List . SetItemText ( item , 1 , " " ) ; break ; case 1 : m_List . SetItemText ( item , 1 , " " ) ; break ; case 2 : m_List . SetItemText ( item , 1 , " " ) ; break ; } }
This function will be called from the simplify tree view to update item status.
This function will be called from the simplify tree view to update item status .