// DlgReplaceText.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "DynamicDrawView.h"// For g_pView.
#include "UtilDlg.h"		// For SetUnitString.etc.
#include "UtilStr.h"		// For FFExtractString.
#include "UtilWin.h"		// For FFAddString.
#include "RegData.h"		// For GetIsRegExp.etc.
#include "DlgReplaceText.h"	// This header.

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

#define FD_RECENT_FIND_TEXT_MAX 10

// _xZkqqHx_iNmFiLnPiOgHiCmBiClNiMjPiNpFjFlGiOjKjHpBiCmMiDiKiDfIiDgHiCpAiDiMiDfHiDfIiDgHiDiKiCmJiLeMjIfOiClHiCoJjGlMjBePiBeC_xHqqkZx_
static const wchar_t* REG_DLG_FIND_TEXT = L"CFCDlgFindText";
static const wchar_t* REG_DLG_REPLACE_TEXT = L"CFCDlgReplaceText";

/////////////////////////////////////////////////////////////////////////////
// CFCDlgReplaceText _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

//----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//CFCDlgReplaceText::CFCDlgReplaceText (CWnd* pParent /*=NULL*/)
//	: BASE_CLASS(CFCDlgReplaceText::IDD, pParent)
//{
//	//{{AFX_DATA_INIT(CFCDlgReplaceText)
//		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDhNiDgCiDhDiDjDiDePjHhAiCmMiDhNiDeOiDiNiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
//	//}}AFX_DATA_INIT
//} // CFCDlgReplaceText::CFCDlgReplaceText.
//----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
CFCDlgReplaceText::CFCDlgReplaceText ()
	: BASE_CLASS()
{
	//{{AFX_DATA_INIT(CFCDlgReplaceText)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDhNiDgCiDhDiDjDiDePjHhAiCmMiDhNiDeOiDiNiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_DATA_INIT
} // CFCDlgReplaceText::CFCDlgReplaceText.
//----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

void CFCDlgReplaceText::DoDataExchange(CDataExchange* pDX)
{
	BASE_CLASS::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFCDlgReplaceText)
	DDX_Control(pDX, IDC_RPT_CMB_TEXT_AFTER, m_cmbTextAfter);
	DDX_Control(pDX, IDC_RPT_CMB_TEXT_BEFORE, m_cmbTextBefore);
	//}}AFX_DATA_MAP
} // CFCDlgReplaceText::DoDataExchange.

/////////////////////////////////////////////////////////////////////////////
// CFCDlgReplaceText _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

