
// FileOperationDlg.cpp : t@C
//

#include "stdafx.h"
#include "FileOperation.h"
#include "FileOperationDlg.h"
#include "afxdialogex.h"
#include "cgen_api.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

// CFileOperationDlg _CAO



CFileOperationDlg::CFileOperationDlg(CWnd* pParent /*=NULL*/)
	: CDialogEx(IDD_FILEOPERATION_DIALOG, pParent)
{
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CFileOperationDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_EDIT_DEVICENAME,	m_edit_device_name);
	DDX_Control(pDX, IDC_EDIT_RETURNNUM,	m_edit_returnnum);
	DDX_Control(pDX, IDC_EDIT_STATUS,		m_edit_applicationstatus);
	DDX_Control(pDX, IDC_MFCEDITBROWSE_SETTINGFILE,			m_edit_settingfile);
	DDX_Control(pDX, IDC_MFCEDITBROWSE_ARBITRATYDATAFILE,	m_edit_arbitrarydatafile);
	DDX_Control(pDX, IDC_COMBO_OPENMODE,	m_combo_openmode);
	DDX_Control(pDX, IDC_COMBO_AOCHANNEL,	m_combo_aochannel);
	DDX_Control(pDX, IDC_COMBO_WAVETYPE,	m_combo_wavetype);
	DDX_Control(pDX, IDC_COMBO_PARAM,		m_combo_param);
}

BEGIN_MESSAGE_MAP(CFileOperationDlg, CDialogEx)
	ON_WM_SYSCOMMAND()
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	ON_BN_CLICKED(IDC_BUTTON_GENOPENAPPLICATION,		&CFileOperationDlg::OnBnClickedButtonGenOpenapplication)
	ON_BN_CLICKED(IDC_BUTTON_GENSETDEVICENAME,			&CFileOperationDlg::OnBnClickedButtonGenSetdevicename)
	ON_BN_CLICKED(IDC_BUTTON_GENEXPORTSETTINGFILE,		&CFileOperationDlg::OnBnClickedButtonGenExportsettingfile)
	ON_BN_CLICKED(IDC_BUTTON_GENIMPORTSETTINGFILE,		&CFileOperationDlg::OnBnClickedButtonGenImportsettingfile)
	ON_BN_CLICKED(IDC_BUTTON_GENSETWAVETYPE,			&CFileOperationDlg::OnBnClickedButtonGenSetwavetype)
	ON_BN_CLICKED(IDC_BUTTON_GENSETARBITRARYDATAFILE,	&CFileOperationDlg::OnBnClickedButtonGenSetarbitrarydatafile)
	ON_BN_CLICKED(IDC_BUTTON_GENGETARBITRARYDATAFILE,	&CFileOperationDlg::OnBnClickedButtonGenGetarbitrarydatafile)
	ON_BN_CLICKED(IDC_BUTTON_GENSAVEDATAFILE,			&CFileOperationDlg::OnBnClickedButtonGenSavedatafile)
	ON_BN_CLICKED(IDC_BUTTON_GENSTARTOPERATION,			&CFileOperationDlg::OnBnClickedButtonGenStartoperation)
	ON_BN_CLICKED(IDC_BUTTON_GENGETAPPLICATIONSTATUS,	&CFileOperationDlg::OnBnClickedButtonGenGetapplicationstatus)
	ON_BN_CLICKED(IDC_BUTTON_GENSTOPOPERATION,			&CFileOperationDlg::OnBnClickedButtonGenStopoperation)
	ON_BN_CLICKED(IDC_BUTTON_GENCLOSE,					&CFileOperationDlg::OnBnClickedButtonGenClose)
	ON_BN_CLICKED(IDCLOSE, 								&CFileOperationDlg::OnBnClickedClose)
END_MESSAGE_MAP()


//----------------------------------------
// }N`
//----------------------------------------
#define CWAVEFORMGENERATOR_CHANNELS			16		// ő`l
//----------------------------------------
// O[oϐ̐錾
//----------------------------------------
short	g_appid;									// AvANZXpID

