// PrpPageSize.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
//----- 00.02.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//#include "UtilDlg.h"		// For SetUnitString.etc.
//#include "UtilMath.h"		// For hix2histr.etc.
//#include "Env.h"			// For FDEnv.
//#include "DynamicDrawView.h"	// For g_pView.
//#include "PrpPaperSize.h"	// For CFCPrpPaperSize.
//----- 00.02.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
#include "PrpPageSize.h"	// This header.

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

/////////////////////////////////////////////////////////////////////////////
// CFCPrpPageSize _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfH_xHqqkZx_

IMPLEMENT_DYNCREATE(CFCPrpPageSize, CFCPropertyPageBase)

CFCPrpPageSize::CFCPrpPageSize () : BASE_CLASS(CFCPrpPageSize::IDD)
{
	//{{AFX_DATA_INIT(CFCPrpPageSize)
	//}}AFX_DATA_INIT

	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNjCiGiCmMiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
	m_bProhibitMsg = TRUE;
} // CFCPrpPageSize::CFCPrpPageSize.

CFCPrpPageSize::~CFCPrpPageSize ()
{
} // CFCPrpPageSize::~CFCPrpPageSize.

void CFCPrpPageSize::DoDataExchange(CDataExchange* pDX)
{
	BASE_CLASS::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFCPrpPageSize)
	DDX_Control(pDX, IDC_PGE_SPN_PAGE_LINE, m_spnPageLine);
	DDX_Control(pDX, IDC_PGE_SPN_PAGE_COLUMN, m_spnPageColumn);
	DDX_Control(pDX, IDC_PGE_SPN_PAGE_TOP, m_spnPageTop);
	DDX_Control(pDX, IDC_PGE_SPN_PAGE_LEFT, m_spnPageLeft);
	DDX_Control(pDX, IDC_PGE_STC_BORDER_2, m_stcBorder2);
	DDX_Control(pDX, IDC_PGE_STC_BORDER_1, m_stcBorder1);
	//}}AFX_DATA_MAP
} // CFCPrpPageSize::DoDataExchange.

BEGIN_MESSAGE_MAP(CFCPrpPageSize, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCPrpPageSize)
	ON_CBN_EDITCHANGE(IDC_PGE_CMB_PAGE_TIMES_X, OnEditchangePgeCmbPageTimesX)
	ON_CBN_SELCHANGE(IDC_PGE_CMB_PAGE_TIMES_X, OnSelchangePgeCmbPageTimesX)
	ON_COMMAND(ID_DIALOG_INIT_VALUE, OnDialogInitValue)
	ON_CBN_EDITCHANGE(IDC_PGE_CMB_PAGE_TIMES_Y, OnEditchangePgeCmbPageTimesY)
	ON_CBN_SELCHANGE(IDC_PGE_CMB_PAGE_TIMES_Y, OnSelchangePgeCmbPageTimesY)
	ON_WM_CTLCOLOR()
	ON_CBN_CLOSEUP(IDC_PGE_CMB_PAGE_TIMES_X, OnCloseupPgeCmbPageTimesX)
	ON_CBN_CLOSEUP(IDC_PGE_CMB_PAGE_TIMES_Y, OnCloseupPgeCmbPageTimesY)
	ON_BN_CLICKED(IDC_PGE_CHK_EQ_PAGE_SHEET_LT, OnPgeChkEqPageSheetLt)
	ON_BN_CLICKED(IDC_PGE_CHK_EQ_PAGE_SHEET_RB, OnPgeChkEqPageSheetRb)
	ON_EN_CHANGE(IDC_PGE_EDT_PAGE_LEFT, OnChangePgeEdtPageLeft)
	ON_EN_CHANGE(IDC_PGE_EDT_PAGE_TOP, OnChangePgeEdtPageTop)
	ON_EN_CHANGE(IDC_PGE_EDT_PAGE_COLUMN, OnChangePgeEdtPageColumn)
	ON_EN_CHANGE(IDC_PGE_EDT_PAGE_LINE, OnChangePgeEdtPageLine)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//	ON_BN_CLICKED(IDC_PGE_CHK_DRAW_PAGE_BORDER, OnPgeChkDrawPageBorder)

