// DlgFindText.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "UtilDlg.h"			// For SetUnitString.etc.
#include "UtilStr.h"			// For FFExtractString.
#include "UtilWin.h"			// For FFAddString.
#include "RegData.h"			// For GetIsRegExp.etc.
#include "DynamicDrawView.h"	// For g_pView.
#include "DlgFindText.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_iDiMiDfHiDfIiDgHiDiKjFnLjBlGjGlM_xHqqkZx_ -----
static const wchar_t* REG_DLG_FIND_TEXT = L"CFCDlgFindText";

/////////////////////////////////////////////////////////////////////////////
// CFCDlgFindText _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_


//----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::CFCDlgFindText
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//CFCDlgFindText::CFCDlgFindText (CWnd* pParent /*=NULL*/)
//	: BASE_CLASS(CFCDlgFindText::IDD, pParent)
//{
//	//{{AFX_DATA_INIT(CFCDlgFindText)
//		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDhNiDgCiDhDiDjDiDePjHhAiCmMiDhNiDeOiDiNiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
//	//}}AFX_DATA_INIT
//} // CFCDlgFindText::CFCDlgFindText.
//----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::CFCDlgFindText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCDlgFindText::CFCDlgFindText ()
	: BASE_CLASS()
{
	//{{AFX_DATA_INIT(CFCDlgFindText)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDhNiDgCiDhDiDjDiDePjHhAiCmMiDhNiDeOiDiNiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_DATA_INIT
} // CFCDlgFindText::CFCDlgFindText.
//----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

void CFCDlgFindText::DoDataExchange(CDataExchange* pDX)
{
	BASE_CLASS::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFCDlgFindText)
	DDX_Control(pDX, IDC_FDT_CMB_TEXT, m_cmbText);
	//}}AFX_DATA_MAP
} // CFCDlgFindText::DoDataExchange.

