// PropertySheet.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "UtilDlg.h"		// For SetStdBtnString.
#include "UtilStr.h"		// For FFExtractUntil.
#include "PropertySheet.h"	// This header.

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


/////////////////////////////////////////////////////////////////////////////
// CFCPropertySheet

IMPLEMENT_DYNAMIC(CFCPropertySheet, CPropertySheet)

CFCPropertySheet::CFCPropertySheet (UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:BASE_CLASS(nIDCaption, pParentWnd, iSelectPage)
{
	SetTitle(WStrToTStr(FFExtractUntil(FFLoadWString(nIDCaption), '\n')));
} // CFCPropertySheet::CFCPropertySheet.

CFCPropertySheet::CFCPropertySheet (LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:BASE_CLASS(pszCaption, pParentWnd, iSelectPage)
{
} // CFCPropertySheet::CFCPropertySheet.

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


BEGIN_MESSAGE_MAP(CFCPropertySheet, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCPropertySheet)
	ON_WM_CLOSE()
	ON_WM_CREATE()
	//}}AFX_MSG_MAP
//	ON_MESSAGE(WM_USER_TURN_PROPERTY_PAGE, OnUserTurnPropertyPage)
	ON_BN_CLICKED(IDC_PRS_BTN_PREV_PAGE, OnPrsBtnPrevPage)
	ON_BN_CLICKED(IDC_PRS_BTN_NEXT_PAGE, OnPrsBtnNextPage)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCPropertySheet _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPropertySheet::OnCreate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiNoMjAkMiOjOiCmJiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
int CFCPropertySheet::OnCreate (LPCREATESTRUCT lpCreateStruct)
{
	// _xZkqqHx_iDfOiDhFiCmMiDfIiDfOiDgCiDeOiCpAiCfAiNhDiJkBiDfIiDeOiDiNiBfLiDiLiCmJiBeC_xHqqkZx_
	// _xZkqqHx_iDfOiDhFjFlGiOjKiCmJ_xHqqkZx_(2),(3)_xZkqqHx_iCpAjBhNjDpMiClHiCoJiNnLiBeBiDfOiDhFjFjNiCkKjFmPiJlLiClFiBeBiDfOiDhFiCkKiCfAjCgJiBgAiCfBjCgJiCmG_xHqqkZx_
	// _xZkqqHx_jFmPiJlLiClHiCoJiPoKiNiHiCkKiCkAiCoJiCkKiBeBiClBiCmMiCmGiCkLiDiMiDeDiDeBiDeFiDgHiCkKiCkEiCnMiCkNiNhDiCkJiClIiDfOiDhFiCkKiPmBiCkGiCmE_xHqqkZx_
	// _xZkqqHx_iClFiCnMiCkEiBeCiClBiCoKiCpAjGgIiCkOiClNiCnPiDfIiDeOiDiNiBfLiDiLiDfOiDeDiDhGiCmMiDfOiDhFiCmJiClHiCoJiBeC_xHqqkZx_
	EnableStackedTabs(FALSE);
	// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	if (BASE_CLASS::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiMmFjHeMiCmMiNoMjAkMjHhAiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
	
	return 0;
} // CFCPropertySheet::OnCreate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPropertySheet::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiPiJiKpKiJlLiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFhDjGlOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCPropertySheet::OnInitDialog ()
{
	// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeCiClBiClBiCmFiBeBiKgFiDhJiBfLiDfHiCmM_xHqqkZx_OnInitDialog_xZkqqHx_iCpAiOmAiNhDiBeC_xHqqkZx_
	BOOL bResult = BASE_CLASS::OnInitDialog();

#ifdef FD_TOP_ACCESSKEY		// _xZkqqHx_jFlGjDkKiCmJiDeBiDeOiDfKiDfIiDeMiBfLiCkKjHeMiCoJiPoKiNiHiBeC_xHqqkZx_
	// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiInKjDkOiDhLiDfOiDjDiCpAjEpBjFfMiOkGiCmFiNoMjAkMiBeC_xHqqkZx_
	m_btnPrevPage.Create(_T("&2     "),
						BS_PUSHBUTTON |
						WS_CHILD,
					 	CRect(0,0,1,1),
						this,
						IDC_PRS_BTN_PREV_PAGE);
	m_btnNextPage.Create(_T("&3     "),
						BS_PUSHBUTTON |
						WS_CHILD,
					 	CRect(0,0,1,1),
						this,
						IDC_PRS_BTN_NEXT_PAGE);
#else //FD_TOP_ACCESSKEY	// _xZkqqHx_jFlGjCiGiCmJiDeBiDeOiDfKiDfIiDeMiBfLiCkKjHeMiCoJiPoKiNiHiBeC_xHqqkZx_
	// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiInKjDkOiDhLiDfOiDjDiCpAjEpBjFfMiOkGiCmFiNoMjAkMiBeC_xHqqkZx_
	m_btnPrevPage.Create(_T("(&2)"),
						BS_PUSHBUTTON |
						WS_CHILD,
					 	CRect(0,0,1,1),
						this,
						IDC_PRS_BTN_PREV_PAGE);
	m_btnNextPage.Create(_T("(&3)"),
						BS_PUSHBUTTON |
						WS_CHILD,
					 	CRect(0,0,1,1),
						this,
						IDC_PRS_BTN_NEXT_PAGE);
#endif //FD_TOP_ACCESSKEY	// _xZkqqHx_jFlGjDkKiCmJiDeBiDeOiDfKiDfIiDeMiBfLiCkKjHeMiCoJiPoKiNiHiBeC_xHqqkZx_

	// _xZkqqHx_jFfHiPiAiDhLiDfOiDjDiCmMjFfMiOkGjFlGiOjKjHpBiCpAjChFiCkLiKlHiCkGiCoJiBeC_xHqqkZx_
	::SetStdBtnString(m_hWnd);
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMjCfAiImKjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	::SetUnitString(m_hWnd);
	// _xZkqqHx_jHjIiCkLjIhCjBmOiJjOjFlGiOjKjHpBiCmMjAnNjCoIiCpAiNhDiCkEiBeC_xHqqkZx_
	::RightByLeftHand(m_hWnd);
	CRect rtClient;
	GetClientRect(rtClient);
	CPoint ptOffset = rtClient.CenterPoint();
	ptOffset.y = 15;
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAiDhNiDeFiDfIiImKjChFiCmJiInKjDkOiBeC_xHqqkZx_
	FFJustifyWindow(m_hWnd, &ptOffset);
	return bResult;
} // CFCPropertySheet::OnInitDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPropertySheet::OnClose
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDfGiBfLiDgHiCpAjFmCiClGiCoJiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	Create_xZkqqHx_iKnGjAjEiCmFiDeFiDeCiDjDiDgIiDeFiCpAiNoMjAkMiClFiClNiPoKiNiHiCmMiCnNiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_DoModal_xZkqqHx_iKnGjAjE_xHqqkZx_
 *			_xZkqqHx_iCmFiNoMjAkMiClFiClNiPoKiNiHiCmNiBeBiOmAiNhDiClDiCoKiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.12.15 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCPropertySheet::OnClose ()
{
	// _xZkqqHx_iDiCiBfLiDgIiDiMiDfIiDeFiDeCiDjDiDgIiDeFiCmIiCmMiCmFiBeBiOkJjBePiCmFjFmCiClGiCmE_xHqqkZx_
	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAiPeJjHlJiClHiCoJiCmGiNkCiCoJiClBiCmGiCkKjBlNiCkCiBeC_xHqqkZx_
	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpA_xHqqkZx_HIDE_xZkqqHx_iClHiCoJiBeC_xHqqkZx_
	//	CPropertySheet::OnClose();
	ShowWindow(SW_HIDE);
} // CFCPropertySheet::OnClose.

//----- 05.05.01 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPropertySheet::PreTranslateMessage
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCPropertySheet::PreTranslateMessage (MSG* pMsg)
//{
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiMmFjHeMiCmMiPiIjHjNiCpAjCmHiJmBiClHiCoJiCkJiBeBiCnMiClNiCmNiKoOjGhLiDeOiDiJiDfIiCpAiMmEiCnBiPgPiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
////	TRACE(_T("PreTranslateMessage %x %x %x\r\n"), pMsg->message, pMsg->wParam, pMsg->lParam);
//	if (pMsg->message == WM_CHAR ||
//		pMsg->message == WM_SYSCHAR)
//	//----- _xZkqqHx_jCmKiPoNiCmMjFlGiOjKiBeB_xHqqkZx_Alt_xZkqqHx_iBhLjFlGiOjKiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		const _TCHAR tcPrevPage = RightByLeftHand(_T('2'));
//		const _TCHAR tcNextPage = RightByLeftHand(_T('3'));
//		if (pMsg->wParam == tcPrevPage)
//		{
//			PostMessage(WM_USER_TURN_PROPERTY_PAGE, 0, 0);
//			CWnd* pWnd = GetFocus();
//			BOOL bb = CPropertySheet::PreTranslateMessage(pMsg);
//			TRACE(_T("PreTranslateMessage %d\r\n"), pWnd->IsWindowEnabled());
//			return bb;
//		}
//		if (pMsg->wParam == tcNextPage)
//		{
//			PostMessage(WM_USER_TURN_PROPERTY_PAGE, 0, 1);
//			return TRUE;
//		}
//	}
//	return CPropertySheet::PreTranslateMessage(pMsg);
//} // CFCPropertySheet::PreTranslateMessage.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPropertySheet::OnUserTurnPropertyPage
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhJiBfLiDfHiCpAiCnPiCkNiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
// *			lParam	:_xZkqqHx_iDhJiBfLiDfHiInKjDkOiCpAiOhHjCoIiBeC_xHqqkZx_1_xZkqqHx_iBeGiOjPiCmMiDhJiBfLiDfHiBeB_xHqqkZx_0_xZkqqHx_iBeGjBePiCmMiDhJiBfLiDfHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJiCfAiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//LRESULT CFCPropertySheet::OnUserTurnPropertyPage (WPARAM wParam, LPARAM lParam)
//{
//	if (lParam == 0)
//	//----- _xZkqqHx_jBePiCmMiDhJiBfLiDfHiCnGiInKjDkO_xHqqkZx_ -----
//	{
//		if (GetActiveIndex() == 0) return 1;
//		SetActivePage(GetActiveIndex() - 1);
//	} else
//	//----- _xZkqqHx_iMoDiCmMiDhJiBfLiDfHiCnGiInKjDkO_xHqqkZx_ -----
//	{
//		if (GetActiveIndex() == GetPageCount() - 1) return 1;
//		SetActivePage(GetActiveIndex() + 1);
//	}
//	return 1;
//} // CFCPropertySheet::OnUserTurnPropertyPage.
//----- 05.05.01 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	myGetTabText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfOiDhFiDfCiDjDiDgHiDiNiBfLiDiLiCmMiOhHjCoIiClDiCoKiClNiDfOiDhFiCmMiDgFiDeMiDfIiDgHiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
 *			(&X)_xZkqqHx_iCmGiCkCiCmBiClNiDeMiBfLiCmMjFlGiOjKjHpBiCmNiNoNiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pTab	:_xZkqqHx_iDfOiDhFiDfCiDjDiDgHiDiNiBfLiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lIndex	:_xZkqqHx_iDfOiDhFiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
static WString myGetTabText (CTabCtrl* pTab, long lIndex)
{
	_TCHAR szTextBuff[200];
	TCITEM item;
	item.mask = TCIF_TEXT;
	item.pszText = szTextBuff;
	item.cchTextMax = sizeof(szTextBuff) / sizeof(szTextBuff[0]);
	pTab->GetItem(lIndex, &item);
	WString wstrBuff = TStrToWStr(szTextBuff);
#ifdef FD_TOP_ACCESSKEY		// _xZkqqHx_jFlGjDkKiCmJiDeBiDeOiDfKiDfIiDeMiBfLiCkKjHeMiCoJiPoKiNiHiBeC_xHqqkZx_
	if (wstrBuff.at(0) == L'&')
		wstrBuff = wstrBuff.Mid(FD_TOP_ACCESSKEY_LEN);
#else //FD_TOP_ACCESSKEY	// _xZkqqHx_jFlGjCiGiCmJiDeBiDeOiDfKiDfIiDeMiBfLiCkKjHeMiCoJiPoKiNiHiBeC_xHqqkZx_
	int iFindIndex = wstrBuff.Find(L"(&");
	if (iFindIndex != -1)
		wstrBuff = wstrBuff.Left(iFindIndex);
#endif //FD_TOP_ACCESSKEY	// _xZkqqHx_jFlGjDkKiCmJiDeBiDeOiDfKiDfIiDeMiBfLiCkKjHeMiCoJiPoKiNiHiBeC_xHqqkZx_
	wstrBuff.TrimRight();
	return wstrBuff;
} // myGetTabText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	mySetTabText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfOiDhFiDfCiDjDiDgHiDiNiBfLiDiLiCmMiOhHjCoIiClDiCoKiClNiDfOiDhFiCmJiDgFiDeMiDfIiDgHiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pTab	:_xZkqqHx_iDfOiDhFiDfCiDjDiDgHiDiNiBfLiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lIndex	:_xZkqqHx_iDfOiDhFiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wcpText	:_xZkqqHx_iDfOiDhFiDgFiDeMiDfIiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
static void mySetTabText (CTabCtrl* pTab, long lIndex, const wchar_t* wcpText)
{
	CString strText = WStrToTStr(wcpText);
	TCITEM item;
	item.mask = TCIF_TEXT;
	item.pszText = (TCHAR*)(const _TCHAR*)strText;
	pTab->SetItem(lIndex, &item);
} // mySetTabText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPropertySheet::OnChildNotify
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDeFiDeCiDjDiDgIiDeFiCmFiPiIjHjNiClHiCoJjFeLjHhGiCmMiCkAiCoJjCmKjCgNiDiBiDgCiDfKiBfLiDfHiCpA_xHqqkZx_
 *			_xZkqqHx_jAgFiDeFiDeCiDjDiDgIiDeFiCkKiOpDiCkPiOoGiCmBiClNiCmGiCkLiBeBjAgFiDeFiDeCiDjDiDgIiDeFiCkJiCoHiMmEiCnBiPgPiClDiCoKiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCPropertySheet::OnChildNotify (UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult)
{
	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiMmFjHeMiCmMiPiIjHjNiCpAjCmHiJmBiClHiCoJiCkJiBeBiCnMiClNiCmNiKoOjGhLiDeOiDiJiDfIiCpAiMmEiCnBiPgPiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
	if (message == WM_NOTIFY)
	{
		const NMHDR* pHdr = (const NMHDR*)lParam;
		if (pHdr->code == PSN_SETACTIVE)
		//----- _xZkqqHx_iOhBiDeFiDeCiDjDiDgIiDeFiBgJiDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiBgKiCmMiCkCiClIiCoKiCkJiCkKiDeBiDeOiDgFiDeCiDhFiCmJiCmIiCmBiClNiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfOiDhFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjBfDiCmEiCmMiDfOiDhFiDgFiDeMiDfIiDgHiCpAiPjBiCkLiKlHiCkGiCoJiBeC_xHqqkZx_
			CTabCtrl* pTab = GetTabControl();
			long lIndex;
			for (lIndex = 0; lIndex != GetPageCount(); lIndex++)
			{
				WString wstrText = myGetTabText(pTab, lIndex);

#ifdef FD_TOP_ACCESSKEY		// _xZkqqHx_jFlGjDkKiCmJiDeBiDeOiDfKiDfIiDeMiBfLiCkKjHeMiCoJiPoKiNiHiBeC_xHqqkZx_
				if (lIndex == GetActiveIndex() - 1)
				{
					wstrText.Insert(0, L'&');
					wstrText.Insert(1, RightByLeftHand(L'2'));
					wstrText.Insert(2, L". ");
				} else
				if (lIndex == GetActiveIndex() + 1)
				{
					wstrText.Insert(0, L'&');
					wstrText.Insert(1, RightByLeftHand(L'3'));
					wstrText.Insert(2, L". ");
				}

#else //FD_TOP_ACCESSKEY	// _xZkqqHx_jFlGjCiGiCmJiDeBiDeOiDfKiDfIiDeMiBfLiCkKjHeMiCoJiPoKiNiHiBeC_xHqqkZx_
				if (lIndex == GetActiveIndex() - 1)
				{
					wstrText += L"(&";
					wstrText += (wchar_t)RightByLeftHand(_T('2'));
					wstrText += L')';
				} else
				if (lIndex == GetActiveIndex() + 1)
				{
					wstrText += L"(&";
					wstrText += (wchar_t)RightByLeftHand(_T('3'));
					wstrText += L')';
				}
#endif //FD_TOP_ACCESSKEY	// _xZkqqHx_jFlGjDkKiCmJiDeBiDeOiDfKiDfIiDeMiBfLiCkKjHeMiCoJiPoKiNiHiBeC_xHqqkZx_

				mySetTabText(pTab, lIndex, wstrText);
			}
		}
	}
	return BASE_CLASS::OnChildNotify(message, wParam, lParam, pLResult);
} // CFCPropertySheet::OnChildNotify.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPropertySheet::OnPrsBtnPrevPage
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiInKjDkOiDhLiDfOiDjDiCkKiJjPiClDiCoKiClNiCmGiCkLiCmMiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCPropertySheet::OnPrsBtnPrevPage ()
{
	if (GetActiveIndex() != 0)
		SetActivePage(GetActiveIndex() - 1);
} // CFCPropertySheet::OnPrsBtnPrevPage.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPropertySheet::OnPrsBtnNextPage
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiInKjDkOiDhLiDfOiDjDiCkKiJjPiClDiCoKiClNiCmGiCkLiCmMiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCPropertySheet::OnPrsBtnNextPage ()
{
	if (GetActiveIndex() != GetPageCount() - 1)
		SetActivePage(GetActiveIndex() + 1);
} // CFCPropertySheet::OnPrsBtnNextPage.

