GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


. by .
1
 
// Find if item is in data list
for( ; it != m_ItemData.end(); ++it ) {
    if( std::string(m_Name) == (*it).m_Name ) {
        (*it) = newItem;
                    
        // Find and update item in listbox
        for( int pos = 0; pos < m_ItemList.GetItemCount(); ++pos ) {    
            if( m_ItemList.GetItemText( pos, 1 ) == m_Name ) {
                m_ItemList.DeleteItem( pos ); 
                break;
            }
        }
        break;
    }
}