#include "stdafx.h" #include "OdaMfcApp.h" #include "BBValidationErrDlg.h" // CBBValidationErrDlg dialog IMPLEMENT_DYNAMIC(CBBValidationErrDlg, CDialog) CBBValidationErrDlg::CBBValidationErrDlg(const CString &strErr, CWnd* pParent /*=NULL*/) : CDialog(IDD_DIALOG_BBERRORS, pParent) { m_strErr = strErr; } CBBValidationErrDlg::~CBBValidationErrDlg() { } void CBBValidationErrDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); DDX_Control(pDX, IDC_EDIT_BBERRORS, m_ValidationErrorsCtrl); } BOOL CBBValidationErrDlg::OnInitDialog() { CDialog::OnInitDialog(); m_ValidationErrorsCtrl.SetWindowText(m_strErr); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } BEGIN_MESSAGE_MAP(CBBValidationErrDlg, CDialog) END_MESSAGE_MAP() // CBBValidationErrDlg message handlers