//----- 00.06.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//#if 0
//
///////////////////////////////////////////////////////////////////////////////
//// CFCPrpPageSize _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::IsConsistent
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jCgMiCkKjAlDiClFiCkNjAnNjCoIiClDiCoKiCmEiCkCiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	:_xZkqqHx_jCgMiCkKjAlDiClFiCkCiPoKiNiHiBeC_xHqqkZx_
// *			FALSE	:_xZkqqHx_jCgMiCkKjAlDiClFiCkNiCmIiCkCiPoKiNiHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCPrpPageSize::IsConsistent () const
//{
//	//----- _xZkqqHx_jCgMiCkKjGlDiCkCiPoKiNiHiCmNiDeHiDiJiBfL_xHqqkZx_ -----
//	if (m_txtmPageTimes == NoValue) return FALSE;
//
//	//----- _xZkqqHx_jCgMiCkKjFiJiCmIiCoHiCmOiDeHiDiJiBfL_xHqqkZx_ -----
//	if (xtm2tms(m_txtmPageTimes) <= 0.0) return FALSE;
//
//	//----- _xZkqqHx_jCgMiCkKiLjGjHgFjEmNiImNiKePiCmIiCoHiCmOiDeHiDiJiBfL_xHqqkZx_ -----
//	if (100.0 < xtm2tms(m_txtmPageTimes)) return FALSE;
//
//	mmetol mmWidth, mmHeight;
//	if (!GetPaperPageSize(mmWidth, mmHeight)) return FALSE;
//	mmWidth *= xtm2tms(m_txtmPageTimes);
//	mmHeight *= xtm2tms(m_txtmPageTimes);
//	if (mmWidth <= 0.0) return FALSE;
//	if (mmHeight <= 0.0) return FALSE;
//	if (FD_PAGE_MAX_W < mmWidth) return FALSE;
//	if (FD_PAGE_MAX_H < mmHeight) return FALSE;
//
//	return TRUE;
//} // CFCPrpPageSize::IsConsistent.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::UpdateModified
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBkOjAkLiCmJjFmPiNfIiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiBeBiIoKiCmCiCmFiCoAjFmPiNfIiCkKiCkAiCoKiCmOiPeDjAlDiDhEiDiJiDeP_xHqqkZx_
// *			_xZkqqHx_iCpAjAnNjCoIiClHiCoJiBeCiIoKiCmCiCoAjFmPiNfIiCkKiCmIiCkPiCoKiCmOiPeDjAlDiDhEiDiJiDePiCpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCPrpPageSize::UpdateModified ()
//{
//	// _xZkqqHx_iJlNiCkJiPiIjHjNjCiGiCmIiCoHiCmOjBkGiOjOjFjMiLeBiBeC_xHqqkZx_
//	if (!m_bIsReady) return;
//	m_bIsReady = FALSE;
//
//	if (!IsConsistent())
//	{
//		SetModified(FALSE);
//		m_bIsReady = TRUE;
//		return;
//	}
//	BOOL bModified = FALSE;
//
//	if (m_txtmPageTimes.IsChanged()) bModified = TRUE;
//
//	SetModified(bModified);
//	m_bIsReady = TRUE;
//} // CFCPrpPageSize::UpdateModified.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::UpdateControls
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFmPjAjEiCmMiPpDjBnEiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjElNiJgGiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwCtrl	:_xZkqqHx_iClBiCmMiKnGjAjEiCmMiMmEiCnBiPgPiClFiMlDiCmMiDfCiDjDiDgHiDiNiBfLiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	dwCtrl_xZkqqHx_iCkKiDeHiDgGiDeCiDgCiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmMiOjOiCmNiBeBiClLiCmMiDfCiDjDiDgHiDiNiBfLiDiLiCmJ_xHqqkZx_
// *			_xZkqqHx_jCgMiCpAjAnNjCoIiClHiCoJiCmGiDfCiDjDiDgHiDiNiBfLiDiLjBfDjBmMiCkKjBeJjBpAiPpDjBnEiCmJiCmIiCmBiCmEiClFiCnMiCkEiClNiCnPiBeB_xHqqkZx_
// *			_xZkqqHx_iClLiCmMiDfCiDjDiDgHiDiNiBfLiDiLiCnGiCmMjCgMiCmMjAnNjCoIiCmNiNhDiCoNiCmIiCkCiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCPrpPageSize::UpdateControls (DWORD dwCtrl)
//{
//	// _xZkqqHx_iJlNiCkJiPiIjHjNjCiGiCmIiCoHiCmOjBkGiOjOjFjMiLeBiBeC_xHqqkZx_
//	if (!m_bIsReady) return;
//	m_bIsReady = FALSE;
//
//	mmetol mmWidth, mmHeight;
//	BOOL bPaperPage = GetPaperPageSize(mmWidth, mmHeight);
//
//	if (bPaperPage)
//	//----- _xZkqqHx_jFlGiPjBiDhJiBfLiDfHiDfEiDeDiDfJiCkKiOoGjDlOiCmFiCkLiClNiPoKiNiH_xHqqkZx_ -----
//	{
//		//----- _xZkqqHx_jFlGiPjBiDhJiBfLiDfHiDfEiDeDiDfJiCpAjAnNjCoI_xHqqkZx_ -----
//		_TCHAR tcsBuf[200];
//		hix2histr(tcsBuf, mm2hix(mmWidth));
//		SetDlgItemText(IDC_PGE_EDT_PAGE_WIDTH, tcsBuf);
//		hix2histr(tcsBuf, mm2hix(mmHeight));
//		SetDlgItemText(IDC_PGE_EDT_PAGE_HEIGHT, tcsBuf);
//	} else
//	//----- _xZkqqHx_jFlGiPjBiDhJiBfLiDfHiDfEiDeDiDfJiCkKiOoGjDlOiCmFiCkLiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		SetDlgItemText(IDC_PGE_EDT_PAGE_WIDTH, _T(""));
//		SetDlgItemText(IDC_PGE_EDT_PAGE_HEIGHT, _T(""));
//	}
//
//	//----- _xZkqqHx_jFlGiPjBiIpDiNpMiDhJiBfLiDfHjEhLjHkGiCpAjAnNjCoI_xHqqkZx_ -----
//	if (dwCtrl != IDC_PGE_CMB_PAGE_TIMES_X)
//	{
//		if (m_txtmPageTimes == NoValue)
//		{
//			SetDlgItemText(IDC_PGE_CMB_PAGE_TIMES_X, _T(""));
//		} else
//		{
//			_TCHAR tcsBuf[200];
//			xtm2tmsstr(tcsBuf, m_txtmPageTimes);
//			SetDlgItemText(IDC_PGE_CMB_PAGE_TIMES_X, tcsBuf);
//		}
//	}
//	//----- _xZkqqHx_jFlGiPjBiIpDiNpMiDhJiBfLiDfHiDfEiDeDiDfJiCpAjAnNjCoI_xHqqkZx_ -----
//	if (bPaperPage && m_txtmPageTimes != NoValue)
//	{
//		mmWidth *= xtm2tms(m_txtmPageTimes);
//		mmHeight *= xtm2tms(m_txtmPageTimes);
//		_TCHAR tcsBuf[200];
//		hix2histr(tcsBuf, mm2hix(mmWidth));
//		SetDlgItemText(IDC_PGE_EDT_PRN_PAGE_WIDTH, tcsBuf);
//		hix2histr(tcsBuf, mm2hix(mmHeight));
//		SetDlgItemText(IDC_PGE_EDT_PRN_PAGE_HEIGHT, tcsBuf);
//	} else
//	{
//		SetDlgItemText(IDC_PGE_EDT_PRN_PAGE_WIDTH, _T(""));
//		SetDlgItemText(IDC_PGE_EDT_PRN_PAGE_HEIGHT, _T(""));
//	}
//
//	m_bIsReady = TRUE;
//} // CFCPrpPageSize::UpdateControls.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::UpdateActivate
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iKgFjBkOjAkLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiBeBjHeMiMpIiPpDjBnEjFmPjAjEiCpAiNfIjAfGiClFiClNiMoD_xHqqkZx_
// *			_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCPrpPageSize::UpdateActivate ()
//{
//} // CFCPrpPageSize::UpdateActivate.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::InitValue
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBkOjAkLjCgMiCmMjFmPjAjEiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCPrpPageSize::InitValue ()
//{
//	// _xZkqqHx_iDhJiBfLiDfHjEhLjHkGiCpAiOoGjDlOiBeFiPiJiKpKiJlLiBeC_xHqqkZx_
//	m_txtmPageTimes.Init(tms2xtm(g_pEnv->GetDocPageTimes()));
//} // CFCPrpPageSize::InitValue.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::GetPaperPageSize
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jHhAiOiGiDfEiDeDiDfJiCmMiDhJiBfLiDfHiCkJiCoHiBeBjFlGiPjBiDhJiBfLiDfHiDfEiDeDiDfJiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmWidth	:_xZkqqHx_iDfEiDeDiDfJjFjNiCpAjFnEiClHiBeC_xHqqkZx_
// *			mmHeight:_xZkqqHx_iDfEiDeDiDfJiNiCiClDiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jCgMiCkKiOoGjDlOiCmFiCkLiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBiCmFiCkLiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCPrpPageSize::GetPaperPageSize (mmetol& mmWidth, mmetol& mmHeight) const
//{
//	// _xZkqqHx_jHhAiOiGiDfEiDeDiDfJiCmMiDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiCpAiMjPiNpFiBeC_xHqqkZx_
//	CFCPrpPaperSize* pPage =
//			(CFCPrpPaperSize*)::FindPropPage((CPropertySheet*)GetParent(),
//												RUNTIME_CLASS(CFCPrpPaperSize));
//	if (pPage == NULL) return FALSE;
//	// _xZkqqHx_jHhAiOiGiCmMjBoFiCkLiClDiCpAiOoGjDlOiBeC_xHqqkZx_
//	short nPaperType;
//	mmetol mmPaperWidth, mmPaperHeight;
//	pPage->GetPaperSize(nPaperType, mmPaperWidth, mmPaperHeight);
//	// _xZkqqHx_jHhAiOiGjHfNjEjCiCpAiOoGjDlOiBeC_xHqqkZx_
//	mmetol mmMarginL, mmMarginT, mmMarginR, mmMarginB;
//	pPage->GetPaperMargin(mmMarginL, mmMarginT, mmMarginR, mmMarginB);
//	mmWidth = mmPaperWidth - mmMarginL - mmMarginR;
//	mmHeight = mmPaperHeight - mmMarginT - mmMarginB;
//	return TRUE;
//} // CFCPrpPageSize::GetPaperPageSize.
//
///////////////////////////////////////////////////////////////////////////////
//// CFCPrpPageSize _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::OnInitDialog
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiPiJiKpKiJlLiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iJlKiLeMiDfCiDiBiDjDiDgHiOfBiPmGiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCPrpPageSize::OnInitDialog ()
//{
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	BASE_CLASS::OnInitDialog();
//
//	// OnInitDialog_xZkqqHx_iImIjBePiCmJ_xHqqkZx_CEdit_xZkqqHx_iCmM_xHqqkZx_OnChange_xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiInHiBeB_xHqqkZx_
//	// _xZkqqHx_iClBiCmMiPiIjHjNiCpAjBhNjDpMiBeC_xHqqkZx_SpinCtrl_xZkqqHx_iCmMiInHiCmFiCmNiCmIiCkCiCkJiBeI_xHqqkZx_
//	m_bIsReady = TRUE;
//
//	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMjCfAiImKjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
//	::SetUnitString(m_hWnd);
//	// _xZkqqHx_jHjIiCkLjIhCjBmOiJjOjFlGiOjKjHpBiCmMjAnNjCoIiCpAiNhDiCkEiBeC_xHqqkZx_
//	::RightByLeftHand(m_hWnd);
//
//	// _xZkqqHx_jBkOjAkLjFmPjAjEiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
//	InitValue();
//	// _xZkqqHx_jFmPjAjEiCmMjCgMiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjElNiJgGiBeC_xHqqkZx_
//	UpdateControls(0);
//	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
//	UpdateActivate();
//	// _xZkqqHx_jBkOjAkLiCmJjFmPiNfIiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	UpdateModified();
//
//	return TRUE;	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmJiDhEiDeIiBfLiDeKiDfIiCpAjAnNjCoIiClFiCmIiCkCiCmGiCkLiBeB_xHqqkZx_
//					// _xZkqqHx_jGnPiCoIjCgMiCmN_xHqqkZx_ TRUE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
//					// _xZkqqHx_jHoBiKeP_xHqqkZx_: OCX _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfHiCmMjGnPiCoIjCgMiCmN_xHqqkZx_ FALSE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
//} // CFCPrpPageSize::OnInitDialog.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::OnOK
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OK_xZkqqHx_iDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCPrpPageSize::OnOK ()
//{
//	//----- _xZkqqHx_jBkOjAkLiCmJjGlFiPiCiCkKiCkAiCoJiPoKiNiHiCmNiBeBjFjEjFgJiCmJjBkOjAkLiCpAjAnNjCoIiClJiClIiCmJjFjMiLeB_xHqqkZx_ -----
//	if (!IsConsistent())
//	{
//		BASE_CLASS::OnOK();
//		return;
//	}
//	//----- _xZkqqHx_iKgFiOoNjBkOjAkLiCmMjAnNjCoI_xHqqkZx_ -----
//	g_pEnv->SetDocPapgeTimes(xtm2tms(m_txtmPageTimes));
//
//	// _xZkqqHx_jBkOjAkLjFmPjAjEiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
//	InitValue();
//	// _xZkqqHx_jFmPjAjEiCmMjCgMiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjElNiJgGiBeC_xHqqkZx_
//	UpdateControls(0);
//	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
//	UpdateActivate();
//
//	// _xZkqqHx_iDhCiDiFiBfLiCmMiNmEjFgAiJoGiBeC_xHqqkZx_
//	g_pView->Invalidate();
//
//	// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//	BASE_CLASS::OnOK();
//} // CFCPrpPageSize::OnOK.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::OnEditchangePgeCmbPageTimes
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiBhFjEhLjHkGiBhGiCmMjCgMiCkKiDeHiDgGiDeCiDgCiDgHiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCPrpPageSize::OnEditchangePgeCmbPageTimes ()
//{
//	CString	str;
//	switch (CheckFloatStr(str, (CComboBox*)GetDlgItem(IDC_PGE_CMB_PAGE_TIMES_X)))
//	{
//	case FDCS_ERROR:	// _xZkqqHx_jFlGiOjKjHpBiCmJiDeHiDiJiBfLiCkKiCkAiCoJiBeC_xHqqkZx_
//	case FDCS_EMPTY:	// _xZkqqHx_jFlGiOjKjHpBiCkKiLpDiBeC_xHqqkZx_
//		m_txtmPageTimes = NoValue;
//		break;
//	default:	// FDCS_NORMAL:	_xZkqqHx_jAlDiPoNiBeC_xHqqkZx_
//		m_txtmPageTimes = tmsstr2xtm(str);
//	}
//	// _xZkqqHx_jFmPjAjEiCmMjCgMiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjElNiJgGiBeC_xHqqkZx_
//	UpdateControls(IDC_PGE_CMB_PAGE_TIMES_X);
//	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
//	UpdateActivate();
//	// _xZkqqHx_jBkOjAkLiCmJjFmPiNfIiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	UpdateModified();
//} // CFCPrpPageSize::OnEditchangePgeCmbPageTimes.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::OnSelchangePgeCmbPageTimes
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiBhFjEhLjHkGiBhGiCmMjBeJjBpAiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCPrpPageSize::OnSelchangePgeCmbPageTimes ()
//{
//	CString	str;
//	CComboBox* pCmb = (CComboBox*)GetDlgItem(IDC_PGE_CMB_PAGE_TIMES_X);
//	// GetWindowText_xZkqqHx_iCmFiCmNiBeBjFmPiNfIjClMjBePiCmMiDgFiDeMiDfIiDgHiCkKiOoGjDlOiClDiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
//	pCmb->GetLBText(pCmb->GetCurSel(), str);
//	m_txtmPageTimes = tmsstr2xtm(str);
//	// _xZkqqHx_jFmPjAjEiCmMjCgMiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjElNiJgGiBeC_xHqqkZx_
//	UpdateControls(IDC_PGE_CMB_PAGE_TIMES_X);
//	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
//	UpdateActivate();
//	// _xZkqqHx_jBkOjAkLiCmJjFmPiNfIiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	UpdateModified();
//} // CFCPrpPageSize::OnSelchangePgeCmbPageTimes.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrpPageSize::OnSetActive
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDhJiBfLiDfHiCkKiDeBiDeOiDgFiDeCiDhFiCmJiCmIiCmBiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFhDjGlOiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCPrpPageSize::OnSetActive ()
//{
//	// _xZkqqHx_jFfMiOkGiPiIjHjNiBeC_xHqqkZx_
//	UpdateControls(0);
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	return BASE_CLASS::OnSetActive();
//} // CFCPrpPageSize::OnSetActive.
//
//void CFCPrpPageSize::OnDialogInitValue() 
//{
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiDfCiDhNiDjDiDgI_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//}
//
//void CFCPrpPageSize::OnEditchangePgeCmbPageTimesY() 
//{
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiDfCiDjDiDgHiDiNiBfLiDiLjCmKjCgNiDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//}
//
//void CFCPrpPageSize::OnSelchangePgeCmbPageTimesY() 
//{
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiDfCiDjDiDgHiDiNiBfLiDiLjCmKjCgNiDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//}
//#endif//0
//----- 00.06.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
