// DlgReplaceContinueA.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 "DlgReplaceContinueA.h"	// This header.

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

/////////////////////////////////////////////////////////////////////////////
// CFCDlgReplaceContinueA _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

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

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

BEGIN_MESSAGE_MAP(CFCDlgReplaceContinueA, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDlgReplaceContinueA)
	ON_BN_CLICKED(IDC_RLC_BTN_FROM_TOP, OnRlcBtnFromTop)
	ON_BN_CLICKED(IDC_RLC_BTN_NEXT_SHEET, OnRlcBtnNextSheet)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDlgReplaceContinueA _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceContinueA::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMiPiJiKpKiJlLiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDlgReplaceContinueA::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_RLC_BTN_NEXT_SHEET)->EnableWindow(FALSE);
		GetDlgItem(IDC_RLC_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_
} // CFCDlgReplaceContinueA::OnInitDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceContinueA::OnRlcBtnFromTop
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiPoDiCkJiCoHiBhGiDhLiDfOiDjDiCmFiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceContinueA::OnRlcBtnFromTop ()
{
	EndDialog(GetCurrentMessage()->wParam);
} // CFCDlgReplaceContinueA::OnRlcBtnFromTop.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgReplaceContinueA::OnRlcBtnNextSheet
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiOjPiDfGiBfLiDgHiBhGiDhLiDfOiDjDiCmFiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgReplaceContinueA::OnRlcBtnNextSheet ()
{
	EndDialog(GetCurrentMessage()->wParam);
} // CFCDlgReplaceContinueA::OnRlcBtnNextSheet.
