// DlgFindNextContinue.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "FoundDoc.h"		// For g_pDoc.
#include "SheetManager.h"	// For FCSheetManager.
#include "UtilDlg.h"		// For SetUnitString.etc.
#include "DlgFindNextContinue.h"	// This header.

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

/////////////////////////////////////////////////////////////////////////////
// CFCDlgFindNextContinue _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindNextContinue::CFCDlgFindNextContinue
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bHideNextSheetBtn	:_xZkqqHx_iBhFiOjPiDfGiBfLiDgHiCnGiBhGiDhLiDfOiDjDiCpAiJeCiClHiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCDlgFindNextContinue::CFCDlgFindNextContinue (BOOL bHideNextSheetBtn, CWnd* pParent /*=NULL*/)
	: BASE_CLASS(CFCDlgFindNextContinue::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFCDlgFindNextContinue)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDhNiDgCiDhDiDjDiDePjHhAiCmMiDhNiDeOiDiNiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_DATA_INIT
	// _xZkqqHx_iDiGiBfLiDfFjFmPjAjEiBeC_xHqqkZx_
	m_bHideNextSheetBtn = bHideNextSheetBtn;	// _xZkqqHx_iBhFiOjPiDfGiBfLiDgHiCnGiBhGiDhLiDfOiDjDiCpAiJeCiClHiBeI_xHqqkZx_
} // CFCDlgFindNextContinue::CFCDlgFindNextContinue.

void CFCDlgFindNextContinue::DoDataExchange(CDataExchange* pDX)
{
	BASE_CLASS::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFCDlgFindNextContinue)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDhNiDgCiDhDiDjDiDePjHhAiCmMiDhNiDeOiDiNiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_DATA_MAP
} // CFCDlgFindNextContinue::DoDataExchange.

BEGIN_MESSAGE_MAP(CFCDlgFindNextContinue, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDlgFindNextContinue)
	ON_BN_CLICKED(IDC_FNC_BTN_FROM_TOP, OnFncBtnFromTop)
	ON_BN_CLICKED(IDC_FNC_BTN_NEXT_SHEET, OnFncBtnNextSheet)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDlgFindNextContinue _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindNextContinue::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMiPiJiKpKiJlLiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDlgFindNextContinue::OnInitDialog ()
{
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnInitDialog();
	// _xZkqqHx_iBhFiOjPiDfGiBfLiDgHiCnGiBhGiDhLiDfOiDjDiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
	BOOL bEnable = (1 < g_pDoc->GetSheetManager()->GetSheetIndexSize());
	if (m_bHideNextSheetBtn) bEnable = FALSE;
	// _xZkqqHx_iBhFiOjPiDfGiBfLiDgHiCnGiBhGiDhLiDfOiDjDiCpAiJeCiClHiBeI_xHqqkZx_
	if (!bEnable)
	{
		GetDlgItem(IDC_FNC_BTN_NEXT_SHEET)->EnableWindow(FALSE);
		GetDlgItem(IDC_FNC_BTN_NEXT_SHEET)->ShowWindow(SW_HIDE);
	}
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMjCfAiImKjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	::SetUnitString(m_hWnd);
	// _xZkqqHx_jHjIiCkLjIhCjBmOiJjOjFlGiOjKjHpBiCmMjAnNjCoIiCpAiNhDiCkEiBeC_xHqqkZx_
	::RightByLeftHand(m_hWnd);
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAiDhNiDeFiDfIiImKjChFiCmJiInKjDkOiBeC_xHqqkZx_
	FFJustifyWindow(m_hWnd);
	return TRUE;  // _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmJiDhEiDeIiBfLiDeKiDfIiCpAjAnNjCoIiClFiCmIiCkCiCmGiCkLiBeBjGnPiCoIjCgMiCmN_xHqqkZx_ TRUE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
	              // _xZkqqHx_jHoBiKeP_xHqqkZx_: OCX _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfHiCmMjGnPiCoIjCgMiCmN_xHqqkZx_ FALSE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
} // CFCDlgFindNextContinue::OnInitDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindNextContinue::OnFncBtnFromTop
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiPoDiCkJiCoHiBhGiDhLiDfOiDjDiCmFiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindNextContinue::OnFncBtnFromTop ()
{
	EndDialog(GetCurrentMessage()->wParam);
} // CFCDlgFindNextContinue::OnFncBtnFromTop.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindNextContinue::OnFncBtnNextSheet
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiOjPiDfGiBfLiDgHiBhGiDhLiDfOiDjDiCmFiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindNextContinue::OnFncBtnNextSheet ()
{
	EndDialog(GetCurrentMessage()->wParam);
} // CFCDlgFindNextContinue::OnFncBtnNextSheet.