// CFileOperationDlg bZ[W nh[
//================================================================================
// ݒ
//================================================================================
BOOL CFileOperationDlg::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	CString		text_temp;			// eLXgꎞi[p

	// ̃_CAÕACRݒ肵܂BAvP[ṼC EBhE_CAOłȂꍇA
	//  Framework ́A̐ݒIɍs܂B
	SetIcon(m_hIcon, TRUE);			// 傫ACR̐ݒ
	SetIcon(m_hIcon, FALSE);		// ACR̐ݒ

	//----------------------------------------
	// foCX̏\XV
	//----------------------------------------
	m_edit_device_name.SetWindowTextW(_T("AIO000"));
	//----------------------------------------
	// ʃTCYR{{bNX̍쐬
	//----------------------------------------
	m_combo_openmode.AddString(_T("ŏ"));
	m_combo_openmode.AddString(_T("ʏ"));
	m_combo_openmode.AddString(_T("ő剻"));
	//----------------------------------------
	// ʃTCYpR{{bNX̑I0ԂɕύX
	//----------------------------------------
	m_combo_openmode.SetCurSel(0);
	//----------------------------------------
	// `lԍR{{bNX̍쐬
	//----------------------------------------
	for (int i = 0; i < CWAVEFORMGENERATOR_CHANNELS; i++) {
		text_temp.Format(_T("%d"), i);
		m_combo_aochannel.AddString(text_temp);
	}
	//----------------------------------------
	// `lԍR{{bNX̑I0ԂɕύX
	//----------------------------------------
	m_combo_aochannel.SetCurSel(0);
	//----------------------------------------
	// g`^CvR{{bNX̍쐬
	//----------------------------------------
	m_combo_wavetype.AddString(_T(""));
	m_combo_wavetype.AddString(_T("Œ"));
	m_combo_wavetype.AddString(_T("Op"));
	m_combo_wavetype.AddString(_T("̂"));
	m_combo_wavetype.AddString(_T("`"));
	m_combo_wavetype.AddString(_T("mCY"));
	m_combo_wavetype.AddString(_T("C"));
	//----------------------------------------
	// g`^CvR{{bNX̑I0ԂɕύX
	//----------------------------------------
	m_combo_wavetype.SetCurSel(0);
	//----------------------------------------
	// f[^ۑR{{bNX̍쐬
	//----------------------------------------
	m_combo_param.AddString(_T("P`l"));
	m_combo_param.AddString(_T("`l"));
	//----------------------------------------
	// f[^ۑR{{bNX̑I0ԂɕύX
	//----------------------------------------
	m_combo_param.SetCurSel(0);
	return TRUE;  // tH[JXRg[ɐݒ肵ꍇATRUE Ԃ܂B
}


// _CAOɍŏ{^ǉꍇAACR`悷邽߂
//  ̃R[hKvłBhLg/r[ fg MFC AvP[V̏ꍇA
//  ́AFramework ɂĎIɐݒ肳܂B

void CFileOperationDlg::OnPaint()
{
	if (IsIconic())
	{
		CPaintDC dc(this); // `̃foCX ReLXg

		SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0);

		// NCAg̎lp`̈̒
		int cxIcon = GetSystemMetrics(SM_CXICON);
		int cyIcon = GetSystemMetrics(SM_CYICON);
		CRect rect;
		GetClientRect(&rect);
		int x = (rect.Width() - cxIcon + 1) / 2;
		int y = (rect.Height() - cyIcon + 1) / 2;

		// ACR̕`
		dc.DrawIcon(x, y, m_hIcon);
	}
	else
	{
		CDialogEx::OnPaint();
	}
}

// [U[ŏEBhEhbOĂƂɕ\J[\擾邽߂ɁA
//  VXe̊֐Ăяo܂B
HCURSOR CFileOperationDlg::OnQueryDragIcon()
{
	return static_cast<HCURSOR>(m_hIcon);
}


