newntui/commonresources/src/filterwizard.cpp
//----------------------------------------------------------------------------------------
// Callback runs every time the user click Change button. Will change current element
// attributes to the new user selection.
//----------------------------------------------------------------------------------------
Callback runs every time the user click Change button. Will change current element
attributes to the new user selection.
Callback runs every time the user click Change button . Will change current element attributes to the new user selection .
void CFilterWizard::OnChangebutton()  {
int selection;
CToken token;
	selection=m_FlowTab.GetCurSel();
	if(selection<0) return;
    if(MakeToken(token) == FALSE) {
		SayError();
		return;
	}
	ChangeToken(token,selection);
	CommandFromTokens();
	m_CommandEdit.SetWindowText(m_Command);
	HighlightToken(selection);
	SetModified(TRUE);
}
void CFilterWizard :: OnChangebutton ( ) { int selection ; CToken token ; selection = m_FlowTab . GetCurSel ( ) ; if ( selection < 0 ) return ; if ( MakeToken ( token ) == FALSE ) { SayError ( ) ; return ; } ChangeToken ( token , selection ) ; CommandFromTokens ( ) ; m_CommandEdit . SetWindowText ( m_Command ) ; HighlightToken ( selection ) ; SetModified ( TRUE ) ; }
Callback runs every time the user click Change button.
Callback runs every time the user click Change button .
// Make new token array element - error goes wrong. // Update the token information // Form the new command string // New command will be shown in the command editor // Can apply changes