// PrePopHint.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "UtilDlg.h"		// For SetUnitString.etc.
#include "UtilWin.h"		// For FFInsertColumn.
#include "UtilErr.h"		// For FFThrowMiscUnknown.
#include "UtilFile.h"		// For SplitFileName.
#include "RegData.h"		// For FCRegData.
#include "PrePopHint.h"	// This header.

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

//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//static const DWORD s_CHKBTN_ID[] =
//{
//	IDC_PPH_CHK_POPUP_MENU_HINT,		// _xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//	IDC_PPH_CHK_POPUP_TOOLBAR_HINT,		// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//	IDC_PPH_CHK_POPUP_OBJECT_HINT,		// _xZkqqHx_jFjEjFgJiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//	IDC_PPH_CHK_POPUP_COLOR_HINT,		// _xZkqqHx_iDhGiDiLiDfPiDeFiDjDjAeGiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//	IDC_PPH_CHK_POPUP_OBJ_LABEL_LIST,	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjHiDfPiDeDiDeBiDiNiDePiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//	IDC_PPH_CHK_POPUP_CHIP_STORE_HINT,	// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//	IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT,	// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//	IDC_PPH_CHK_POPUP_HIST_FIND_RESULTS,// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//	IDC_PPH_CHK_POPUP_DSM_BOOKMARK		// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//};
//
//static const int s_CHKBTN_COUNT = sizeof(s_CHKBTN_ID) / sizeof(s_CHKBTN_ID[0]);
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

static const long s_POP_HINT_ID[] =
{
	IDS_POP_HINT_MENU,				// _xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_OBJECT,			// _xZkqqHx_jFjEjFgJiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_TOOLBAR,			// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_COLOR,				// _xZkqqHx_iDhGiDiLiDfPiDeFiDjDjAeGiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_RULER,				// _xZkqqHx_iDiLiBfLiDiJiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_STATUS_BAR,		// _xZkqqHx_iDfIiDgFiBfLiDfOiDfIiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_FUNCTION_BAR,		// _xZkqqHx_iDhEiDeAiDjDiDeOiDfGiDiHiDjDiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_OBJ_LABEL_LIST,	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjHiDfPiDeDiDeBiDiNiDePiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_CHIP_STORE,		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_HTREE_VIEW,		// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_HIST_FIND_RESULTS,	// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_DSM_BOOKMARK,		// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_RESIZE_OBJECT,		// _xZkqqHx_jFjEjFgJiCpAiDiKiDfEiDeDiDfJiClHiCoJiCmGiCkLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
	IDS_POP_HINT_ROTATE_OBJECT,		// _xZkqqHx_jFjEjFgJiCpAiJpBjDfNiClHiCoJiCmGiCkLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
}; // s_POP_HINT_ID.

