newntui/commonresources/src/filterwizard.cpp
//----------------------------------------------------------------------------------------
// This function highlights the token with the given index in the command
// editor. Returns TRUE if OK and FALSE if index is out of range.
//----------------------------------------------------------------------------------------
This function highlights the token with the given index in the command
editor. Returns TRUE if OK and FALSE if index is out of range.
This function highlights the token with the given index in the command editor . Returns TRUE if OK and FALSE if index is out of range .
BOOL CFilterWizard::HighlightToken(int index) {
CToken token;
	if(index <0 || index>=m_TokensTable.GetSize()) return FALSE;
	token= m_TokensTable[index];
	m_CommandEdit.SetFocus();
	m_CommandEdit.SetSel(token.From,token.To);
	return TRUE;
}
BOOL CFilterWizard :: HighlightToken ( int index ) { CToken token ; if ( index < 0 || index >= m_TokensTable . GetSize ( ) ) return FALSE ; token = m_TokensTable [ index ] ; m_CommandEdit . SetFocus ( ) ; m_CommandEdit . SetSel ( token . From , token . To ) ; return TRUE ; }
This function highlights the token with the given index in the command
editor.
This function highlights the token with the given index in the command editor .