//----- 01.01.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::SetSearchParser
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiDeHiDjDiDfHiDjDiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pSp	:_xZkqqHx_iMjPiNpFiDeHiDjDiDfHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDlgReplaceText::SetSearchParser (FCSearchParser* pSp)
//{
//	m_pSearchParser = pSp;
//	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
//} // CFCDlgReplaceText::SetSearchParser.
//----- 01.01.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.01.25 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::GetSearchParser
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiDeHiDjDiDfHiDjDiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiDeHiDjDiDfHiDjDiBeCiMjPiNpFiPpAiMiPiCkKjFhDjDeLjAnIiCmIiPoKiNiHiCmN_xHqqkZx_ NULL _xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FCSearchParser* CFCDlgReplaceText::GetSearchParser ()
//{
//	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
//	if (m_bIsChanged)
//	{
//		m_bIsChanged = FALSE;
//		// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiDiKiDfIiDgHiCmJjCmHiJmBiBeC_xHqqkZx_
//		FFUpdateTextComboList((CComboBox*)GetDlgItem(IDC_RPT_CMB_TEXT_BEFORE));
//		FFUpdateTextComboList((CComboBox*)GetDlgItem(IDC_RPT_CMB_TEXT_AFTER));
//		CString strBefore;
//		GetDlgItemText(IDC_RPT_CMB_TEXT_BEFORE, strBefore);
//		CString strAfter;
//		GetDlgItemText(IDC_RPT_CMB_TEXT_AFTER, strAfter);
//		if (!m_pSearchParser->ParseSearch(FCWCharStr(strBefore).Get(),
//									IsDlgButtonChecked(IDC_RPT_CHK_REGEXP) != 0,
//									IsDlgButtonChecked(IDC_RPT_CHK_AS_UPPERCASE) != 0),
//									TRUE, FCWCharStr(strAfter).Get())
//			return NULL;
//	}
//	return m_pSearchParser;
//} // CFCDlgReplaceText::GetSearchParser.
//----- 01.01.25 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::UpdateRegistory
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iKgFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjCgMiCpAiDiMiDfHiDfIiDgHiDiKiCmJjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::UpdateRegistory ()
{
	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
	if (m_bIsChanged)
	{
		m_bIsChanged = FALSE;
		// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiDiKiDfIiDgHiCmJjCmHiJmBiBeC_xHqqkZx_
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		FFUpdateTextComboList((CComboBox*)GetDlgItem(IDC_RPT_CMB_TEXT_BEFORE));
//		FFUpdateTextComboList((CComboBox*)GetDlgItem(IDC_RPT_CMB_TEXT_AFTER));
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		FFUpdateTextComboList(&m_cmbTextBefore);
		FFUpdateTextComboList(&m_cmbTextAfter);
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		//----- _xZkqqHx_iKgFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjCgMiCpAiDiMiDfHiDfIiDgHiDiKiCmJjAnNjCoI_xHqqkZx_ -----
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		CComboBox* pCmb = (CComboBox*)GetDlgItem(IDC_RPT_CMB_TEXT_BEFORE);
//		WString str;
//		WString strList;
//		for (int iC = 0; iC < pCmb->GetCount() && iC < FD_RECENT_FIND_TEXT_MAX; iC++)
//		{
//			FFGetLBText(pCmb, iC, str);
//			::FFAppendString(strList, str);
//		}
//		g_pReg->SetRecentFindStrings(strList);
//
//		strList.Empty();
//		pCmb = (CComboBox*)GetDlgItem(IDC_RPT_CMB_TEXT_AFTER);
//		for (iC = 0; iC < pCmb->GetCount() && iC < FD_RECENT_FIND_TEXT_MAX; iC++)
//		{
//			FFGetLBText(pCmb, iC, str);
//			::FFAppendString(strList, str);
//		}
//		g_pReg->SetRecentReplaceStrings(strList);
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		m_cmbTextBefore.UpdateRegistory();
		WString wstrFindText;
		FFGetDlgItemText(this, IDC_RPT_CMB_TEXT_BEFORE, wstrFindText);
		g_pReg->SetRecentFindString(wstrFindText);
		m_cmbTextAfter.UpdateRegistory();
		WString wstrReplaceText;
		FFGetDlgItemText(this, IDC_RPT_CMB_TEXT_AFTER, wstrReplaceText);
		g_pReg->SetRecentReplaceString(wstrReplaceText);
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

		g_pReg->SetIsRegExp(IsDlgButtonChecked(IDC_RPT_CHK_REGEXP) != 0);
		g_pReg->SetIsFindMultiWord(IsDlgButtonChecked(IDC_RPT_CHK_MULTI_WORD) != 0);
		g_pReg->SetIsCnvUpper(IsDlgButtonChecked(IDC_RPT_CHK_AS_UPPERCASE) != 0);
		g_pReg->SetIsFindChipText(IsDlgButtonChecked(IDC_RPT_CHK_CHIP_TEXT) != 0);
		g_pReg->SetIsFindNoEditLayer(IsDlgButtonChecked(IDC_RPT_CHK_FIND_NO_EDIT_LAYER) != 0);
		g_pReg->SetIsReplaceNoSelectLayer(IsDlgButtonChecked(IDC_RPT_CHK_REPLACE_NO_SELECT_LAYER) != 0);
		g_pReg->SetIsReplaceNoDisplayLayer(IsDlgButtonChecked(IDC_RPT_CHK_REPLACE_NO_DISPLAY_LAYER) != 0);
	}
} // CFCDlgReplaceText::UpdateRegistory.
//----- 01.01.25 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::SetChkChipTextVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDgAiDgCiDhGiCmMjEpBjFnCiPfHiDgFiDeMiDfIiDgHiCoAjBmOiPnLiBhGiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCmMjFfMiOkGiBeFjEpBjFfMiOkG_xHqqkZx_
 *			_xZkqqHx_iCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bVisible	:_xZkqqHx_jFfMiOkGiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE _xZkqqHx_iCpAiOhHjCoIiBeCjEpBjFfMiOkGiCmIiCoH_xHqqkZx_ FALSE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::SetChkChipTextVisible (BOOL bVisible)
{
	GetDlgItem(IDC_RPT_CHK_CHIP_TEXT)->EnableWindow(bVisible);
} // CFCDlgReplaceText::SetChkChipTextVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::SetChkFindLayerVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jChFiKlHjBmOiPnLiDiMiDeDiDiEiBfLiOhHjCoIiCmMiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCmM_xHqqkZx_
 *			_xZkqqHx_jFfMiOkGiBeFjEpBjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bVisible	:_xZkqqHx_jFfMiOkGiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE _xZkqqHx_iCpAiOhHjCoIiBeCjEpBjFfMiOkGiCmIiCoH_xHqqkZx_ FALSE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::SetChkFindLayerVisible (BOOL bVisible)
{
	GetDlgItem(IDC_RPT_CHK_FIND_NO_EDIT_LAYER)->EnableWindow(bVisible);
	GetDlgItem(IDC_RPT_CHK_REPLACE_NO_SELECT_LAYER)->EnableWindow(bVisible);
	GetDlgItem(IDC_RPT_CHK_REPLACE_NO_DISPLAY_LAYER)->EnableWindow(bVisible);
} // CFCDlgReplaceText::SetChkFindLayerVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::SetBtnReplaceAllInSelectVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBeJjBpAjFjEjFgJiCmMiCnNjChFiKlHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bVisible	:_xZkqqHx_jFfMiOkGiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE _xZkqqHx_iCpAiOhHjCoIiBeCjEpBjFfMiOkGiCmIiCoH_xHqqkZx_ FALSE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.08.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::SetBtnReplaceAllInSelectVisible (BOOL bVisible)
{
	GetDlgItem(IDC_RPT_BTN_REPLACE_ALL_IN_SELECT)->EnableWindow(bVisible);
} // CFCDlgReplaceText::SetBtnReplaceAllInSelectVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::UpdateControl
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiNfIjAfGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::UpdateControl ()
{
	//----- _xZkqqHx_iKgFiDfCiDjDiDgHiDiNiBfLiDiLiCmMiDgGiDhEiDeIiDiLiDgHjCgMiCpAjAnNjCoI_xHqqkZx_ -----
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	CComboBox* pCmb = (CComboBox*)GetDlgItem(IDC_RPT_CMB_TEXT_BEFORE);
//	pCmb->ResetContent();
//	WString strList = g_pReg->GetRecentFindStrings();
//	WString str;
//	while (!strList.IsEmpty())
//	{
//		str = FFExtractString(strList);
//		FFAddString(pCmb ,str);
//	}
//	pCmb->SetCurSel(0);
//
//	pCmb = (CComboBox*)GetDlgItem(IDC_RPT_CMB_TEXT_AFTER);
//	pCmb->ResetContent();
//	strList = g_pReg->GetRecentReplaceStrings();
//	while (!strList.IsEmpty())
//	{
//		str = FFExtractString(strList);
//		FFAddString(pCmb ,str);
//	}
//	pCmb->SetCurSel(0);
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	m_cmbTextBefore.UpdateControl();
	m_cmbTextAfter.UpdateControl();
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

	CheckDlgButton(IDC_RPT_CHK_REGEXP, g_pReg->GetIsRegExp());
	CheckDlgButton(IDC_RPT_CHK_MULTI_WORD, g_pReg->GetIsFindMultiWord());
	CheckDlgButton(IDC_RPT_CHK_AS_UPPERCASE, g_pReg->GetIsCnvUpper());
	CheckDlgButton(IDC_RPT_CHK_CHIP_TEXT, g_pReg->GetIsFindChipText());
	CheckDlgButton(IDC_RPT_CHK_FIND_NO_EDIT_LAYER, g_pReg->GetIsFindNoEditLayer());
	CheckDlgButton(IDC_RPT_CHK_REPLACE_NO_SELECT_LAYER, g_pReg->GetIsReplaceNoSelectLayer());
	CheckDlgButton(IDC_RPT_CHK_REPLACE_NO_DISPLAY_LAYER, g_pReg->GetIsReplaceNoDisplayLayer());

	m_bIsChanged = FALSE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgReplaceText::UpdateControl.

BEGIN_MESSAGE_MAP(CFCDlgReplaceText, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDlgReplaceText)
	ON_BN_CLICKED(IDC_RPT_BTN_REPLACE_NEXT, OnRptBtnReplaceNext)
	ON_WM_DESTROY()
	ON_BN_CLICKED(IDC_RPT_CHK_REGEXP, OnRptChkRegexp)
	ON_BN_CLICKED(IDC_RPT_CHK_AS_UPPERCASE, OnRptChkAsUppercase)
	ON_CBN_EDITCHANGE(IDC_RPT_CMB_TEXT_AFTER, OnEditchangeRptCmbTextAfter)
	ON_CBN_SELCHANGE(IDC_RPT_CMB_TEXT_AFTER, OnSelchangeRptCmbTextAfter)
	ON_CBN_EDITCHANGE(IDC_RPT_CMB_TEXT_BEFORE, OnEditchangeRptCmbTextBefore)
	ON_CBN_SELCHANGE(IDC_RPT_CMB_TEXT_BEFORE, OnSelchangeRptCmbTextBefore)
	ON_WM_SHOWWINDOW()
	ON_BN_CLICKED(IDC_RPT_BTN_REPLACE_PREV, OnRptBtnReplacePrev)
	ON_BN_CLICKED(IDC_RPT_BTN_REPLACE_ALL, OnRptBtnReplaceAll)
	ON_BN_CLICKED(IDC_RPT_CHK_CHIP_TEXT, OnRptChkChipText)
	ON_BN_CLICKED(IDC_RPT_CHK_FIND_NO_EDIT_LAYER, OnRptChkFindNoEditLayer)
	ON_BN_CLICKED(IDC_RPT_BTN_FIND_NEXT, OnRptBtnFindNext)
	ON_BN_CLICKED(IDC_RPT_BTN_FIND_PREV, OnRptBtnFindPrev)
	ON_CBN_CLOSEUP(IDC_RPT_CMB_TEXT_BEFORE, OnCloseupRptCmbTextBefore)
	ON_CBN_CLOSEUP(IDC_RPT_CMB_TEXT_AFTER, OnCloseupRptCmbTextAfter)
	ON_BN_CLICKED(IDC_RPT_CHK_REPLACE_NO_SELECT_LAYER, OnRptChkReplaceNoSelectLayer)
	ON_BN_CLICKED(IDC_RPT_CHK_REPLACE_NO_DISPLAY_LAYER, OnRptChkReplaceNoDisplayLayer)
	ON_BN_CLICKED(IDC_RPT_CHK_MULTI_WORD, OnRptChkMultiWord)
	ON_BN_CLICKED(IDC_RPT_BTN_REPLACE_ALL_IN_SELECT, OnRptBtnReplaceAllInSelect)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDlgReplaceText _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMiPiJiKpKiJlLiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDlgReplaceText::OnInitDialog ()
{
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnInitDialog();
	// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	m_cmbTextBefore.Initialize(NULL, REG_DLG_FIND_TEXT);
	m_cmbTextAfter.Initialize(NULL, REG_DLG_REPLACE_TEXT);

	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiNfIjAfGiBeC_xHqqkZx_
	UpdateControl();
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMjCfAiImKjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	::SetUnitString(m_hWnd);
	// _xZkqqHx_jHjIiCkLjIhCjBmOiJjOjFlGiOjKjHpBiCmMjAnNjCoIiCpAiNhDiCkEiBeC_xHqqkZx_
	::RightByLeftHand(m_hWnd);
//----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAiDhNiDeFiDfIiImKjChFiCmJiInKjDkOiBeC_xHqqkZx_
//	FFJustifyWindow(m_hWnd);
//----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// BASE_CLASS_xZkqqHx_iCmFiDeFiDeCiDjDiDgIiDeFiImKjChFiCpAiOhHjCoIiClDiCoKiCoJiClNiCnPiBeB_xHqqkZx_FFJustifyWindow _xZkqqHx_iCmNiOmAiNhDiClFiCmIiCkCiBeC_xHqqkZx_
//----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	return TRUE;  // _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmJiDhEiDeIiBfLiDeKiDfIiCpAjAnNjCoIiClFiCmIiCkCiCmGiCkLiBeBjGnPiCoIjCgMiCmN_xHqqkZx_ TRUE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
	              // _xZkqqHx_jHoBiKeP_xHqqkZx_: OCX _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfHiCmMjGnPiCoIjCgMiCmN_xHqqkZx_ FALSE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
} // CFCDlgReplaceText::OnInitDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnDestroy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMiPeJjHlJiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnDestroy ()
{
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnDestroy();
	
	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
	
} // CFCDlgReplaceText::OnDestroy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptChkRegexp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAlDiLeLjFfMiMlLiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCmMjAnIiCoIjBnGiCkGiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptChkRegexp ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgReplaceText::OnRptChkRegexp.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptChkMultiWord
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjFkBjAjEjCfAiMoKiCmMiMjPiNpFiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptChkMultiWord ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgReplaceText::OnRptChkMultiWord.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptChkAsUppercase
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBoFjFlGiOjKiBeFiPkMjFlGiOjKiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCmMjAnIiCoIjBnGiCkGiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptChkAsUppercase ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgReplaceText::OnRptChkAsUppercase.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptChkChipText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDgAiDgCiDhGiCmMjEpBjFnCiPfHiDgFiDeMiDfIiDgHiCoAjBmOiPnLiBhGiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCkJiCoHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptChkChipText ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgReplaceText::OnRptChkChipText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptChkFindNoEditLayer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjFnCiPfHjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCkJiCoHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptChkFindNoEditLayer ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
	if (IsDlgButtonChecked(IDC_RPT_CHK_FIND_NO_EDIT_LAYER) == 0)
	{
		// _xZkqqHx_iBhFjFnCiPfHjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCkKiDgAiDeGiDgCiDeOiJpAiPjMiClDiCoKiClNiPoKiNiHiCmNiBeB_xHqqkZx_
		// _xZkqqHx_iBhFjBeJjBpAjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiBhFjFfMiOkGjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCpAiDgAiDeGiDgCiDeOiJpAiPjMiClHiCoJiBeC_xHqqkZx_
		CheckDlgButton(IDC_RPT_CHK_REPLACE_NO_SELECT_LAYER, FALSE);
		CheckDlgButton(IDC_RPT_CHK_REPLACE_NO_DISPLAY_LAYER, FALSE);
	}
} // CFCDlgReplaceText::OnRptChkFindNoEditLayer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptChkReplaceNoSelectLayer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBeJjBpAjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCkJiCoHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptChkReplaceNoSelectLayer ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
	if (IsDlgButtonChecked(IDC_RPT_CHK_REPLACE_NO_SELECT_LAYER) != 0)
	{
		// _xZkqqHx_iBhFjBeJjBpAjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCkKiDgAiDeGiDgCiDeOiClDiCoKiClNiPoKiNiHiCmNiBeB_xHqqkZx_
		// _xZkqqHx_iBhFjFnCiPfHjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCpAiDgAiDeGiDgCiDeOiClHiCoJiBeC_xHqqkZx_
		CheckDlgButton(IDC_RPT_CHK_FIND_NO_EDIT_LAYER, TRUE);
	} else
	{
		// _xZkqqHx_iBhFjBeJjBpAjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCkKiDgAiDeGiDgCiDeOiJpAiPjMiClDiCoKiClNiPoKiNiHiCmNiBeB_xHqqkZx_
		// _xZkqqHx_iBhFjFfMiOkGjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCpAiDgAiDeGiDgCiDeOiJpAiPjMiClHiCoJiBeC_xHqqkZx_
		CheckDlgButton(IDC_RPT_CHK_REPLACE_NO_DISPLAY_LAYER, FALSE);
	}
} // CFCDlgReplaceText::OnRptChkReplaceNoSelectLayer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptChkReplaceNoDisplayLayer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjFfMiOkGjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCkJiCoHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptChkReplaceNoDisplayLayer ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
	if (IsDlgButtonChecked(IDC_RPT_CHK_REPLACE_NO_DISPLAY_LAYER) != 0)
	{
		// _xZkqqHx_iBhFjFfMiOkGjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCkKiDgAiDeGiDgCiDeOiClDiCoKiClNiPoKiNiHiCmNiBeB_xHqqkZx_
		// _xZkqqHx_iBhFjBeJjBpAjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiBhFjFnCiPfHjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCpAiDgAiDeGiDgCiDeOiClHiCoJiBeC_xHqqkZx_
		CheckDlgButton(IDC_RPT_CHK_FIND_NO_EDIT_LAYER, TRUE);
		CheckDlgButton(IDC_RPT_CHK_REPLACE_NO_SELECT_LAYER, TRUE);
	}
} // CFCDlgReplaceText::OnRptChkReplaceNoDisplayLayer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnEditchangeRptCmbTextAfter
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jChFiKlHiDeMiBfLiDeHiDgGiDeCiDgCiDgHiCmMjFmPiNfIiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnEditchangeRptCmbTextAfter ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgReplaceText::OnEditchangeRptCmbTextAfter.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnCloseupRptCmbTextAfter
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jChFiKlHiDeMiBfLiDeHiDgGiDeCiDgCiDgHiCmMjFmPiNfIiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnCloseupRptCmbTextAfter ()
{
	OnEditchangeRptCmbTextAfter();
} // CFCDlgReplaceText::OnCloseupRptCmbTextAfter.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnSelchangeRptCmbTextAfter
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jChFiKlHiDeMiBfLiDeHiDgGiDeCiDgCiDgHiCmMjBeJjBpAjFmPiNfIiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnSelchangeRptCmbTextAfter ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgReplaceText::OnSelchangeRptCmbTextAfter.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnEditchangeRptCmbTextBefore
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiDeMiBfLiDeHiDgGiDeCiDgCiDgHiCmMjFmPiNfIiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnEditchangeRptCmbTextBefore ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgReplaceText::OnEditchangeRptCmbTextBefore.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnCloseupRptCmbTextBefore
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiDeMiBfLiDeHiDgGiDeCiDgCiDgHiCmMjFmPiNfIiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnCloseupRptCmbTextBefore ()
{
	OnEditchangeRptCmbTextBefore();
} // CFCDlgReplaceText::OnCloseupRptCmbTextBefore.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnSelchangeRptCmbTextBefore
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiDeMiBfLiDeHiDgGiDeCiDgCiDgHiCmMjBeJjBpAjFmPiNfIiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnSelchangeRptCmbTextBefore ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgReplaceText::OnSelchangeRptCmbTextBefore.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnShowWindow
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMjFfMiOkGiPpDjBnEiCkKjFmPiNfIiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bShow	:_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAjFfMiOkGiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiClFiCnMiClHiBeC_xHqqkZx_
 *					 _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAjFfMiOkGiClHiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE _xZkqqHx_iCpAiBeBjEpBjFfMiOkGiCmJiClHiCoJ_xHqqkZx_
 *					 _xZkqqHx_iPoKiNiHiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiClFiCnMiClHiBeC_xHqqkZx_
 *			nStatus	:_xZkqqHx_jFfMiOkGiClHiCoJiDeFiDeCiDjDiDgIiDeFiCmMiPpDjBnEiCpAiOhHjCoIiClFiCnMiClHiBeC_xHqqkZx_
 *					 ShowWindow _xZkqqHx_iDiBiDjDiDgPiKnGjAjEiCkKiMmEiCnBiPgPiClDiCoKiBeBiDiBiDgCiDfKiBfLiDfHiCkK_xHqqkZx_
 *					 _xZkqqHx_jBjHiCoHiCoKiCoJiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iCmJiCmIiCoIiCnMiClHiBeC_xHqqkZx_
 *					 _xZkqqHx_iClLiCoKiImIiKePiCmMiPoKiNiHiCmNiBeB_xHqqkZx_nStatus _xZkqqHx_iCmNiOjPiCmMjCgMiCmMiCkCiClIiCoKiCkJiCmJiCmIiCoIiCnMiClHiBeC_xHqqkZx_ 
 *				SW_PARENTCLOSING	:_xZkqqHx_jAgFiDeFiDeCiDjDiDgIiDeFiCkKiDeOiDiNiBfLiDfJ_xHqqkZx_ (_xZkqqHx_iDeBiDeDiDfCiDjDiJlL_xHqqkZx_) 
 *									 _xZkqqHx_iClDiCoKiCoJiCkJiBeBiDhMiDgCiDhGiDeBiDgCiDhG_xHqqkZx_ _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkK_xHqqkZx_
 *									 _xZkqqHx_jEpBjFfMiOkGiCmJiCmIiCoIiCnMiClHiBeC_xHqqkZx_
 *				SW_PARENTOPENING	:_xZkqqHx_jAgFiDeFiDeCiDjDiDgIiDeFiCkKiDeJiBfLiDhGiDjD_xHqqkZx_ (_xZkqqHx_jFfMiOkG_xHqqkZx_) _xZkqqHx_iClDiCoKiCoJiCkJiBeB_xHqqkZx_
 *									 _xZkqqHx_iDhMiDgCiDhGiDeBiDgCiDhG_xHqqkZx_ _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiClDiCoKiCnMiClHiBeC_xHqqkZx_ 
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnShowWindow (BOOL bShow, UINT nStatus)
{
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnShowWindow(bShow, nStatus);
	if (bShow)
	//----- Window_xZkqqHx_iCpAjFfMiOkGiCmJiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiNfIjAfGiBeC_xHqqkZx_
		UpdateControl();
//----- 02.05.31 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ (_xZkqqHx_iMjPiNpFiBeFjChFiKlHiDhAiDgMiDiLiCmFiBeBiKeKiCkCiClNiOjOiDhEiDeIiBfLiDeKiDfIiCkKjDpMjHmNjIgHiCmJiCmIiCkCiBeC_xHqqkZx_)-----
//		// _xZkqqHx_jChFiKlHiMoDiOjPiDhLiDfOiDjDiCmJiDhEiDeIiBfLiDeKiDfIiBeC_xHqqkZx_
//		GetDlgItem(IDC_RPT_BTN_REPLACE_NEXT)->SetFocus();
//----- 02.05.31 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ (_xZkqqHx_iMjPiNpFiBeFjChFiKlHiDhAiDgMiDiLiCmFiBeBiKeKiCkCiClNiOjOiDhEiDeIiBfLiDeKiDfIiCkKjDpMjHmNjIgHiCmJiCmIiCkCiBeC_xHqqkZx_)-----
	} else
	//----- Window_xZkqqHx_iCpAjEpBjFfMiOkGiCmJiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCpAiNfIjAfGiBeC_xHqqkZx_
		UpdateRegistory();
	}
} // CFCDlgReplaceText::OnShowWindow.