//================================================================================
// GenOpenApplication{^NbNۂ̏ɂȂ܂
// Av̏s܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenOpenapplication()
{
	TCHAR			text_temp[256]		= {};	// eLXgꎞi[p
	char			device_name[256]	= {};	// foCX
	char			error_string[256]	= {};	// G[R[h
	unsigned short	openmode;					// ʃTCY
	long			ret;						// ߂l擾p
	CString			text_string;				// eLXg{bNXXVp

	//----------------------------------------
	// eLXg{bNXfoCX擾
	//----------------------------------------
	m_edit_device_name.GetWindowText(text_temp, _countof(text_temp));
	sprintf_s(device_name, "%S", text_temp);
	//----------------------------------------
	// R{{bNXʃTCY擾
	//----------------------------------------
	openmode = m_combo_openmode.GetCurSel();
	//----------------------------------------
	// Av̏s
	//----------------------------------------
	ret = GenOpenApplication(device_name, &g_appid, openmode);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenOpenApplication = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
}

//================================================================================
// GenSetDeviceName{^NbNۂ̏ɂȂ܂
// foCX̐ݒs܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenSetdevicename()
{
	TCHAR	text_temp[256]		= {};	// eLXgꎞi[p
	char	device_name[256]	= {};	// foCX
	char	error_string[256]	= {};	// G[R[h
	long	ret;						// ߂l擾p
	CString	text_string;				// eLXg{bNXXVp

	//----------------------------------------
	// eLXg{bNXݒt@C擾
	//----------------------------------------
	m_edit_device_name.GetWindowText(text_temp, _countof(text_temp));
	sprintf_s(device_name, "%S", text_temp);
	//----------------------------------------
	// foCX̐ݒ
	//----------------------------------------
	ret = GenSetDeviceName(g_appid, device_name);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);	
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenSetDeviceName = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
}

//================================================================================
// GenExportSettingFile{^NbNۂ̏ɂȂ܂
// ݒinit@Cɕۑ܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenExportsettingfile()
{
	TCHAR	text_temp[256]		= {};	// eLXgꎞi[p
	char	filepath[256]		= {};	// t@CpX
	char	error_string[256]	= {};	// G[R[h
	long	ret;						// ߂l擾p
	CString	text_string;				// G[R[h\p

	//----------------------------------------
	// eLXg{bNXݒt@CpX擾
	//----------------------------------------
	m_edit_settingfile.GetWindowText(text_temp, _countof(text_temp));
	WideCharToMultiByte(CP_ACP, 0, &text_temp[0], -1, &filepath[0], 256, NULL, NULL);
	//----------------------------------------
	// ݒinit@Cɕۑ
	//----------------------------------------
	ret = GenExportSettingFile(g_appid, filepath);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenExportSettingFile = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
}

//================================================================================
// GenImportSettingFile{^NbNۂ̏ɂȂ܂
// init@C̐ݒǂݍ݂܂B
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenImportsettingfile()
{
	TCHAR	text_temp[256]		= {};	// eLXgꎞi[p
	char	filepath[256]		= {};	// t@CpX
	char	error_string[256]	= {};	// G[R[h
	long	ret;						// ߂l擾p
	CString	text_string;				// G[R[h\p

	//----------------------------------------
	// eLXg{bNXݒt@CpX擾
	//----------------------------------------
	m_edit_settingfile.GetWindowText(text_temp, _countof(text_temp));
	WideCharToMultiByte(CP_ACP, 0, &text_temp[0], -1, &filepath[0], 256, NULL, NULL);
	//----------------------------------------
	// init@C̐ݒǂݏos
	//----------------------------------------
	ret = GenImportSettingFile(g_appid, filepath);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenImportSettingFile = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
}

//================================================================================
// GenSetWaveType{^NbNۂ̏ɂȂ܂
// g`^Cv̐ݒs܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenSetwavetype()
{
	TCHAR			text_temp[256]		= {};	// eLXgꎞi[p
	unsigned short	wavetype;					// g`^Cv
	unsigned short	aochannel;					// `lԍ
	char			error_string[256]	= {};	// G[R[h
	long			ret;						// ߂l擾p
	CString			text_string;				// G[R[h\p

	//----------------------------------------
	// R{{bNXg`^Cv擾
	//----------------------------------------
	wavetype	= m_combo_wavetype.GetCurSel();
	//----------------------------------------
	// R{{bNX`lԍ擾
	//----------------------------------------
	aochannel	= m_combo_aochannel.GetCurSel();
	//----------------------------------------
	// g`^Cv̐ݒs
	//----------------------------------------
	ret = GenSetWaveType(g_appid, aochannel, wavetype);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenSetWaveType = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
}