/////////////////////////////////////////////////////////////////////////////
// CFCDlgFindText _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::UpdateRegistory
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iKgFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjCgMiCpAiDiMiDfHiDfIiDgHiDiKiCmJjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::UpdateRegistory ()
{
	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
	if (m_bIsChanged)
	{
		m_bIsChanged = FALSE;
		// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiDiKiDfIiDgHiCmJjCmHiJmBiBeC_xHqqkZx_
		FFUpdateTextComboList(&m_cmbText);

		//----- _xZkqqHx_iKgFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjCgMiCpAiDiMiDfHiDfIiDgHiDiKiCmJjAnNjCoI_xHqqkZx_ -----
		m_cmbText.UpdateRegistory();
		WString wstrFindText;
		FFGetDlgItemText(this, IDC_FDT_CMB_TEXT, wstrFindText);
		g_pReg->SetRecentFindString(wstrFindText);
		g_pReg->SetIsRegExp(IsDlgButtonChecked(IDC_FDT_CHK_REGEXP) != 0);
		g_pReg->SetIsFindMultiWord(IsDlgButtonChecked(IDC_FDT_CHK_MULTI_WORD) != 0);
		g_pReg->SetIsCnvUpper(IsDlgButtonChecked(IDC_FDT_CHK_AS_UPPERCASE) != 0);
		g_pReg->SetIsFindChipText(IsDlgButtonChecked(IDC_FDT_CHK_CHIP_TEXT) != 0);
		g_pReg->SetIsFindNoEditLayer(IsDlgButtonChecked(IDC_FDT_CHK_FIND_NO_EDIT_LAYER) != 0);
		// _xZkqqHx_iBhFjFnCiPfHjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCpAiJpAiPjMiClFiClNiPoKiNiHiCmNiBeBiDgFiDeMiDfIiDgHjChFiKlHiDfPiDeDiDeBiDiNiDePiCmM_xHqqkZx_
		// _xZkqqHx_iBhFjBeJjBpAjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiBhFjFfMiOkGjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiCoAjDkPiOjOiCmJiJpAiPjMiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
		if (IsDlgButtonChecked(IDC_FDT_CHK_FIND_NO_EDIT_LAYER) == 0)
		{
			g_pReg->SetIsReplaceNoSelectLayer(FALSE);
			g_pReg->SetIsReplaceNoDisplayLayer(FALSE);
		}
	}
} // CFCDlgFindText::UpdateRegistory.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::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 CFCDlgFindText::SetChkChipTextVisible (BOOL bVisible)
{
	GetDlgItem(IDC_FDT_CHK_CHIP_TEXT)->EnableWindow(bVisible);
} // CFCDlgFindText::SetChkChipTextVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::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.02.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::SetChkFindLayerVisible (BOOL bVisible)
{
	GetDlgItem(IDC_FDT_CHK_FIND_NO_EDIT_LAYER)->EnableWindow(bVisible);
} // CFCDlgFindText::SetChkFindLayerVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::SetBtnFindAllVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiClHiCnHiCmEiCpAiMjPiNpFiBhGiDhLiDfOiDjDiCmMjFfMiOkGiBeFjEpBjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_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 CFCDlgFindText::SetBtnFindAllVisible (BOOL bVisible)
{
	GetDlgItem(IDC_FDT_BTN_FIND_ALL)->EnableWindow(bVisible);
} // CFCDlgFindText::SetBtnFindAllVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::SetBtnFindAllInSelectVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBeJjBpAjFjEjFgJiCmMiCnNiMjPiNpFiBhGiDhLiDfOiDjDiCmMjFfMiOkGiBeFjEpBjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_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 CFCDlgFindText::SetBtnFindAllInSelectVisible (BOOL bVisible)
{
	GetDlgItem(IDC_FDT_BTN_FIND_ALL_IN_SELECT)->EnableWindow(bVisible);
} // CFCDlgFindText::SetBtnFindAllInSelectVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::UpdateControl
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiNfIjAfGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::UpdateControl ()
{
	//----- _xZkqqHx_iKgFiDfCiDjDiDgHiDiNiBfLiDiLiCmMiDgGiDhEiDeIiDiLiDgHjCgMiCpAjAnNjCoI_xHqqkZx_ -----
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	CComboBox* pCmb = (CComboBox*)GetDlgItem(IDC_FDT_CMB_TEXT);
//	pCmb->ResetContent();
//	WString strList = g_pReg->GetRecentFindStrings();
//	WString str;
//	while (!strList.IsEmpty())
//	{
//		str = FFExtractString(strList);
//		FFAddString(pCmb ,str);
//	}
//	pCmb->SetCurSel(0);
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	m_cmbText.UpdateControl();
//----- 04.12.26 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	CheckDlgButton(IDC_FDT_CHK_REGEXP, g_pReg->GetIsRegExp());
	CheckDlgButton(IDC_FDT_CHK_MULTI_WORD, g_pReg->GetIsFindMultiWord());
	CheckDlgButton(IDC_FDT_CHK_AS_UPPERCASE, g_pReg->GetIsCnvUpper());
	CheckDlgButton(IDC_FDT_CHK_CHIP_TEXT, g_pReg->GetIsFindChipText());
	CheckDlgButton(IDC_FDT_CHK_FIND_NO_EDIT_LAYER, g_pReg->GetIsFindNoEditLayer());

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

//----- 01.01.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::SetCallback
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiKnGjAjEiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	fncCallback	:_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiKnGjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			pData		:_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiOjOiCmJjFhEiJmBiClHiCoJiDgGiBfLiDfOiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDlgFindText::SetCallback (FindControlCallbackFunc fncCallback, void* pData)
//{
//	m_fncCallback = fncCallback;
//	m_pData = pData;
//} // CFCDlgFindText::SetCallback.
//----- 01.01.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

BEGIN_MESSAGE_MAP(CFCDlgFindText, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDlgFindText)
	ON_BN_CLICKED(IDC_FDT_BTN_FIND_NEXT, OnFdtBtnFindNext)
	ON_BN_CLICKED(IDC_FDT_BTN_FIND_PREV, OnFdtBtnFindPrev)
	ON_WM_DESTROY()
	ON_CBN_EDITCHANGE(IDC_FDT_CMB_TEXT, OnEditchangeFdtCmbText)
	ON_CBN_SELCHANGE(IDC_FDT_CMB_TEXT, OnSelchangeFdtCmbText)
	ON_BN_CLICKED(IDC_FDT_CHK_REGEXP, OnFdtChkRegexp)
	ON_BN_CLICKED(IDC_FDT_CHK_AS_UPPERCASE, OnFdtChkAsUppercase)
	ON_WM_SHOWWINDOW()
	ON_BN_CLICKED(IDC_FDT_CHK_CHIP_TEXT, OnFdtChkChipText)
	ON_CBN_CLOSEUP(IDC_FDT_CMB_TEXT, OnCloseupFdtCmbText)
	ON_BN_CLICKED(IDC_FDT_CHK_FIND_NO_EDIT_LAYER, OnFdtChkFindNoEditLayer)
	ON_BN_CLICKED(IDC_FDT_CHK_MULTI_WORD, OnFdtChkMultiWord)
	ON_BN_CLICKED(IDC_FDT_BTN_FIND_ALL, OnFdtBtnFindAll)
	ON_BN_CLICKED(IDC_FDT_BTN_FIND_ALL_IN_SELECT, OnFdtBtnFindAllInSelect)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDlgFindText _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMiPiJiKpKiJlLiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDlgFindText::OnInitDialog ()
{
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnInitDialog();
	// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	m_cmbText.Initialize(NULL, REG_DLG_FIND_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_
} // CFCDlgFindText::OnInitDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnDestroy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMiPeJjHlJiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnDestroy ()
{
	// _xZkqqHx_iKgFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjCgMiCpAiDiMiDfHiDfIiDgHiDiKiCmJjAnNjCoIiBeC_xHqqkZx_
	UpdateRegistory();
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnDestroy();
} // CFCDlgFindText::OnDestroy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnFdtBtnFindNext
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiJlKiCnGiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnFdtBtnFindNext ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_FIND_NEXT_TEXT);
} // CFCDlgFindText::OnFdtBtnFindNext.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnFdtBtnFindPrev
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiPoDiCnGiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnFdtBtnFindPrev ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_FIND_PREV_TEXT);
} // CFCDlgFindText::OnFdtBtnFindPrev.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnFdtBtnFindAll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhLiDfOiDjDiBhFjBfDiCmEiCpAiMjPiNpFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnFdtBtnFindAll ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_FIND_TEXT_ALL);
} // CFCDlgFindText::OnFdtBtnFindAll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnFdtBtnFindAllInSelect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhLiDfOiDjDiBhFjBfDjBeJjBpAjFjEjFgJiCpAiMjPiNpFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnFdtBtnFindAllInSelect ()
{
	g_pView->PostMessage(WM_COMMAND, ID_EDIT_FIND_TEXT_ALL_IN_SELECT);
} // CFCDlgFindText::OnFdtBtnFindAllInSelect.

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

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnEditchangeFdtCmbText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiDeMiBfLiDeHiDgGiDeCiDgCiDgHiCmMjFmPiNfIiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnEditchangeFdtCmbText ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgFindText::OnEditchangeFdtCmbText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnCloseupFdtCmbText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiDeMiBfLiDeHiDgGiDeCiDgCiDgHiCmMjFmPiNfIiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnCloseupFdtCmbText ()
{
	OnEditchangeFdtCmbText();
} // CFCDlgFindText::OnCloseupFdtCmbText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnSelchangeFdtCmbText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiDeMiBfLiDeHiDgGiDeCiDgCiDgHiCmMjBeJjBpAjFmPiNfIiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnSelchangeFdtCmbText ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgFindText::OnSelchangeFdtCmbText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnFdtChkRegexp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAlDiLeLjFfMiMlLiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCmMjAnIiCoIjBnGiCkGiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnFdtChkRegexp ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgFindText::OnFdtChkRegexp.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnFdtChkAsUppercase
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBoFjFlGiOjKiBeFiPkMjFlGiOjKiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCmMjAnIiCoIjBnGiCkGiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnFdtChkAsUppercase ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgFindText::OnFdtChkAsUppercase.

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

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnFdtChkFindNoEditLayer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjFnCiPfHjFhDiJmCiDiMiDeDiDiEiBfLiCoAjBmOiPnLiBhGiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCkJiCoHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnFdtChkFindNoEditLayer ()
{
	m_bIsChanged = TRUE;	// _xZkqqHx_iMjPiNpFiPpAiMiPiCkKjBePiJpBiCmMiMjPiNpFiCkJiCoHjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
} // CFCDlgFindText::OnFdtChkFindNoEditLayer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::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 CFCDlgFindText::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_iOjPiDhLiDfOiDjDiCmJiDhEiDeIiBfLiDeKiDfIiBeC_xHqqkZx_
//		GetDlgItem(IDC_FDT_BTN_FIND_NEXT)->SetFocus();
//----- 02.05.31 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ (_xZkqqHx_iMjPiNpFiBeFjChFiKlHiDhAiDgMiDiLiCmFiBeBiKeKiCkCiClNiOjOiDhEiDeIiBfLiDeKiDfIiCkKjDpMjHmNjIgHiCmJiCmIiCkCiBeC_xHqqkZx_)-----
	} else
	//----- Window_xZkqqHx_iCpAjEpBjFfMiOkGiCmJiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCpAiNfIjAfGiBeC_xHqqkZx_
		UpdateRegistory();
	}
} // CFCDlgFindText::OnShowWindow.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindText::OnCancel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDeMiDiDiDjDiDfKiDiLiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindText::OnCancel ()
{
	// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiPiIjHjNiCmFiCoAjEpBjFfMiOkGiCmJiCmIiCoJiCkKiBeB_xHqqkZx_OnShowWindow_xZkqqHx_iCpAiOmAiNhDiClHiCoJiClNiCnPiImIiJlKiBeC_xHqqkZx_
// 05.11.13 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	ShowWindow(SW_HIDE);
	SetWindowVisible(FALSE);
} // CFCDlgFindText::OnCancel.

