CReadFilesDLG Class Reference

#include <ReadFilesDLG.h>

List of all members.

Public Types

enum  { IDD = IDD_RFDLG }

Public Member Functions

 CReadFilesDLG (LPCTSTR fname, CWnd *pParent=NULL)
virtual ~CReadFilesDLG ()
virtual BOOL OnInitDialog ()

Public Attributes

CWnd * pWnd
CEdit * fnameEBox
CEdit * fromNumEBox
CEdit * toNumEBox
CString fName
int fromNum
int toNum

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual void OnOK ()
afx_msg void OnSetHead ()

Detailed Description

Definition at line 26 of file ReadFilesDLG.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 58 of file ReadFilesDLG.h.

00058 { IDD = IDD_RFDLG };


Constructor & Destructor Documentation

CReadFilesDLG ( LPCTSTR  fname,
CWnd *  pParent = NULL 
)

Definition at line 24 of file ReadFilesDLG.cpp.

References CReadFilesDLG::fName, CReadFilesDLG::fnameEBox, CReadFilesDLG::fromNum, CReadFilesDLG::fromNumEBox, CReadFilesDLG::pWnd, CReadFilesDLG::toNum, and CReadFilesDLG::toNumEBox.

00025     : CDialog(CReadFilesDLG::IDD, pParent) 
00026 {
00027     //{{AFX_DATA_INIT(CReadFilesDLG)
00028         // メモ - ClassWizard はこの位置にマッピング用のマクロを追加または削除します.
00029     //}}AFX_DATA_INIT
00030 
00031     fnameEBox   = NULL;
00032     fromNumEBox = NULL;
00033     toNumEBox   = NULL;
00034 
00035     pWnd    = pParent;
00036     fName   = fname;
00037     fromNum = 0;
00038     toNum   = 0;
00039 
00040 //  hSize   = 0;
00041 //  xSize   = 512;
00042 //  ySize   = 512;
00043 //  zSize   = 1;
00044 //  dSize   = 16;
00045 //  ltEnd   = FALSE;
00046 }

~CReadFilesDLG (  )  [virtual]

Definition at line 50 of file ReadFilesDLG.cpp.

00051 {
00052 //  free(fName);
00053 }


Member Function Documentation

void DoDataExchange ( CDataExchange *  pDX  )  [protected, virtual]

Definition at line 57 of file ReadFilesDLG.cpp.

00058 {
00059     CDialog::DoDataExchange(pDX);
00060     //{{AFX_DATA_MAP(CReadFilesDLG)
00061         // メモ - ClassWizard はこの位置にマッピング用のマクロを追加または削除します.
00062     //}}AFX_DATA_MAP
00063 }

BOOL OnInitDialog (  )  [virtual]

Definition at line 78 of file ReadFilesDLG.cpp.

References IDC_RF_FNAME, IDC_RF_FROMNUM, and IDC_RF_TONUM.

00079 {
00080     fnameEBox   = (CEdit*)GetDlgItem(IDC_RF_FNAME);
00081     fromNumEBox = (CEdit*)GetDlgItem(IDC_RF_FROMNUM);
00082     toNumEBox   = (CEdit*)GetDlgItem(IDC_RF_TONUM);
00083     if (fName!=_T("")) fnameEBox->SetWindowText(fName);
00084 
00085     return TRUE;
00086 }

void OnOK (  )  [protected, virtual]

Definition at line 100 of file ReadFilesDLG.cpp.

References CReadFilesDLG::fName, CReadFilesDLG::fnameEBox, CReadFilesDLG::fromNum, CReadFilesDLG::fromNumEBox, CReadFilesDLG::toNum, and CReadFilesDLG::toNumEBox.

00101 {   
00102     TCHAR buf[LNAME];
00103 
00104     fnameEBox->GetWindowText(buf, LNAME);
00105     fName = buf;
00106 
00107     fromNumEBox->GetWindowText(buf, LNAME);
00108     fromNum = ttoi(buf);
00109 
00110     toNumEBox->GetWindowText(buf, LNAME);
00111     toNum = ttoi(buf);
00112 
00113 /*  if (SetHeaderDLG.sPara) {
00114         hSize = SetHeaderDLG.hSize;
00115         xSize = SetHeaderDLG.xSize;
00116         ySize = SetHeaderDLG.ySize;
00117         zSize = SetHeaderDLG.zSize;
00118         dSize = SetHeaderDLG.dSize;
00119         ltEnd = SetHeaderDLG.ltEnd;
00120     }
00121 */
00122     CDialog::OnOK();
00123 }

void OnSetHead (  )  [protected]

Definition at line 127 of file ReadFilesDLG.cpp.

References jbxwl::SetHeaderDLG.

00128 {
00129 //  CSetHeaderDLG* shdlg = new CSetHeaderDLG(hSize, xSize, ySize, zSize, dSize, ltEnd);
00130 //  if (shdlg==NULL) return;
00131     
00132 //  SetHeaderDLG.setParameter(hSize, xSize, ySize, zSize, dSize, ltEnd);
00133     if (SetHeaderDLG.DoModal()!=IDOK) {
00134         //delete (shdlg);
00135         return;
00136     }
00137 
00138 //  hSize = SetHeaderDLG.hSize;
00139 //  xSize = SetHeaderDLG.xSize;
00140 //  ySize = SetHeaderDLG.ySize;
00141 //  zSize = SetHeaderDLG.zSize;
00142 //  dSize = SetHeaderDLG.dSize;
00143 //  ltEnd = SetHeaderDLG.ltEnd;
00144 
00145 //  delete (shdlg);
00146     return;
00147 }


Member Data Documentation

CString fName
CEdit* fnameEBox

Definition at line 31 of file ReadFilesDLG.h.

Referenced by CReadFilesDLG::CReadFilesDLG(), and CReadFilesDLG::OnOK().

int fromNum
CEdit* fromNumEBox

Definition at line 32 of file ReadFilesDLG.h.

Referenced by CReadFilesDLG::CReadFilesDLG(), and CReadFilesDLG::OnOK().

CWnd* pWnd

Definition at line 29 of file ReadFilesDLG.h.

Referenced by CReadFilesDLG::CReadFilesDLG().

int toNum
CEdit* toNumEBox

Definition at line 33 of file ReadFilesDLG.h.

Referenced by CReadFilesDLG::CReadFilesDLG(), and CReadFilesDLG::OnOK().


The documentation for this class was generated from the following files:

Generated on 15 Nov 2023 for JunkBox_Win_Lib by  doxygen 1.6.1