newntui/commonresources/src/filterlist.cpp
//----------------------------------------------------------------------------------------
// Callback runs every time the user selected different filter in the filter list.
// It will update the name edit field and command edit field to show the current filter
// name and command.
//----------------------------------------------------------------------------------------
Callback runs every time the user selected different filter in the filter list.
It will update the name edit field and command edit field to show the current filter
name and command.
Callback runs every time the user selected different filter in the filter list . It will update the name edit field and command edit field to show the current filter name and command .
void CFilterList::OnSelchangeSavelist()  {
int index=m_SaveList.GetCurSel();
    if(index==-1) return;
    index=m_SaveList.GetItemData(index);
	m_NameEdit.SetWindowText(m_AllFilters[index]->Name);
	m_CommandEdit.SetWindowText(m_AllFilters[index]->Command);
	SetModified(TRUE);
	UpdateParentName();
}
void CFilterList :: OnSelchangeSavelist ( ) { int index = m_SaveList . GetCurSel ( ) ; if ( index == -1 ) return ; index = m_SaveList . GetItemData ( index ) ; m_NameEdit . SetWindowText ( m_AllFilters [ index ] -> Name ) ; m_CommandEdit . SetWindowText ( m_AllFilters [ index ] -> Command ) ; SetModified ( TRUE ) ; UpdateParentName ( ) ; }
Callback runs every time the user selected different filter in the filter list.
Callback runs every time the user selected different filter in the filter list .