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

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

/////////////////////////////////////////////////////////////////////////////
// CFCDlgFindPrevContinue _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindPrevContinue::CFCDlgFindPrevContinue
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bHidePrevSheetBtn	:_xZkqqHx_iBhFjBePiDfGiBfLiDgHiCnGiBhGiDhLiDfOiDjDiCpAiJeCiClHiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCDlgFindPrevContinue::CFCDlgFindPrevContinue (BOOL bHidePrevSheetBtn, CWnd* pParent /*=NULL*/)
	: BASE_CLASS(CFCDlgFindPrevContinue::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFCDlgFindPrevContinue)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDhNiDgCiDhDiDjDiDePjHhAiCmMiDhNiDeOiDiNiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_DATA_INIT
	// _xZkqqHx_iDiGiBfLiDfFjFmPjAjEiBeC_xHqqkZx_
	m_bHidePrevSheetBtn = bHidePrevSheetBtn;	// _xZkqqHx_iBhFjBePiDfGiBfLiDgHiCnGiBhGiDhLiDfOiDjDiCpAiJeCiClHiBeI_xHqqkZx_
} // CFCDlgFindPrevContinue::CFCDlgFindPrevContinue.

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

BEGIN_MESSAGE_MAP(CFCDlgFindPrevContinue, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDlgFindPrevContinue)
	ON_BN_CLICKED(IDC_FPC_BTN_PREV_SHEET, OnFpcBtnPrevSheet)
	ON_BN_CLICKED(IDC_FPC_BTN_FROM_BOTTOM, OnFpcBtnFromBottom)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDlgFindPrevContinue _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindPrevContinue::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMiPiJiKpKiJlLiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDlgFindPrevContinue::OnInitDialog ()
{
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnInitDialog();
	// _xZkqqHx_iBhFjBePiDfGiBfLiDgHiCnGiBhGiDhLiDfOiDjDiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
	BOOL bEnable = (1 < g_pDoc->GetSheetManager()->GetSheetIndexSize());
	if (m_bHidePrevSheetBtn) bEnable = FALSE;
	// _xZkqqHx_iBhFjBePiDfGiBfLiDgHiCnGiBhGiDhLiDfOiDjDiCpAiJeCiClHiBeI_xHqqkZx_
	if (!bEnable)
	{
		GetDlgItem(IDC_FPC_BTN_PREV_SHEET)->EnableWindow(FALSE);
		GetDlgItem(IDC_FPC_BTN_PREV_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_
} // CFCDlgFindPrevContinue::OnInitDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindPrevContinue::OnFpcBtnPrevSheet
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBePiDfGiBfLiDgHiBhGiDhLiDfOiDjDiCmFiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindPrevContinue::OnFpcBtnPrevSheet ()
{
	EndDialog(GetCurrentMessage()->wParam);
} // CFCDlgFindPrevContinue::OnFpcBtnPrevSheet.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgFindPrevContinue::OnFpcBtnFromBottom
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiJlKiCkJiCoHiBhGiDhLiDfOiDjDiCmFiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgFindPrevContinue::OnFpcBtnFromBottom ()
{
	EndDialog(GetCurrentMessage()->wParam);
} // CFCDlgFindPrevContinue::OnFpcBtnFromBottom.