//----- 01.01.26 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnClose
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFmCiClGiCoJiCmGiCkLiCmJiOmAiNhDiBeC_xHqqkZx_HIDE_xZkqqHx_iClDiCoKiCoJiClOiCkPiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDlgReplaceText::OnClose ()
//{
//	// Window_xZkqqHx_iCpAjEpBjFfMiOkGiCmJiClHiCoJiPoKiNiHiBeC_xHqqkZx_
//	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCpAiNfIjAfGiBeC_xHqqkZx_
//	UpdateRegistory();
//	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
//	BASE_CLASS::OnClose();
//} // CFCDlgReplaceText::OnClose.
//----- 01.01.26 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptBtnReplaceNext
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjChFiKlHiMoDiJlKjFpLiCpAiMjPiNpFiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptBtnReplaceNext ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_REPLACE_NEXT_TEXT);
} // CFCDlgReplaceText::OnRptBtnReplaceNext.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptBtnReplacePrev
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjChFiKlHiMoDiPoDjFpLiCpAiMjPiNpFiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptBtnReplacePrev ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_REPLACE_PREV_TEXT);
} // CFCDlgReplaceText::OnRptBtnReplacePrev.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptBtnReplaceAll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBfDiCmEiCpAjChFiKlHiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptBtnReplaceAll ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_REPLACE_TEXT_ALL);
} // CFCDlgReplaceText::OnRptBtnReplaceAll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptBtnReplaceAllInSelect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhLiDfOiDjDiBhFjBeJjBpAjFjEjFgJiCmMiCnNjChFiKlHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptBtnReplaceAllInSelect ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_REPLACE_TEXT_ALL_IN_SELECT);
} // CFCDlgReplaceText::OnRptBtnReplaceAllInSelect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptBtnFindNext
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiJlKjFpLiCpAiMjPiNpFiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptBtnFindNext ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_FIND_NEXT_TEXT);
} // CFCDlgReplaceText::OnRptBtnFindNext.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnRptBtnFindPrev
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiPoDjFpLiCpAiMjPiNpFiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnRptBtnFindPrev ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_FIND_PREV_TEXT);
} // CFCDlgReplaceText::OnRptBtnFindPrev.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceText::OnCancel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDeMiDiDiDjDiDfKiDiLiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceText::OnCancel ()
{
	// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiPiIjHjNiCmFiCoAjEpBjFfMiOkGiCmJiCmIiCoJiCkKiBeB_xHqqkZx_OnShowWindow_xZkqqHx_iCpAiOmAiNhDiClHiCoJiClNiCnPiImIiJlKiBeC_xHqqkZx_
	ShowWindow(SW_HIDE);
} // CFCDlgReplaceText::OnCancel.