static const int s_POP_HINT_COUNT = sizeof(s_POP_HINT_ID) / sizeof(s_POP_HINT_ID[0]);

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	myGetRegPopHint
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDhBiDjDiDgH_xHqqkZx_ID_xZkqqHx_iCmMiDiMiDfHiDfIiDgHiDiKjAnNjCoIjCgMiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lHintId	:_xZkqqHx_iDhBiDjDiDgH_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDiMiDfHiDfIiDgHiDiKjAnNjCoIjCgMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.04.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
static BOOL myGetRegPopHint (long lHintId)
{
	switch (lHintId)
	{
	case IDS_POP_HINT_MENU:				// _xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupMenuHint();
	case IDS_POP_HINT_OBJECT:			// _xZkqqHx_jFjEjFgJiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupObjectHint();
	case IDS_POP_HINT_TOOLBAR:			// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupToolbarHint();
	case IDS_POP_HINT_COLOR:			// _xZkqqHx_iDhGiDiLiDfPiDeFiDjDjAeGiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupColorHint();
	case IDS_POP_HINT_RULER:			// _xZkqqHx_iDiLiBfLiDiJiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupRulerHint();
	case IDS_POP_HINT_STATUS_BAR:		// _xZkqqHx_iDfIiDgFiBfLiDfOiDfIiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupStatusBarHint();
	case IDS_POP_HINT_FUNCTION_BAR:		// _xZkqqHx_iDhEiDeAiDjDiDeOiDfGiDiHiDjDiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupFunctionBarHint();
	case IDS_POP_HINT_OBJ_LABEL_LIST:	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjHiDfPiDeDiDeBiDiNiDePiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupObjLabelListHint();
	case IDS_POP_HINT_CHIP_STORE:		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupChipStoreHint();
	case IDS_POP_HINT_HTREE_VIEW:		// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupHtreeViewHint();
	case IDS_POP_HINT_HIST_FIND_RESULTS:	// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupHistFindResultsHint();
	case IDS_POP_HINT_DSM_BOOKMARK:		// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupDsmBookmarkHint();
	case IDS_POP_HINT_RESIZE_OBJECT:		// _xZkqqHx_jFjEjFgJiCpAiDiKiDfEiDeDiDfJiClHiCoJiCmGiCkLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupResizeObjectHint();
	case IDS_POP_HINT_ROTATE_OBJECT:		// _xZkqqHx_jFjEjFgJiCpAiJpBjDfNiClHiCoJiCmGiCkLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		return g_pReg->GetIsPopupRotateObjectHint();
	default:
		FFThrowMiscUnknown();
	}
	return FALSE;
} // static BOOL myGetRegPopHint.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	mySetRegPopHint
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDhBiDjDiDgH_xHqqkZx_ID_xZkqqHx_iCmMiDiMiDfHiDfIiDgHiDiKiCmJjCgMiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lHintId	:_xZkqqHx_iDhBiDjDiDgH_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			bIsPopup:_xZkqqHx_jCgMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.04.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
static void mySetRegPopHint (long lHintId, BOOL bIsPopup)
{
	switch (lHintId)
	{
	case IDS_POP_HINT_MENU:			// _xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupMenuHint(bIsPopup);
		break;
	case IDS_POP_HINT_OBJECT:			// _xZkqqHx_jFjEjFgJiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupObjectHint(bIsPopup);
		break;
	case IDS_POP_HINT_TOOLBAR:			// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupToolbarHint(bIsPopup);
		break;
	case IDS_POP_HINT_COLOR:			// _xZkqqHx_iDhGiDiLiDfPiDeFiDjDjAeGiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupColorHint(bIsPopup);
		break;
	case IDS_POP_HINT_RULER:			// _xZkqqHx_iDiLiBfLiDiJiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupRulerHint(bIsPopup);
		break;
	case IDS_POP_HINT_STATUS_BAR:		// _xZkqqHx_iDfIiDgFiBfLiDfOiDfIiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupStatusBarHint(bIsPopup);
		break;
	case IDS_POP_HINT_FUNCTION_BAR:		// _xZkqqHx_iDhEiDeAiDjDiDeOiDfGiDiHiDjDiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupFunctionBarHint(bIsPopup);
		break;
	case IDS_POP_HINT_OBJ_LABEL_LIST:		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjHiDfPiDeDiDeBiDiNiDePiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupObjLabelListHint(bIsPopup);
		break;
	case IDS_POP_HINT_CHIP_STORE:		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupChipStoreHint(bIsPopup);
		break;
	case IDS_POP_HINT_HTREE_VIEW:		// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupHtreeViewHint(bIsPopup);
		break;
	case IDS_POP_HINT_HIST_FIND_RESULTS:	// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupHistFindResultsHint(bIsPopup);
		break;
	case IDS_POP_HINT_DSM_BOOKMARK:			// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupDsmBookmarkHint(bIsPopup);
		break;
	case IDS_POP_HINT_RESIZE_OBJECT:		// _xZkqqHx_jFjEjFgJiCpAiDiKiDfEiDeDiDfJiClHiCoJiCmGiCkLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupResizeObjectHint(bIsPopup);
		break;
	case IDS_POP_HINT_ROTATE_OBJECT:		// _xZkqqHx_jFjEjFgJiCpAiJpBjDfNiClHiCoJiCmGiCkLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		g_pReg->SetIsPopupRotateObjectHint(bIsPopup);
		break;
	default:
		FFThrowMiscUnknown();
	}
} // static void mySetRegPopHint.

/////////////////////////////////////////////////////////////////////////////
// CFCPrePopHint _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfH_xHqqkZx_

IMPLEMENT_DYNCREATE(CFCPrePopHint, CFCPropertyPageBase)

CFCPrePopHint::CFCPrePopHint () : BASE_CLASS(CFCPrePopHint::IDD)
{
	//{{AFX_DATA_INIT(CFCPrePopHint)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDiBiDjDiDgPiCmMiPiJiKpKiJlLiPiIjHjNiCpAjCmHiJmBiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_DATA_INIT

	m_bIsReady = FALSE;	// OnInitDialog_xZkqqHx_iOmAiNhDiMoDiCmJ_xHqqkZx_TRUE.
} // CFCPrePopHint::CFCPrePopHint.

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

