summaryrefslogtreecommitdiffstats
path: root/src/CBot/tests/old TstCBot/BotErrorDlg.cpp
diff options
context:
space:
mode:
authorPiotr Dziwiński <piotrdz@gmail.com>2012-08-08 13:31:33 -0700
committerPiotr Dziwiński <piotrdz@gmail.com>2012-08-08 13:31:33 -0700
commitbeca66071c6a2d82da63fb238cdc86e68ff96bdb (patch)
treefdd53a1c67952a656de5ba3a17117fc9d6ef0e7f /src/CBot/tests/old TstCBot/BotErrorDlg.cpp
parent5e637ca0288ddd631ec33e1d620cd4a73bcdc2be (diff)
parenta760e8a749af60cd3598ebe113b7692bc6592f57 (diff)
downloadcolobot-beca66071c6a2d82da63fb238cdc86e68ff96bdb.tar.gz
colobot-beca66071c6a2d82da63fb238cdc86e68ff96bdb.tar.bz2
colobot-beca66071c6a2d82da63fb238cdc86e68ff96bdb.zip
Merge pull request #35 from konopackim/dev
Comment translation and cleanups
Diffstat (limited to 'src/CBot/tests/old TstCBot/BotErrorDlg.cpp')
-rw-r--r--src/CBot/tests/old TstCBot/BotErrorDlg.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/CBot/tests/old TstCBot/BotErrorDlg.cpp b/src/CBot/tests/old TstCBot/BotErrorDlg.cpp
new file mode 100644
index 0000000..87d56f0
--- /dev/null
+++ b/src/CBot/tests/old TstCBot/BotErrorDlg.cpp
@@ -0,0 +1,56 @@
+// BotErrorDlg.cpp : implementation file
+//
+
+#include "stdafx.h"
+#include "TstCBot.h"
+#include "BotErrorDlg.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+// CBotErrorDlg dialog
+
+
+CBotErrorDlg::CBotErrorDlg(CWnd* pParent /*=NULL*/)
+ : CDialog(CBotErrorDlg::IDD, pParent)
+{
+ //{{AFX_DATA_INIT(CBotErrorDlg)
+ m_TextProgram = _T("");
+ //}}AFX_DATA_INIT
+}
+
+
+void CBotErrorDlg::DoDataExchange(CDataExchange* pDX)
+{
+ CDialog::DoDataExchange(pDX);
+ //{{AFX_DATA_MAP(CBotErrorDlg)
+ DDX_Control(pDX, IDC_EDIT1, m_eProgram);
+ DDX_Control(pDX, IDC_STATIC1, m_sMessage);
+ DDX_Text(pDX, IDC_EDIT1, m_TextProgram);
+ //}}AFX_DATA_MAP
+}
+
+
+BEGIN_MESSAGE_MAP(CBotErrorDlg, CDialog)
+ //{{AFX_MSG_MAP(CBotErrorDlg)
+ //}}AFX_MSG_MAP
+END_MESSAGE_MAP()
+
+/////////////////////////////////////////////////////////////////////////////
+// CBotErrorDlg message handlers
+
+BOOL CBotErrorDlg::OnInitDialog()
+{
+ CDialog::OnInitDialog();
+
+ m_sMessage.SetWindowText(m_TextError);
+ m_eProgram.SetFocus();
+ m_eProgram.SetSel(m_start, m_end);
+
+ return FALSE; // return TRUE unless you set the focus to a control
+ // EXCEPTION: OCX Property Pages should return FALSE
+}