//================================================================================
// GenSetArbitraryDataFile{^NbNۂ̏ɂȂ܂
// f[^t@Cicsvt@CjpXݒ肵܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenSetarbitrarydatafile()
{
	TCHAR			text_temp[256]		= {};	// eLXgꎞi[p
	char			filepath[256]		= {};	// t@CpX
	char			error_string[256]	= {};	// G[R[h
	unsigned short	aochannel;					// `lԍ
	long			ret;						// ߂l擾p
	CString			text_string;				// G[R[h\p

	//----------------------------------------
	// eLXg{bNXf[^t@CpX擾
	//----------------------------------------
	m_edit_arbitrarydatafile.GetWindowText(text_temp, _countof(text_temp));
	WideCharToMultiByte(CP_ACP, 0, &text_temp[0], -1, &filepath[0], 256, NULL, NULL);
	//----------------------------------------
	// R{{bNX`lԍ擾
	//----------------------------------------
	aochannel	= m_combo_aochannel.GetCurSel();
	//----------------------------------------
	// f[^t@CpX̐ݒ
	//----------------------------------------
	ret = GenSetArbitraryDataFile(g_appid, aochannel, filepath);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenSetArbitraryDataFile = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
}

//================================================================================
// GenGetArbitraryDataFile{^NbNۂ̏ɂȂ܂
// ݒ肳Ăf[^t@Cicsvt@CjpX擾܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenGetarbitrarydatafile()
{
	TCHAR			text_temp[256]		= {};	// eLXgꎞi[p
	char			filepath[256]		= {};	// t@CpX
	char			error_string[256]	= {};	// G[R[h
	unsigned short	aochannel;					// `lԍ
	long			ret;						// ߂l擾p
	CString			text_string;				// G[R[h\p

	//----------------------------------------
	// ݒ肳Ă`l擾
	//----------------------------------------
	aochannel	= m_combo_aochannel.GetCurSel();
	//----------------------------------------
	// f[^t@CpX̎擾
	//----------------------------------------
	ret = GenGetArbitraryDataFile(g_appid, aochannel, filepath);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenGetArbitraryDataFile = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
	//----------------------------------------
	// f[^t@CpX\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), filepath);
	text_string.Format(_T("%s"), text_temp);
	m_edit_arbitrarydatafile.SetWindowText(text_string);
}

//================================================================================
// GenSaveDataFile{^NbNۂ̏ɂȂ܂
// w肵`l̃f[^csvt@Cɕۑ܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenSavedatafile()
{
	TCHAR		text_temp[256]		= {};	// eLXgꎞi[p
	char		filepath[256]		= {};	// t@CpX
	char		error_string[256]	= {};	// G[R[h
	short		aochannel;					// `lԍ
	short		param;						// Por
	long		ret;						// ߂l擾p
	CString		text_string;				// G[R[h\p

	//----------------------------------------
	// eLXg{bNXf[^t@C擾
	//----------------------------------------
	m_edit_arbitrarydatafile.GetWindowText(text_temp, _countof(text_temp));
	WideCharToMultiByte(CP_ACP, 0, &text_temp[0], -1, &filepath[0], 256, NULL, NULL);
	//----------------------------------------
	// R{{bNX`l̃p[^iPorj擾
	//----------------------------------------
	param		= m_combo_param.GetCurSel();
	//----------------------------------------
	// R{{bNX`lԍ擾
	//----------------------------------------
	aochannel	= m_combo_aochannel.GetCurSel();
	//----------------------------------------
	// f[^t@C̐ݒ
	//----------------------------------------
	//-------------------
	// P`l̏ꍇA4`lԍɂ
	//-------------------
	if (param == 0) {
		ret = GenSaveDataFile(g_appid, filepath, param, aochannel);
	}
	//-------------------
	// `l̏ꍇA40ɂ
	//-------------------
	else {
		ret = GenSaveDataFile(g_appid, filepath, param, 0);
	}
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenSaveDataFile = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
}

