newntui/commonresources/src/filterwizard.cpp
//----------------------------------------------------------------------------------------
// Update all property page fields to show the token information.
//----------------------------------------------------------------------------------------
Update all property page fields to show the token information.
Update all property page fields to show the token information .
void CFilterWizard::ShowToken(CToken& token) {
    m_AttributeCombo.SetCurSel(token.AttributeIndex);
	FillOperationsCombo();
    m_OperationCombo.SetCurSel(token.OperationIndex);
	m_ArgumentEdit.SetWindowText(token.Argument);
    switch(token.Concatination) {
	case OP_AND :	m_AndButton.SetCheck(1);
	                m_OrButton.SetCheck(0);
					break;
	case OP_OR :	m_AndButton.SetCheck(0);
	                m_OrButton.SetCheck(1);
					break;
	}
}
void CFilterWizard :: ShowToken ( CToken & token ) { m_AttributeCombo . SetCurSel ( token . AttributeIndex ) ; FillOperationsCombo ( ) ; m_OperationCombo . SetCurSel ( token . OperationIndex ) ; m_ArgumentEdit . SetWindowText ( token . Argument ) ; switch ( token . Concatination ) { case OP_AND : m_AndButton . SetCheck ( 1 ) ; m_OrButton . SetCheck ( 0 ) ; break ; case OP_OR : m_AndButton . SetCheck ( 0 ) ; m_OrButton . SetCheck ( 1 ) ; break ; } }
Update all property page fields to show the token information.
Update all property page fields to show the token information .