/******************************************************************************
** (C) <NAME>
**
** MODULE:		ERRORSDLG.HPP
** COMPONENT:	The Application.
** DESCRIPTION:	The CErrorsDlg class declaration.
**
*******************************************************************************
*/

// Check for previous inclusion
#ifndef ERRORSDLG_HPP
#define ERRORSDLG_HPP

#if _MSC_VER > 1000
#pragma once
#endif

#include <WCL/CommonUI.hpp>
#include <WCL/StrArray.hpp>

/******************************************************************************
** 
** Dialog used to display errors that occurred during an operation.
**
*******************************************************************************
*/

class CErrorsDlg : public CDialog
{
public:
	//
	// Constructors/Destructor.
	//
	CErrorsDlg();
	
	//
	// Members.
	//
	CString		m_strTitle;
	CStrArray	m_astrFiles;
	CStrArray	m_astrErrors;
	
protected:
	//
	// Controls.
	//
	CListView	m_lvGrid;

	//
	// Message processors.
	//
	virtual void OnInitDialog();
	virtual void OnDestroy();
	virtual void OnHelp(HELPINFO& oInfo);
};

/******************************************************************************
**
** Implementation of inline functions.
**
*******************************************************************************
*/

#endif //ERRORSDLG_HPP