//================================================================================
// GenStartOperation{^NbNۂ̏ɂȂ܂
// Av̏o͊Jns܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenStartoperation()
{
	TCHAR			text_temp[256]		= {};	// eLXgꎞi[p
	char			error_string[256]	= {};	// G[R[h
	long			ret;						// ߂l擾p
	CString			text_string;				// G[R[h\p

	//----------------------------------------
	// Av̏o͊Jns
	//----------------------------------------
	ret = GenStartOperation(g_appid);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenStartOperation = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
}

//================================================================================
// GenGetApplicationStatus{^NbNۂ̏ɂȂ܂
// 󋵂̎擾s܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenGetapplicationstatus()
{
	TCHAR			text_temp[256]		= {};	// eLXgꎞi[p
	char			error_string[256]	= {};	// G[R[h
	unsigned long	status				= 0;	// Xe[^X
	long			ret;						// ߂l擾p
	CString			text_string;				// G[R[h\p

	//----------------------------------------
	// 󋵂̎擾s
	//----------------------------------------
	ret = GenGetApplicationStatus(g_appid, &status);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenGetApplicationStatus = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
	//----------------------------------------
	// Xe[^X\
	//----------------------------------------
	if (status == 0) {
		text_string.Format(_T("00H(~)"));
	}
	else if (status == 1) {
		text_string.Format(_T("01H(쒆)"));
	}
	else if (status == 2) {
		text_string.Format(_T("02H(JngK҂)"));
	}
	else if (status == 3) {
		text_string.Format(_T("03H(쒆AJngK҂)"));
	}
	else {
		text_string.Format(_T("%d "), status);
	}
	m_edit_applicationstatus.SetWindowText(text_string);
}

//================================================================================
// GenStopOperation{^NbNۂ̏ɂȂ܂
// Av̏o͒~s܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenStopoperation()
{
	TCHAR	text_temp[256]		= {};	// eLXgꎞi[p
	char	error_string[256]	= {};	// G[R[h
	long	ret;						// ߂l擾p
	CString	text_string;				// G[R[h\p

	//----------------------------------------
	// Av̏o͒~s
	//----------------------------------------
	ret = GenStopOperation(g_appid);	
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenStopOperation = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowText(text_string);
}

//================================================================================
// GenCloseApplication{^NbNۂ̏ɂȂ܂
// foCX̏Is܂
//================================================================================
void CFileOperationDlg::OnBnClickedButtonGenClose()
{
	TCHAR			text_temp[256]		= {};	// eLXgꎞi[p
	char			error_string[256]	= {};	// G[R[h
	long			ret;						// ߂l擾p
	unsigned long	status;						// Xe[^X
	CString			text_string;				// G[R[h\p
	
	status = 0;
	//----------------------------------------
	// foCX̏Is
	//----------------------------------------
	ret = GenCloseApplication(g_appid, &status);
	//----------------------------------------
	// G[擾
	//----------------------------------------
	GenGetErrorString(ret, error_string);
	//----------------------------------------
	// G[R[h,bZ[W\
	//----------------------------------------
	wsprintf(text_temp, _T("%S"), error_string);
	text_string.Format(_T("GenCloseApplication = %d : %s"), ret, text_temp);
	m_edit_returnnum.SetWindowTextW(text_string);
	//----------------------------------------
	// Xe[^X\
	//----------------------------------------
	if (status == 0) {
		text_string.Format(_T("0(I)"));
	}
	else if (status == 1) {
		text_string.Format(_T("1(C-WaveformGeneratorIG[)"));
	}
	else {
		text_string.Format(_T("%d "), status);
	}
	m_edit_applicationstatus.SetWindowText(text_string);
}

//================================================================================
// I{^NbNꂽƂ̏ł
// AvP[VI܂
//================================================================================
void CFileOperationDlg::OnBnClickedClose()
{
	//----------------------------------------
	// _CAOI
	//----------------------------------------
	CDialog::OnOK();
}
