[Ttssh2-commit] [5145] SVN#5144 のコミット漏れ

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2013年 3月 13日 (水) 00:52:32 JST


Revision: 5145
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5145
Author:   yutakapon
Date:     2013-03-13 00:52:32 +0900 (Wed, 13 Mar 2013)
Log Message:
-----------
SVN#5144 のコミット漏れ

Ticket Links:
------------
    http://sourceforge.jp/projects/ttssh2/tracker/detail/5144

Added Paths:
-----------
    trunk/teraterm/ttpmacro/ListDlg.cpp
    trunk/teraterm/ttpmacro/ListDlg.h
    trunk/teraterm/ttpmacro/stdafx.h

-------------- next part --------------
Added: trunk/teraterm/ttpmacro/ListDlg.cpp
===================================================================
--- trunk/teraterm/ttpmacro/ListDlg.cpp	                        (rev 0)
+++ trunk/teraterm/ttpmacro/ListDlg.cpp	2013-03-12 15:52:32 UTC (rev 5145)
@@ -0,0 +1,84 @@
+// ListDlg.cpp : \x8E\xC0\x91\x95\x83t\x83@\x83C\x83\x8B
+//
+
+#include "stdafx.h"
+#include "teraterm.h"
+#include "ttlib.h"
+#include "ttm_res.h"
+#include "ttmlib.h"
+#include "tttypes.h"
+
+#include "stdafx.h"
+#include "ListDlg.h"
+
+
+// CListDlg \x83_\x83C\x83A\x83\x8D\x83O
+
+IMPLEMENT_DYNAMIC(CListDlg, CDialog)
+
+CListDlg::CListDlg(PCHAR Text, PCHAR Caption, CHAR **Lists)
+	: CDialog(CListDlg::IDD)
+{
+	m_Text = Text;
+	m_Caption = Caption;
+	m_Lists = Lists;
+}
+
+CListDlg::~CListDlg()
+{
+}
+
+void CListDlg::DoDataExchange(CDataExchange* pDX)
+{
+	CDialog::DoDataExchange(pDX);
+	DDX_Control(pDX, IDC_LISTBOX, m_xcList);
+}
+
+
+BEGIN_MESSAGE_MAP(CListDlg, CDialog)
+	ON_BN_CLICKED(IDOK, &CListDlg::OnBnClickedOk)
+	ON_BN_CLICKED(IDCANCEL, &CListDlg::OnBnClickedCancel)
+END_MESSAGE_MAP()
+
+
+// CListDlg \x83\x81\x83b\x83Z\x81[\x83W \x83n\x83\x93\x83h\x83\x89
+
+void CListDlg::OnBnClickedOk()
+{
+	// TODO: \x82\xB1\x82\xB1\x82ɃR\x83\x93\x83g\x83\x8D\x81[\x83\x8B\x92ʒm\x83n\x83\x93\x83h\x83\x89 \x83R\x81[\x83h\x82\xF0\x92lj\xC1\x82\xB5\x82܂\xB7\x81B
+	m_SelectItem = m_xcList.GetCurSel();
+	OnOK();
+}
+
+BOOL CListDlg::OnInitDialog()
+{
+	char **p;
+
+	CDialog::OnInitDialog();
+
+	// TODO:  \x82\xB1\x82\xB1\x82ɏ\x89\x8A\xFA\x89\xBB\x82\xF0\x92lj\xC1\x82\xB5\x82Ă\xAD\x82\xBE\x82\xB3\x82\xA2
+	p = m_Lists;
+	while (*p) {
+		m_xcList.InsertString(-1, _T(*p));
+		p++;
+	}
+    UpdateData(FALSE);
+
+	// 1\x82‚߂\xF0\x91I\x91\xF0\x8F\xF3\x91Ԃɂ\xB7\x82\xE9\x81B
+	m_xcList.SetCurSel(0);
+
+	// \x96{\x95\xB6\x82ƃ^\x83C\x83g\x83\x8B
+	SetDlgItemText(IDC_STATIC, m_Text);
+	SetWindowText(m_Caption);
+
+	SetForegroundWindow();
+
+	return TRUE;  // return TRUE unless you set the focus to a control
+	// \x97\xE1\x8AO : OCX \x83v\x83\x8D\x83p\x83e\x83B \x83y\x81[\x83W\x82͕K\x82\xB8 FALSE \x82\xF0\x95Ԃ\xB5\x82܂\xB7\x81B
+}
+
+void CListDlg::OnBnClickedCancel()
+{
+	// TODO: \x82\xB1\x82\xB1\x82ɃR\x83\x93\x83g\x83\x8D\x81[\x83\x8B\x92ʒm\x83n\x83\x93\x83h\x83\x89 \x83R\x81[\x83h\x82\xF0\x92lj\xC1\x82\xB5\x82܂\xB7\x81B
+	OnCancel();
+}

Added: trunk/teraterm/ttpmacro/ListDlg.h
===================================================================
--- trunk/teraterm/ttpmacro/ListDlg.h	                        (rev 0)
+++ trunk/teraterm/ttpmacro/ListDlg.h	2013-03-12 15:52:32 UTC (rev 5145)
@@ -0,0 +1,34 @@
+#pragma once
+#include "afxwin.h"
+
+
+// CListDlg \x83_\x83C\x83A\x83\x8D\x83O
+
+class CListDlg : public CDialog
+{
+	DECLARE_DYNAMIC(CListDlg)
+
+public:
+	CListDlg(PCHAR Text, PCHAR Caption, CHAR **Lists);   // \x95W\x8F\x80\x83R\x83\x93\x83X\x83g\x83\x89\x83N\x83^
+	virtual ~CListDlg();
+
+// \x83_\x83C\x83A\x83\x8D\x83O \x83f\x81[\x83^
+	enum { IDD = IDD_LISTDLG };
+
+protected:
+	PCHAR m_Text;
+	PCHAR m_Caption;
+	CHAR **m_Lists;
+	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV \x83T\x83|\x81[\x83g
+
+	DECLARE_MESSAGE_MAP()
+public:
+	CListBox m_xcList;
+	int m_SelectItem;
+public:
+	afx_msg void OnBnClickedOk();
+public:
+	virtual BOOL OnInitDialog();
+public:
+	afx_msg void OnBnClickedCancel();
+};

Added: trunk/teraterm/ttpmacro/stdafx.h
===================================================================
--- trunk/teraterm/ttpmacro/stdafx.h	                        (rev 0)
+++ trunk/teraterm/ttpmacro/stdafx.h	2013-03-12 15:52:32 UTC (rev 5145)
@@ -0,0 +1,2 @@
+#pragma once
+#include <afxwin.h>



Ttssh2-commit メーリングリストの案内
Back to archive index