/////////////////////////////////////////////////////////////////////////////
// CFCPrePopHint _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrePopHint::IsConsistent
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jCgMiCkKjAlDiClFiCkNjAnNjCoIiClDiCoKiCmEiCkCiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	:_xZkqqHx_jCgMiCkKjAlDiClFiCkCiPoKiNiHiBeC_xHqqkZx_
 *			FALSE	:_xZkqqHx_jCgMiCkKjAlDiClFiCkNiCmIiCkCiPoKiNiHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCPrePopHint::IsConsistent () const
{
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	if (m_tbPopupMenuHint == NoValue) return FALSE;
//	if (m_tbPopupToolbarHint == NoValue) return FALSE;
//	if (m_tbPopupObjectHint == NoValue) return FALSE;
//	if (m_tbPopupColorHint == NoValue) return FALSE;
//	if (m_tbPopupObjLabelList == NoValue) return FALSE;
//	if (m_tbPopupChipStoreHint == NoValue) return FALSE;
//	if (m_tbPopupHtreeViewHint == NoValue) return FALSE;
//	if (m_tbPopupHistFindResults == NoValue) return FALSE;
//	if (m_tbPopupDsmBookmark == NoValue) return FALSE;
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	return TRUE;
} // CFCPrePopHint::IsConsistent.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrePopHint::UpdateModified
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBkOjAkLiCmJjFmPiNfIiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiBeBiIoKiCmCiCmFiCoAjFmPiNfIiCkKiCkAiCoKiCmOiPeDjAlDiDhEiDiJiDeP_xHqqkZx_
 *			_xZkqqHx_iCpAjAnNjCoIiClHiCoJiBeCiIoKiCmCiCoAjFmPiNfIiCkKiCmIiCkPiCoKiCmOiPeDjAlDiDhEiDiJiDePiCpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCPrePopHint::UpdateModified ()
{
	// _xZkqqHx_iJlNiCkJiPiIjHjNjCiGiCmIiCoHiCmOjBkGiOjOjFjMiLeBiBeC_xHqqkZx_
	if (!m_bIsReady) return;
	if (!IsConsistent())
	{
		SetModified(FALSE);
		return;
	}
	BOOL bModified = FALSE;

	//----- _xZkqqHx_iKgFjBkOjAkLiCmJjFmPiNfIiCkKiCkAiCoJiCkJjClCiCnHiCoJ_xHqqkZx_ -----
	map<long, BOOL>::const_iterator iIe;
	for (iIe = m_mpIdToEnable.begin(); iIe != m_mpIdToEnable.end(); iIe++)
		if (iIe->second != myGetRegPopHint(iIe->first)) bModified = TRUE;

//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	if (m_tbPopupMenuHint.IsChanged()) bModified = TRUE;
//	if (m_tbPopupToolbarHint.IsChanged()) bModified = TRUE;
//	if (m_tbPopupObjectHint.IsChanged()) bModified = TRUE;
//	if (m_tbPopupColorHint.IsChanged()) bModified = TRUE;
//	if (m_tbPopupObjLabelList.IsChanged()) bModified = TRUE;
//	if (m_tbPopupChipStoreHint.IsChanged()) bModified = TRUE;
//	if (m_tbPopupHtreeViewHint.IsChanged()) bModified = TRUE;
//	if (m_tbPopupHistFindResults.IsChanged()) bModified = TRUE;
//	if (m_tbPopupDsmBookmark.IsChanged()) bModified = TRUE;
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----


	SetModified(bModified);
} // CFCPrePopHint::UpdateModified.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrePopHint::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_>	05.07.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCPrePopHint::UpdateControls (DWORD dwCtrl)
{
	// _xZkqqHx_iJlNiCkJiPiIjHjNjCiGiCmIiCoHiCmOjBkGiOjOjFjMiLeBiBeC_xHqqkZx_
	if (!m_bIsReady) return;
	m_bIsReady = FALSE;

	//----- _xZkqqHx_iDiKiDfIiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmMiDgAiDeGiDgCiDeOiDeBiDeDiDfCiDjDiCpAiDgGiBfLiDfOiCmJiNiHiCoNiClJiCoJ_xHqqkZx_ -----
	CListCtrl* pList = (CListCtrl*)GetDlgItem(IDC_PPH_LSV_POP_HINT_LIST);
	for (int iC = 0; iC != pList->GetItemCount(); iC++)
	{
		//----- _xZkqqHx_iDiKiDfIiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmMiCfCjEnEjGnKiDeKiDiJiDiAiCmM_xHqqkZx_lParam_xZkqqHx_iCpAiOoGjDlO_xHqqkZx_ -----
		LV_ITEM lvitem;
		lvitem.mask = LVIF_PARAM;
		lvitem.iItem = iC;
		lvitem.iSubItem = 2;
		pList->GetItem(&lvitem);

		//----- 1_xZkqqHx_jEnEjGnKiDeKiDiJiDiAiCmM_xHqqkZx_lParam_xZkqqHx_iCkJiCoHiBeBiClBiCmMiDeBiDeDiDgFiDiAiCmMiDgAiDeGiDgCiDeOiPpDjBnEiCpAjAnNjCoI_xHqqkZx_ -----
		BOOL bOn = m_mpIdToEnable[lvitem.lParam];
		lvitem.mask = LVIF_IMAGE;
		lvitem.iItem = iC;
		lvitem.iSubItem = 0;
		lvitem.iImage = bOn ? 1 : 0;
		pList->SetItem(&lvitem);
	}

//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	for (iC = 0; iC != s_CHKBTN_COUNT; iC++)
//	//----- _xZkqqHx_iDgAiDeGiDgCiDeOiDhLiDfOiDjDiClHiCnHiCmEiCmJiKnGiClFiCmEiDiLiBfLiDhG_xHqqkZx_ -----
//	{
//		if (dwCtrl != s_CHKBTN_ID[iC])
//		//----- _xZkqqHx_jBmOiPnLiCmMiDgAiDeGiDgCiDeOiDhLiDfOiDjDiImIiKePiCkJiCoHiMmEiCmOiCoKiClNiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDgAiDeGiDgCiDeOiDhLiDfOiDjDiCmMjFmPjAjEiCkK_xHqqkZx_ NoValue _xZkqqHx_iIlNiCkCiCmN_xHqqkZx_ FALSE _xZkqqHx_iCmIiCoHiCmOiDgAiDeGiDgCiDeOiCpAiDeOiDiKiDeBiBeB_xHqqkZx_TRUE_xZkqqHx_iCmIiCoHiCmOiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
//			if (IdToAttrVer(s_CHKBTN_ID[iC]) == NoValue)
//				((CButton*)GetDlgItem(s_CHKBTN_ID[iC]))->SetCheck(0);
//			else
//				((CButton*)GetDlgItem(s_CHKBTN_ID[iC]))->SetCheck(IdToAttrVer(s_CHKBTN_ID[iC]) ? 1 : 0);
//		}
//	}
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 06.02.23 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	if (dwCtrl != IDC_PPH_CHK_POPUP_MENU_HINT)
//	{
//		if (m_tbPopupMenuHint == NoValue)
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_MENU_HINT))->SetCheck(0);
//		else
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_MENU_HINT))->SetCheck(m_tbPopupMenuHint ? 1 : 0);
//	}
//	if (dwCtrl != IDC_PPH_CHK_POPUP_OBJECT_HINT)
//	{
//		if (m_tbPopupObjectHint == NoValue)
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_OBJECT_HINT))->SetCheck(0);
//		else
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_OBJECT_HINT))->SetCheck(m_tbPopupObjectHint ? 1 : 0);
//	}
//	if (dwCtrl != IDC_PPH_CHK_POPUP_TOOLBAR_HINT)
//	{
//		if (m_tbPopupToolbarHint == NoValue)
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_TOOLBAR_HINT))->SetCheck(0);
//		else
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_TOOLBAR_HINT))->SetCheck(m_tbPopupToolbarHint ? 1 : 0);
//	}
//	if (dwCtrl != IDC_PPH_CHK_POPUP_COLOR_HINT)
//	{
//		if (m_tbPopupColorHint == NoValue)
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_COLOR_HINT))->SetCheck(0);
//		else
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_COLOR_HINT))->SetCheck(m_tbPopupColorHint ? 1 : 0);
//	}
//	if (dwCtrl != IDC_PPH_CHK_POPUP_OBJ_LABEL_LIST)
//	{
//		if (m_tbPopupObjLabelList == NoValue)
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_OBJ_LABEL_LIST))->SetCheck(0);
//		else
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_OBJ_LABEL_LIST))->SetCheck(m_tbPopupObjLabelList ? 1 : 0);
//	}
//	if (dwCtrl != IDC_PPH_CHK_POPUP_CHIP_STORE_HINT)
//	{
//		if (m_tbPopupChipStoreHint == NoValue)
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_CHIP_STORE_HINT))->SetCheck(0);
//		else
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_CHIP_STORE_HINT))->SetCheck(m_tbPopupChipStoreHint ? 1 : 0);
//	}
//	if (dwCtrl != IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT)
//	{
//		if (m_tbPopupHtreeViewHint == NoValue)
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT))->SetCheck(0);
//		else
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT))->SetCheck(m_tbPopupHtreeViewHint ? 1 : 0);
//	}
//	if (dwCtrl != IDC_PPH_CHK_POPUP_HIST_FIND_RESULTS)
//	{
//		if (m_tbPopupHistFindResults == NoValue)
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_HIST_FIND_RESULTS))->SetCheck(0);
//		else
//			((CButton*)GetDlgItem(IDC_PPH_CHK_POPUP_HIST_FIND_RESULTS))->SetCheck(m_tbPopupHistFindResults ? 1 : 0);
//	}
//----- 06.02.23 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	m_bIsReady = TRUE;
} // CFCPrePopHint::UpdateControls.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrePopHint::UpdateActivate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iKgFjBkOjAkLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiBeBjHeMiMpIiPpDjBnEjFmPjAjEiCpAiNfIjAfGiClFiClNiMoD_xHqqkZx_
 *			_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCPrePopHint::UpdateActivate ()
{
//----- 06.02.23 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	switch (g_->appMode & FD_APPMODE_MASK)
//	{
//	case FD_APPMODE_HISTORICDRAW:	// HistoricDraw_xZkqqHx_iCmMiPoKiNiHiBeC_xHqqkZx_
//	case FD_APPMODE_HISTORYVIEWER:	// _xZkqqHx_jHjKjHpAiDhCiDiFiBfLiDeBiCmMiPoKiNiHiBeC_xHqqkZx_
//		GetDlgItem(IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT)->ShowWindow(SW_SHOW);
//		break;
//	default:
//		GetDlgItem(IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT)->ShowWindow(SW_HIDE);
//	}
//----- 06.02.23 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCPrePopHint::UpdateActivate.

//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrePopHint::IdToAttrVer
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgAiDeGiDgCiDeOiDhLiDfOiDjD_xHqqkZx_ID_xZkqqHx_iCkJiCoHjBmOiJjOiClHiCoJjFmPjAjEiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FCPrpAttr<BOOL>& CFCPrePopHint::IdToAttrVer (DWORD dwId)
//{
//	switch (dwId)
//	{
//	case IDC_PPH_CHK_POPUP_MENU_HINT:
//		return m_tbPopupMenuHint;
//	case IDC_PPH_CHK_POPUP_TOOLBAR_HINT:
//		return m_tbPopupToolbarHint;
//	case IDC_PPH_CHK_POPUP_OBJECT_HINT:
//		return m_tbPopupObjectHint;
//	case IDC_PPH_CHK_POPUP_COLOR_HINT:
//		return m_tbPopupColorHint;
//	case IDC_PPH_CHK_POPUP_OBJ_LABEL_LIST:
//		return m_tbPopupObjLabelList;
//	case IDC_PPH_CHK_POPUP_CHIP_STORE_HINT:
//		return m_tbPopupChipStoreHint;
//	case IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT:
//		return m_tbPopupHtreeViewHint;
//	case IDC_PPH_CHK_POPUP_HIST_FIND_RESULTS:
//		return m_tbPopupHistFindResults;
//	default: // IDC_PPH_CHK_POPUP_DSM_BOOKMARK:
//		return m_tbPopupDsmBookmark;
//	}
//} // CFCPrePopHint::IdToAttrVer.
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////

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

BEGIN_MESSAGE_MAP(CFCPrePopHint, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCPrePopHint)
	ON_COMMAND(ID_DIALOG_INIT_VALUE, OnDialogInitValue)
	ON_NOTIFY(NM_CLICK, IDC_PPH_LSV_POP_HINT_LIST, OnClickPphLsvPopHintList)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_BN_CLICKED(IDC_PPH_CHK_POPUP_MENU_HINT, OnPphChkPopup)
//	ON_BN_CLICKED(IDC_PPH_CHK_POPUP_TOOLBAR_HINT, OnPphChkPopup)
//	ON_BN_CLICKED(IDC_PPH_CHK_POPUP_OBJECT_HINT, OnPphChkPopup)
//	ON_BN_CLICKED(IDC_PPH_CHK_POPUP_COLOR_HINT, OnPphChkPopup)
//	ON_BN_CLICKED(IDC_PPH_CHK_POPUP_OBJ_LABEL_LIST, OnPphChkPopup)
//	ON_BN_CLICKED(IDC_PPH_CHK_POPUP_CHIP_STORE_HINT, OnPphChkPopup)
//	ON_BN_CLICKED(IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT, OnPphChkPopup)
//	ON_BN_CLICKED(IDC_PPH_CHK_POPUP_HIST_FIND_RESULTS, OnPphChkPopup)
//	ON_BN_CLICKED(IDC_PPH_CHK_POPUP_DSM_BOOKMARK, OnPphChkPopup)
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCPrePopHint _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrePopHint::OnDialogInitValue
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	ID_DIALOG_INIT_VALUE_xZkqqHx_iDfCiDhNiDjDiDgIiCmFiOmAiNhDiBeCiKgFjBkOjAkLjCgMiCmMjFmPjAjEiCpAiPiJiKpKiJlLiClFiBeB_xHqqkZx_
 *			_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCPrePopHint::OnDialogInitValue ()
{
	//----- _xZkqqHx_iKgFjBkOjAkLiCpAiPiJiKpKiJlL_xHqqkZx_ -----
	map<long, BOOL>::iterator iIe;
	for (iIe = m_mpIdToEnable.begin(); iIe != m_mpIdToEnable.end(); iIe++)
		iIe->second = myGetRegPopHint(iIe->first);

//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	m_tbPopupMenuHint.Init(g_pReg->GetIsPopupMenuHint());
//	m_tbPopupToolbarHint.Init(g_pReg->GetIsPopupToolbarHint());
//	m_tbPopupObjectHint.Init(g_pReg->GetIsPopupObjectHint());
//	m_tbPopupColorHint.Init(g_pReg->GetIsPopupColorHint());
//	m_tbPopupObjLabelList.Init(g_pReg->GetIsPopupObjLabelListHint());
//	m_tbPopupChipStoreHint.Init(g_pReg->GetIsPopupChipStoreHint());
//	m_tbPopupHtreeViewHint.Init(g_pReg->GetIsPopupHtreeViewHint());
//	m_tbPopupHistFindResults.Init(g_pReg->GetIsPopupHistFindResultsHint());
//	m_tbPopupDsmBookmark.Init(g_pReg->GetIsPopupDsmBookmarkHint());
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_jFmPjAjEiCmMjCgMiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjElNiJgGiBeC_xHqqkZx_
	UpdateControls(0);
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
	UpdateActivate();
	// _xZkqqHx_jBkOjAkLiCmJjFmPiNfIiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
	UpdateModified();
} // CFCPrePopHint::OnDialogInitValue.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrePopHint::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiCmMjFfMiOkGiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCPrePopHint::OnInitDialog ()
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnInitDialog();
	m_bIsReady = TRUE;

	//----- _xZkqqHx_iDiKiDfIiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmMiPiJiKpKiJlL_xHqqkZx_ -----
	m_imageList.Create(16, 16, ILC_MASK, 4, 4);
	m_imageList.Add(FFGetApp()->LoadIcon(IDI_CHECK_UNMARKED));		// Image 0.
	m_imageList.Add(FFGetApp()->LoadIcon(IDI_CHECK_MARKED));		// Image 1.
	CListCtrl* pList = (CListCtrl*)GetDlgItem(IDC_PPH_LSV_POP_HINT_LIST);
	// _xZkqqHx_jBfDiNhDjBeJjBpAiDhNiBfLiDeOiCkKjFfMiOkGiClDiCoKiCoJiCoGiCkEiCmJiDfIiDfOiDeDiDiLjFmPiNfIiBeC_xHqqkZx_
	pList->SetExtendedStyle(pList->GetExtendedStyle()|LVS_EX_FULLROWSELECT);
	// _xZkqqHx_iDeBiDeDiDfCiDjDjFfMiOkGjHhAiDeDiDiBiBfLiDfHiDiKiDfIiDgHiCpAjAnNjCoIiBeC_xHqqkZx_
	pList->SetImageList(&m_imageList, LVSIL_SMALL);

	//----- _xZkqqHx_iDiKiDfIiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmJiDeKiDiJiDiAiCpAiCfCiCmCjBhNjDpM_xHqqkZx_ -----
	CRect rtClient;
	pList->GetClientRect(rtClient);
	// _xZkqqHx_iDgAiDeGiDgCiDeOiDhNiBfLiDeOiCmMiDeKiDiJiDiAiCpAjBhNjDpMiBeC_xHqqkZx_
	FFInsertColumn(pList, 0, L"", LVCFMT_LEFT, 20);
	// _xZkqqHx_iDhGiDiJiDePiDeDiDjDjGlMiCmMiDeKiDiJiDiAiCpAjBhNjDpMiBeC_xHqqkZx_
	FFInsertColumn(pList, 1, L"", LVCFMT_LEFT, rtClient.Width() - 20);

	//----- _xZkqqHx_iDiKiDfIiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmJiDeBiDeDiDgFiDiAiCpAjBhNjDpM_xHqqkZx_ -----
	long lIndex;
	for (lIndex = 0; lIndex != s_POP_HINT_COUNT; lIndex++)
		m_mpIdToEnable[s_POP_HINT_ID[lIndex]] = myGetRegPopHint(s_POP_HINT_ID[lIndex]);

	switch (g_->appMode & FD_APPMODE_MASK)
	{
	case FD_APPMODE_DYNAMICDRAW:	// DynamicDraw_xZkqqHx_iDiCiBfLiDgIiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_STATUS_BAR);			// _xZkqqHx_iDfIiDgFiBfLiDfOiDfIiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_HTREE_VIEW);			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_HIST_FIND_RESULTS);	// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_DSM_BOOKMARK);		// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		break;
	case FD_APPMODE_CHIPEDITOR:		// _xZkqqHx_iDgAiDgCiDhGiDeHiDgGiDeCiDfOiDiCiBfLiDgIiBeC_xHqqkZx_
	case FD_APPMODE_ARROWEDITOR:	// _xZkqqHx_iDeBiDiNiBfLiDeHiDgGiDeCiDfOiDiCiBfLiDgIiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_STATUS_BAR);			// _xZkqqHx_iDfIiDgFiBfLiDfOiDfIiDgPiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_OBJ_LABEL_LIST);		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjHiDfPiDeDiDeBiDiNiDePiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_CHIP_STORE);			// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_HTREE_VIEW);			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_HIST_FIND_RESULTS);	// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_DSM_BOOKMARK);		// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		break;
	case FD_APPMODE_HISTORYVIEWER:	// _xZkqqHx_jHjKjHpAiDhCiDiFiBfLiDeBiDiCiBfLiDgIiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_COLOR);				// _xZkqqHx_iDhGiDiLiDfPiDeFiDjDjAeGiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_CHIP_STORE);			// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_RESIZE_OBJECT);		// _xZkqqHx_jFjEjFgJiCpAiDiKiDfEiDeDiDfJiClHiCoJiCmGiCkLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_ROTATE_OBJECT);		// _xZkqqHx_jFjEjFgJiCpAiJpBjDfNiClHiCoJiCmGiCkLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		break;
	case FD_APPMODE_HISTORICDRAW:	// HistoricDraw_xZkqqHx_iDiCiBfLiDgIiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_HIST_FIND_RESULTS);	// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		m_mpIdToEnable.erase(IDS_POP_HINT_DSM_BOOKMARK);		// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
		break;
	}

	//----- _xZkqqHx_iDiKiDfIiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmJiDeBiDeDiDgFiDiAiCpAjBhNjDpM_xHqqkZx_ -----
	map<long, BOOL>::const_iterator iIe;
	for (lIndex = 0, iIe = m_mpIdToEnable.begin(); iIe != m_mpIdToEnable.end(); iIe++, lIndex++)
	{
		CString strText;
		strText.LoadString(iIe->first);
		// _xZkqqHx_iDeBiDeDiDgFiDiAjBhNjDpMiBeCiDeKiDiJiDiAiCePiCmMiDeBiDeDiDfCiDjDiCpAjAnNjCoIiBeC_xHqqkZx_
		LV_ITEM lvitem;
		lvitem.mask = LVIF_IMAGE|LVIF_PARAM;
		lvitem.iItem = lIndex;
		lvitem.iSubItem = 0;
		lvitem.iImage = 0;		// _xZkqqHx_jEpBjBeJjBpAiCmMiDgAiDeGiDgCiDeOiDhNiBfLiDeOiBeC_xHqqkZx_
		lvitem.lParam = iIe->first;
		pList->InsertItem(&lvitem);
		// _xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeKiDiJiDiAiCfAiDgFiDeMiDfIiDgHiCpAjAnNjCoIiBeC_xHqqkZx_
		lvitem.mask = LVIF_TEXT;
		lvitem.iItem = lIndex;
		lvitem.iSubItem = 1;
		lvitem.pszText = (_TCHAR*)(const _TCHAR*)strText;
		pList->SetItem(&lvitem);
	}

//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_jEpBjFfMiOkGiCmMiDfCiDjDiDgHiDiNiBfLiDiLiCmM_xHqqkZx_ID_xZkqqHx_iPfHiNiHiBeC_xHqqkZx_
//	DWORDSet stHideCtrlId;
//	switch (g_->appMode & FD_APPMODE_MASK)
//	{
//	case FD_APPMODE_DYNAMICDRAW:	// DynamicDraw_xZkqqHx_iDiCiBfLiDgIiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT);		// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_HIST_FIND_RESULTS);	// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_DSM_BOOKMARK);		// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		break;
//	case FD_APPMODE_CHIPEDITOR:		// _xZkqqHx_iDgAiDgCiDhGiDeHiDgGiDeCiDfOiDiCiBfLiDgIiBeC_xHqqkZx_
//	case FD_APPMODE_ARROWEDITOR:	// _xZkqqHx_iDeBiDiNiBfLiDeHiDgGiDeCiDfOiDiCiBfLiDgIiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_OBJ_LABEL_LIST);		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjHiDfPiDeDiDeBiDiNiDePiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_CHIP_STORE_HINT);		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_HTREE_VIEW_HINT);		// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_HIST_FIND_RESULTS);	// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_DSM_BOOKMARK);		// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		break;
//	case FD_APPMODE_HISTORYVIEWER:	// _xZkqqHx_jHjKjHpAiDhCiDiFiBfLiDeBiDiCiBfLiDgIiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_COLOR_HINT);			// _xZkqqHx_iDhGiDiLiDfPiDeFiDjDjAeGiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_CHIP_STORE_HINT);		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		break;
//	case FD_APPMODE_HISTORICDRAW:	// HistoricDraw_xZkqqHx_iDiCiBfLiDgIiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_HIST_FIND_RESULTS);	// _xZkqqHx_jHjKjHpAiMjPiNpFiCmMiMiLiJmKiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		stHideCtrlId.insert(IDC_PPH_CHK_POPUP_DSM_BOOKMARK);		// _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiDhAiDgMiDiLiCmMiDhBiDjDiDgHiBeC_xHqqkZx_
//		break;
//	}
//
//	int iC;
//	// _xZkqqHx_jFfMiOkGiClDiCoKiCoJiDfCiDjDiDgHiDiNiBfLiDiLiCmMiNiHiMhGiCpAiOfKiPgPiBeC_xHqqkZx_
//	int iControlCount = 0;
//	for (iC = 0; iC != s_CHKBTN_COUNT; iC++)
//		if (stHideCtrlId.find(s_CHKBTN_ID[iC]) == stHideCtrlId.end())
//			iControlCount++;
//	// _xZkqqHx_iIoKjEnEiPoDiCmMiDfCiDjDiDgHiDiNiBfLiDiLiCmGiIoKjEnEiJlKiCmMiDfCiDjDiDgHiDiNiBfLiDiLiCmMiNmAjFfHiCpAiOoGjDlOiBeC_xHqqkZx_
//	CRect rtChkBtn0, rtChkBtnN;
//	GetDlgItem(s_CHKBTN_ID[0])->GetWindowRect(rtChkBtn0);
//	GetDlgItem(s_CHKBTN_ID[s_CHKBTN_COUNT - 1])->GetWindowRect(rtChkBtnN);
//	// _xZkqqHx_jFfMiOkGiDfCiDjDiDgHiDiNiBfLiDiLiCpAjEhKjChFiClHiCoJiClNiCnPiCmMiDeNiDiDiDgCiDhGiCpAiOfKiPgPiBeC_xHqqkZx_
//	int iVertGap = (rtChkBtnN.top - rtChkBtn0.top) / (iControlCount - 1);
//	if (2 * rtChkBtn0.Height() < iVertGap)
//	iVertGap = 2 * rtChkBtn0.Height();
//	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLjEhKjChFiCmM_xHqqkZx_Y_xZkqqHx_iNmAjFfHiBeC_xHqqkZx_
//	ScreenToClient(rtChkBtn0);
//	int iY = rtChkBtn0.top;
//
//	for (iC = 0; iC != s_CHKBTN_COUNT; iC++)
//	//----- _xZkqqHx_iDgAiDeGiDgCiDeOiDhLiDfOiDjDiClHiCnHiCmEiCmJiKnGiClFiCmEiDiLiBfLiDhG_xHqqkZx_ -----
//	{
//		if (stHideCtrlId.find(s_CHKBTN_ID[iC]) != stHideCtrlId.end())
//		//----- _xZkqqHx_jEpBjFfMiOkGiCmMiDfCiDjDiDgHiDiNiBfLiDiLiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			GetDlgItem(s_CHKBTN_ID[iC])->ShowWindow(SW_HIDE);
//		} else
//		//----- _xZkqqHx_jFfMiOkGiCmMiDfCiDjDiDgHiDiNiBfLiDiLiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_jFfMiOkGiClDiCoKiCoJiDfCiDjDiDgHiDiNiBfLiDiLiCpAiInKjDkOiBeC_xHqqkZx_
//			GetDlgItem(s_CHKBTN_ID[iC])->SetWindowPos(	NULL,
//														rtChkBtn0.left,
//														iY,
//														0, 0,
//														SWP_NOACTIVATE|SWP_NOCOPYBITS|SWP_NOOWNERZORDER|
//														SWP_NOSENDCHANGING|SWP_NOZORDER|SWP_NOSIZE);
//			iY += iVertGap;
//		}
//	}
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMjCfAiImKjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	::SetUnitString(m_hWnd);
	// _xZkqqHx_jHjIiCkLjIhCjBmOiJjOjFlGiOjKjHpBiCmMjAnNjCoIiCpAiNhDiCkEiBeC_xHqqkZx_
	::RightByLeftHand(m_hWnd);
	// _xZkqqHx_jBkOjAkLjFmPjAjEiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
	PostMessage(WM_COMMAND, ID_DIALOG_INIT_VALUE);

	return TRUE;  // _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmJiDhEiDeIiBfLiDeKiDfIiCpAjAnNjCoIiClFiCmIiCkCiCmGiCkLiBeBjGnPiCoIjCgMiCmN_xHqqkZx_ TRUE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
	              // _xZkqqHx_jHoBiKeP_xHqqkZx_: OCX _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfHiCmMjGnPiCoIjCgMiCmN_xHqqkZx_ FALSE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
} // CFCPrePopHint::OnInitDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrePopHint::OnOK
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OK_xZkqqHx_iDhLiDfOiDjDiBeBjDeLjHhAiDhLiDfOiDjDiCpAiJjPiClFiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCPrePopHint::OnOK ()
{
	//-----	_xZkqqHx_jBkOjAkLiCmJjGlFiPiCiCkKiCkAiCoJiPoKiNiHiCmNiBeBjFjEjFgJiCmJjBkOjAkLiCpAjAnNjCoIiClJiClIiCmJjFjMiLeB_xHqqkZx_ -----
	if (!IsConsistent())
	{
		BASE_CLASS::OnOK();
		return;
	}

	//----- _xZkqqHx_iKgFjBkOjAkLiCpAjAnNjCoI_xHqqkZx_ -----
	map<long, BOOL>::const_iterator iIe;
	for (iIe = m_mpIdToEnable.begin(); iIe != m_mpIdToEnable.end(); iIe++)
		mySetRegPopHint(iIe->first, iIe->second);

//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	if (m_tbPopupMenuHint.IsChanged())
//		g_pReg->SetIsPopupMenuHint(m_tbPopupMenuHint);
//	if (m_tbPopupToolbarHint.IsChanged())
//		g_pReg->SetIsPopupToolbarHint(m_tbPopupToolbarHint);
//	if (m_tbPopupObjectHint.IsChanged())
//		g_pReg->SetIsPopupObjectHint(m_tbPopupObjectHint);
//	if (m_tbPopupColorHint.IsChanged())
//		g_pReg->SetIsPopupColorHint(m_tbPopupColorHint);
//	if (m_tbPopupObjLabelList.IsChanged())
//		g_pReg->SetIsPopupObjLabelListHint(m_tbPopupObjLabelList);
//	if (m_tbPopupChipStoreHint.IsChanged())
//		g_pReg->SetIsPopupChipStoreHint(m_tbPopupChipStoreHint);
//	if (m_tbPopupHtreeViewHint.IsChanged())
//		g_pReg->SetIsPopupHtreeViewHint(m_tbPopupHtreeViewHint);
//	if (m_tbPopupHistFindResults.IsChanged())
//		g_pReg->SetIsPopupHistFindResultsHint(m_tbPopupHistFindResults);
//	if (m_tbPopupDsmBookmark.IsChanged())
//		g_pReg->SetIsPopupDsmBookmarkHint(m_tbPopupDsmBookmark);
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_jBkOjAkLjFmPjAjEiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
	PostMessage(WM_COMMAND, ID_DIALOG_INIT_VALUE);
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnOK();
} // CFCPrePopHint::OnOK.

