newntui/commonresources/src/filterwizard.cpp
//----------------------------------------------------------------------------------------
// Show error message taking error type from the m_ErrorType;
//----------------------------------------------------------------------------------------
Show error message taking error type from the m_ErrorType.
Show error message taking error type from the m_ErrorType .
void CFilterWizard::SayError(void){
	switch(m_ErrorType) {
	case ERROR_NO_ATTRIBUTE     : 	
		MessageBox("No attribute selected","Filter Wizard Error",MB_ICONEXCLAMATION);
		break;
	case ERROR_NO_OPERATION     :
		MessageBox("No operation selected","Filter Wizard Error",MB_ICONEXCLAMATION);
		break;
	case ERROR_WRONG_ARGUMENT   :
		MessageBox("Argument string doesn't match attribute type","Filter Wizard Error",MB_ICONEXCLAMATION);
		break;
	case ERROR_BIG_ARGUMENT     :
		MessageBox("The argument value is too big","Filter Wizard Error",MB_ICONEXCLAMATION);
		break;
	case ERROR_EMPTY_ARGUMENT   :
		MessageBox("Nothing typed in the argument field","Filter Wizard Error",MB_ICONEXCLAMATION);
		break;
	case ERROR_UNSUPPORTED_TYPE :
		MessageBox("Unknown attribute type","Filter Wizard Error",MB_ICONEXCLAMATION);
		break;
	case ERROR_EXISTING_TOKEN :
		MessageBox("You are trying to add the existing expression","Filter Wizard Error",MB_ICONEXCLAMATION);
		break;
	}
}
void CFilterWizard :: SayError ( void ) { switch ( m_ErrorType ) { case ERROR_NO_ATTRIBUTE : MessageBox ( " " , " " , MB_ICONEXCLAMATION ) ; break ; case ERROR_NO_OPERATION : MessageBox ( " " , " " , MB_ICONEXCLAMATION ) ; break ; case ERROR_WRONG_ARGUMENT : MessageBox ( " " , " " , MB_ICONEXCLAMATION ) ; break ; case ERROR_BIG_ARGUMENT : MessageBox ( " " , " " , MB_ICONEXCLAMATION ) ; break ; case ERROR_EMPTY_ARGUMENT : MessageBox ( " " , " " , MB_ICONEXCLAMATION ) ; break ; case ERROR_UNSUPPORTED_TYPE : MessageBox ( " " , " " , MB_ICONEXCLAMATION ) ; break ; case ERROR_EXISTING_TOKEN : MessageBox ( " " , " " , MB_ICONEXCLAMATION ) ; break ; } }
Show error message taking error type from the m_ErrorType;
Show error message taking error type from the m_ErrorType ;