newntui/commonresources/src/attributesdialog.cpp
//-----------------------------------------------------------------------------------------
// Reply to the right arrow button click. Will remove the attribute from the left source
// column and will place it to the right destination column. 
//-----------------------------------------------------------------------------------------
Reply to the right arrow button click. Will remove the attribute from the left source
column and will place it to the right destination column.
Reply to the right arrow button click . Will remove the attribute from the left source column and will place it to the right destination column .
void CAttributesDialog::OnOneToDest()  {
CString readableName;
CString accessName;
int index;
	if(m_QueryResults==NULL) return;
    index = m_Source.GetCurSel();
    if(index<0) return;
    m_Source.GetText(index,readableName);
    accessName=AccessFromName(readableName);
    m_Source.DeleteString(index);
    m_Dest.AddString(readableName);
    m_Source.SetCurSel(index);
    m_QueryResults->AddAttribute(readableName,accessName);
    m_Durty=TRUE;
}
void CAttributesDialog :: OnOneToDest ( ) { CString readableName ; CString accessName ; int index ; if ( m_QueryResults == NULL ) return ; index = m_Source . GetCurSel ( ) ; if ( index < 0 ) return ; m_Source . GetText ( index , readableName ) ; accessName = AccessFromName ( readableName ) ; m_Source . DeleteString ( index ) ; m_Dest . AddString ( readableName ) ; m_Source . SetCurSel ( index ) ; m_QueryResults -> AddAttribute ( readableName , accessName ) ; m_Durty = TRUE ; }
Reply to the right arrow button click.
Reply to the right arrow button click .