//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//void CFCPrePopHint::OnPphChkPopup ()
//{
//	const WORD wId = LOWORD(GetCurrentMessage()->wParam);
//	IdToAttrVer(wId) = ((CButton*)GetDlgItem(wId))->GetCheck() ? TRUE : FALSE;
//	// _xZkqqHx_jFmPjAjEiCmMjCgMiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjElNiJgGiBeC_xHqqkZx_
//	UpdateControls(wId);
//	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
//	UpdateActivate();
//	// _xZkqqHx_jBkOjAkLiCmJjFmPiNfIiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	UpdateModified();
//} // CFCPrePopHint::OnPphChkPopup.
//----- 06.04.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCPrePopHint::OnClickPphLsvPopHintList
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiJiDePiDeDiDjDiCmMiDiKiDfIiDgHiDeBiDeDiDgFiDiAiCkKiDeOiDiKiDgCiDeOiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.04.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCPrePopHint::OnClickPphLsvPopHintList (NMHDR* pNMHDR, LRESULT* pResult)
{
	NMITEMACTIVATE* pItem = (NMITEMACTIVATE*)pNMHDR;
	if (pItem->iSubItem == 0)
	//----- _xZkqqHx_iDgAiDeGiDgCiDeOiDhNiBfLiDeOiCmMiDeKiDiJiDiAiCkKiDeOiDiKiDgCiDeOiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
	{
		CListCtrl* pList = (CListCtrl*)GetDlgItem(IDC_PPH_LSV_POP_HINT_LIST);
		//----- 1_xZkqqHx_jEnEjGnKiDeKiDiJiDiAiCkJiCoHiBeB_xHqqkZx_HintId_xZkqqHx_iCpAiOoGjDlO_xHqqkZx_ -----
		LV_ITEM lvitem;
		lvitem.mask = LVIF_PARAM;
		lvitem.iItem = pItem->iItem;
		lvitem.iSubItem = 0;
		pList->GetItem(&lvitem);
		// _xZkqqHx_jBeJjBpAiPpDjBnEiCpAjElNjDfNiBeC_xHqqkZx_
		m_mpIdToEnable[lvitem.lParam] = !(m_mpIdToEnable[lvitem.lParam]);
		// _xZkqqHx_jFmPjAjEiCmMjCgMiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjElNiJgGiBeC_xHqqkZx_
		UpdateControls(IDC_PPH_LSV_POP_HINT_LIST);
		// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
		UpdateActivate();
		// _xZkqqHx_jBkOjAkLiCmJjFmPiNfIiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
		UpdateModified();
	}
	*pResult = 0;
} // CFCPrePopHint::OnClickPphLsvPopHintList.
