JunkBox_Win_Lib 1.5.3
Loading...
Searching...
No Matches
ReadFilesDLG.cpp
Go to the documentation of this file.
1//
2// マルチスライス読み込み設定ダイアログ
3//
4
5#include "ReadFilesDLG.h"
6
7
8#ifdef _DEBUG
9#define new DEBUG_NEW
10#undef THIS_FILE
11static char THIS_FILE[] = __FILE__;
12#endif
13
14
15using namespace jbxwl;
16
17
19
20
22// CReadFilesDLG ダイアログ
23
24CReadFilesDLG::CReadFilesDLG(LPCTSTR fname, CWnd* pParent /*=NULL*/)
25 : CDialog(CReadFilesDLG::IDD, pParent)
26{
27 //{{AFX_DATA_INIT(CReadFilesDLG)
28 // メモ - ClassWizard はこの位置にマッピング用のマクロを追加または削除します.
29 //}}AFX_DATA_INIT
30
31 fnameEBox = NULL;
32 fromNumEBox = NULL;
33 toNumEBox = NULL;
34
35 pWnd = pParent;
36 fName = fname;
37 fromNum = 0;
38 toNum = 0;
39
40// hSize = 0;
41// xSize = 512;
42// ySize = 512;
43// zSize = 1;
44// dSize = 16;
45// ltEnd = FALSE;
46}
47
48
49//
51{
52// free(fName);
53}
54
55
56//
57void CReadFilesDLG::DoDataExchange(CDataExchange* pDX)
58{
59 CDialog::DoDataExchange(pDX);
60 //{{AFX_DATA_MAP(CReadFilesDLG)
61 // メモ - ClassWizard はこの位置にマッピング用のマクロを追加または削除します.
62 //}}AFX_DATA_MAP
63}
64
65
66
67BEGIN_MESSAGE_MAP(CReadFilesDLG, CDialog)
68 //{{AFX_MSG_MAP(CReadFilesDLG)
69 ON_BN_CLICKED(IDSET, OnSetHead)
70 //}}AFX_MSG_MAP
71END_MESSAGE_MAP()
72
73
74
75
76// CReadFilesDLG メッセージ ハンドラ
77
78BOOL CReadFilesDLG::OnInitDialog()
79{
80 fnameEBox = (CEdit*)GetDlgItem(IDC_RF_FNAME);
81 fromNumEBox = (CEdit*)GetDlgItem(IDC_RF_FROMNUM);
82 toNumEBox = (CEdit*)GetDlgItem(IDC_RF_TONUM);
83 if (fName!=_T("")) fnameEBox->SetWindowText(fName);
84
85 return TRUE;
86}
87
88
89/*
90メモ
91DoModalのリーターン
92 -1 エラー
93 IDABORT
94 IDOK
95 IDCANCEL
96/**/
97
98
99//
101{
102 TCHAR buf[LNAME];
103
104 fnameEBox->GetWindowText(buf, LNAME);
105 fName = buf;
106
107 fromNumEBox->GetWindowText(buf, LNAME);
108 fromNum = ttoi(buf);
109
110 toNumEBox->GetWindowText(buf, LNAME);
111 toNum = ttoi(buf);
112
113/* if (SetHeaderDLG.sPara) {
114 hSize = SetHeaderDLG.hSize;
115 xSize = SetHeaderDLG.xSize;
116 ySize = SetHeaderDLG.ySize;
117 zSize = SetHeaderDLG.zSize;
118 dSize = SetHeaderDLG.dSize;
119 ltEnd = SetHeaderDLG.ltEnd;
120 }
121*/
122 CDialog::OnOK();
123}
124
125
126//
128{
129// CSetHeaderDLG* shdlg = new CSetHeaderDLG(hSize, xSize, ySize, zSize, dSize, ltEnd);
130// if (shdlg==NULL) return;
131
132// SetHeaderDLG.setParameter(hSize, xSize, ySize, zSize, dSize, ltEnd);
133 if (SetHeaderDLG.DoModal()!=IDOK) {
134 //delete (shdlg);
135 return;
136 }
137
138// hSize = SetHeaderDLG.hSize;
139// xSize = SetHeaderDLG.xSize;
140// ySize = SetHeaderDLG.ySize;
141// zSize = SetHeaderDLG.zSize;
142// dSize = SetHeaderDLG.dSize;
143// ltEnd = SetHeaderDLG.ltEnd;
144
145// delete (shdlg);
146 return;
147}
148
static char THIS_FILE[]
afx_msg void OnSetHead()
CReadFilesDLG(LPCTSTR fname, CWnd *pParent=NULL)
virtual void DoDataExchange(CDataExchange *pDX)
CSetHeaderDLG SetHeaderDLG
#define IDC_RF_FROMNUM
Definition resource.h:18
#define IDC_RF_FNAME
Definition resource.h:17
#define IDSET
Definition resource.h:5
#define IDC_RF_TONUM
Definition resource.h:19