// TolBrBase.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"	// For FFGetApp().
#include "RegData.h"		// For GetRegFontStatic.
#include "UtilWin.h"		// For FFHorznizeToolBar.
//----- 06.10.30 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
#include "UtilToolbar.h"	// For FFGetToolbarCommandList.
#include "UtilErr.h"		// For FFThrowMiscUnknown().
//----- 06.10.30 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
#include "CmbSColor.h"		// For CFCCmbSColor.
#include "HiCommandTable.h"	// For FD_CMD_XXXX.
#include "PursuerText.h"	// For CFCPursuerText.
#include "TolBrBase.h"		// This header.

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

/////////////////////////////////////////////////////////////////////////////
// CFCTolBrBase

CFCTolBrBase::CFCTolBrBase ()
{
} // CFCTolBrBase::CFCTolBrBase.

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

/////////////////////////////////////////////////////////////////////////////
// CFCTolBrBase _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::Initialize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAlDiPoNiPeJjHlJiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCTolBrBase::Initialize ()
{
//----- 06.10.30 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
	if (!LoadToolBar(IDR_TOOLBAR_1))
		return FALSE;
	const int iButtonCount = GetToolBarCtrl().GetButtonCount();
	map<UINT, int> mpCommandIdToImageIndex;
	int iC;
	for (iC = 0; iC != iButtonCount; iC++)
	{
		UINT uiID;
		UINT uiStyle;
		int iImage;
		GetButtonInfo(iC, uiID, uiStyle, iImage);
		mpCommandIdToImageIndex[uiID] = iImage;
	}

	UINTVector vCommandId;
	FFGetToolbarCommandList(vCommandId, GetDlgCtrlID());
	SetButtons(&vCommandId.at(0), (int)vCommandId.size());
	for (iC = 0; iC != vCommandId.size(); iC++)
	{
		UINT uiID;
		UINT uiStyle;
		int iImage;
		GetButtonInfo(iC, uiID, uiStyle, iImage);
		map<UINT, int>::const_iterator iCi = mpCommandIdToImageIndex.find(vCommandId[iC]);
		if (iCi != mpCommandIdToImageIndex.end())
		{
			SetButtonInfo(iC, uiID, uiStyle, iCi->second);
		}
	}
//----- 06.10.30 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiKnGiMfHiCmMiNfIjAfGiDhEiDiJiDePiBeC_xHqqkZx_
	m_bUpdateCmbTable = FALSE;

	long lIndex;
	for (lIndex = 0;; lIndex++)
	{
		const FCCmbButtonInfo& info = GetCmbButtonInfo(lIndex);
		if (info.pCmb == NULL) break;
//----- 06.10.30 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMjBhNjDpMiPoKiPiKiBgJjFjNiBgKiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
//		SetButtonInfo(CommandToIndex(info.dwID), info.dwID, TBBS_SEPARATOR, info.iBoxWidth);
//		//----- _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiNoMjAkMiBjFiPiJiKpKiJlL_xHqqkZx_ -----
//		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiDfEiDeDiDfJiCpAiMhGiOfKiClHiCoJiBeC_xHqqkZx_
//		CRect rect;
//		GetItemRect(CommandToIndex(info.dwID), &rect);
//		int iHeight = rect.Height();
//		rect.top = 0;
//		rect.bottom = rect.top + info.iDroppedHeight;
//		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCpAiNoMjAkMiBeC_xHqqkZx_
//		if (!info.pCmb->Create(	info.dwStyle|WS_VISIBLE|WS_VSCROLL|WS_TABSTOP,
//								rect, this, info.dwID))
//		{
//			TRACE(_T("Failed to create combo-box\n"));
//			return FALSE;
//		}
//		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiDgIiDiNiDgCiDhGiDfPiDeFiDjDiDiKiDfIiDgHiCmMjFjNiCpAiKgHjCkDjAnNjCoIiBeC_xHqqkZx_
//		info.pCmb->SetDroppedWidth(info.iDroppedWidth);
//		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmJiDhEiDeIiDjDiDgHiCpAjAnNjCoIiBeC_xHqqkZx_
//		info.pCmb->SetFont(g_pReg->GetRegFontStatic(FDFT_TOOLBAR));
//		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiNiCiClDiCpAjAnNjCoIiBeC_xHqqkZx_
//		info.pCmb->SetItemHeight(-1, iHeight - 6);
//----- 06.10.30 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOoGjDlOiBeCjBlGiNnNiClFiCmIiCkCiPoKiNiHiCoAiCkAiCoJiBeC_xHqqkZx_
		const int iIndex = CommandToIndex(info.dwID);
		if (iIndex != -1)
		//----- _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfI_xHqqkZx_ID_xZkqqHx_iCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMjBhNjDpMiPoKiPiKiBgJjFjNiBgKiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
			SetButtonInfo(iIndex, info.dwID, TBBS_SEPARATOR, info.iBoxWidth);
			//----- _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiNoMjAkMiBjFiPiJiKpKiJlL_xHqqkZx_ -----
			// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiDfEiDeDiDfJiCpAiMhGiOfKiClHiCoJiBeC_xHqqkZx_
			CRect rect;
			GetItemRect(iIndex, &rect);
			int iHeight = rect.Height();
			rect.top = 0;
			rect.bottom = rect.top + info.iDroppedHeight;
			// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCpAiNoMjAkMiBeC_xHqqkZx_
			if (!info.pCmb->Create(	info.dwStyle|WS_VISIBLE|WS_VSCROLL|WS_TABSTOP,
									rect, this, info.dwID))
			{
				TRACE(_T("Failed to create combo-box\n"));
				return FALSE;
			}
			// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiDgIiDiNiDgCiDhGiDfPiDeFiDjDiDiKiDfIiDgHiCmMjFjNiCpAiKgHjCkDjAnNjCoIiBeC_xHqqkZx_
			info.pCmb->SetDroppedWidth(info.iDroppedWidth);
			// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmJiDhEiDeIiDjDiDgHiCpAjAnNjCoIiBeC_xHqqkZx_
			info.pCmb->SetFont(g_pReg->GetRegFontStatic(FDFT_TOOLBAR));
			// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiNiCiClDiCpAjAnNjCoIiBeC_xHqqkZx_
			info.pCmb->SetItemHeight(-1, iHeight - 6);
		} else
		//----- _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfI_xHqqkZx_ID_xZkqqHx_iCkKjBlGiNnNiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCpAiNoMjAkMiBeC_xHqqkZx_
			if (!info.pCmb->Create(	info.dwStyle|WS_VSCROLL|WS_TABSTOP,
									CRect(0,0,1,1), this, info.dwID))
			{
				TRACE(_T("Failed to create combo-box\n"));
				return FALSE;
			}
		}
//----- 06.10.30 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMiPiJiKpKjCgMiCmJ_xHqqkZx_-1_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
		info.pCmb->SetCurSel(-1);
	}
	// _xZkqqHx_jAlDiPoNiPeJjHlJiBeC_xHqqkZx_
	return TRUE;
} // CFCTolBrBase::Initialize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::GetCmbButtonInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiDhLiDfOiDjDiCmMiPoOjFpBiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iPoOjFpBiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiDhLiDfOiDjDiCmMiPoOjFpBiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iClBiCoKiImIiPoDiDhLiDfOiDjDiCmMiPoOjFpBiCkKjGlDiCkCiPoKiNiHiCmNiBeB_xHqqkZx_FCCmbButtonInfo::pCmb = NULL
 *			_xZkqqHx_iCmMiPoOjFpBiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const CFCTolBrBase::FCCmbButtonInfo& CFCTolBrBase::GetCmbButtonInfo (long lIndex)
{
	static FCCmbButtonInfo s_info[] =
	{
		{	NULL,								// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIjFmPjAjEiBeC_xHqqkZx_
			0,									// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmM_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
			0,									// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMjCmHiJmBiDfIiDfOiDeDiDiLiBeC_xHqqkZx_WS_VISIBLE|WS_VSCROLL|WS_TABSTOP _xZkqqHx_iCmNjFfHiPiAiBeC_xHqqkZx_
			0,									// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmMjFjNiBeC_xHqqkZx_
			0,									// _xZkqqHx_iDgIiDiNiDgCiDhGiDfPiDeFiDjDiCmMjFjNiBeC_xHqqkZx_
			0 },								// _xZkqqHx_iDgIiDiNiDgCiDhGiDfPiDeFiDjDiCmMiNiCiClDiBeC_xHqqkZx_
	};
	return s_info[lIndex];
} // CFCTolBrBase::GetCmbButtonInfo.

//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::UpdateCmbSColor
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClHiCnHiCmEiCmM_xHqqkZx_CFCCmbSColor_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCTolBrBase::UpdateCmbSColor ()
//{
//	long lIndex;
//	for (lIndex = 0;; lIndex++)
//	{
//		const FCCmbButtonInfo& info = GetCmbButtonInfo(lIndex);
//		if (info.pCmb == NULL) break;
//		if (info.pCmb->IsKindOf(RUNTIME_CLASS(CFCCmbSColor)))
//		((CFCCmbSColor*)info.pCmb)->UpdateItem();
//	}
//} // CFCTolBrBase::UpdateCmbSColor.
//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::UpdateCmbBase
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClHiCnHiCmEiCmM_xHqqkZx_CFCCmbBase_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCTolBrBase::UpdateCmbBase ()
{
	long lIndex;
	for (lIndex = 0;; lIndex++)
	{
		const FCCmbButtonInfo& info = GetCmbButtonInfo(lIndex);
		if (info.pCmb == NULL) break;
		if (info.pCmb->IsKindOf(RUNTIME_CLASS(CFCCmbBase)))
		((CFCCmbBase*)info.pCmb)->UpdateItem();
	}
} // CFCTolBrBase::UpdateCmbBase.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnCmdSessionEnded
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CommandGate_xZkqqHx_iCmMiDfKiDgCiDfGiDiHiDjDiPeJjHlJiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCTolBrBase::OnCmdSessionEnded ()
{
	if (m_bUpdateCmbTable)
	{
		// _xZkqqHx_iNfIjAfGiBeC_xHqqkZx_
		UpdateCmbBase();
		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiKnGiMfHiCmMiNfIjAfGiDhEiDiJiDePiBeC_xHqqkZx_
		m_bUpdateCmbTable = FALSE;
	}
} // CFCTolBrBase::OnCmdSessionEnded.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnCommandCalled
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CommandGate_xZkqqHx_iCmFiDfCiDhNiDjDiDgIiCkKiPiIjHjNiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	gateCmd	:_xZkqqHx_iDfCiDhNiDjDiDgIiCmMiOoNjHnOiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lParam	:_xZkqqHx_iDfCiDhNiDjDiDgIiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCTolBrBase::OnCommandCalled (FTGateCmd gateCmd, LPARAM lParam)
{
	//----- _xZkqqHx_iDeKiDiJiBfLiDgFiBfLiDhFiDiLiDgDiBfLiDiLiDgPiBfLiCmMiNfIjAfG_xHqqkZx_ -----
	switch (gateCmd)
	{
	case FD_CMD_INSERT1_S_COLOR:			// _xZkqqHx_iCfAiChCjAeGjBhNjDpMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_DELETE1_S_COLOR:			// _xZkqqHx_iCfAiChCjAeGiNoNiPjMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_MODIFY1_S_COLOR:			// _xZkqqHx_iCfAiChCjAeGiPeDjAlDiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_RE_ORDER_S_COLOR:			// _xZkqqHx_iChCjAeGjFmAiCnHjBnGiCkGiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_INSERT1_EMF_IMAGE:			// _xZkqqHx_iCfAiDiBiDfOiDhEiDeAiDeDiDiLjBhNjDpMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_DELETE1_EMF_IMAGE:			// _xZkqqHx_iCfAiDiBiDfOiDhEiDeAiDeDiDiLiNoNiPjMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_MODIFY1_EMF_IMAGE:			// _xZkqqHx_iCfAiDiBiDfOiDhEiDeAiDeDiDiLiPeDjAlDiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_RE_ORDER_EMF_IMAGE:			// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLjFmAiCnHjBnGiCkGiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_INSERT1_BRUSH_REGISTER:		// _xZkqqHx_iCfAjDgPjIfOiDhFiDiJiDfGjBhNjDpMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_DELETE1_BRUSH_REGISTER:		// _xZkqqHx_iCfAjDgPjIfOiDhFiDiJiDfGiNoNiPjMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_MODIFY1_BRUSH_REGISTER:		// _xZkqqHx_iCfAjDgPjIfOiDhFiDiJiDfGiPeDjAlDiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_RE_ORDER_BRUSH_REGISTER:	// _xZkqqHx_jDgPjIfOiDhFiDiJiDfGjFmAiCnHjBnGiCkGiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_INSERT1_PEN_REGISTER:		// _xZkqqHx_iCfAjDgPjIfOiDhJiDjDjBhNjDpMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_DELETE1_PEN_REGISTER:		// _xZkqqHx_iCfAjDgPjIfOiDhJiDjDiNoNiPjMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_MODIFY1_PEN_REGISTER:		// _xZkqqHx_iCfAjDgPjIfOiDhJiDjDiPeDjAlDiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_RE_ORDER_PEN_REGISTER:		//	_xZkqqHx_jDgPjIfOiDhJiDjDjFmAiCnHjBnGiCkGiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_INSERT1_PEN_STYLE:			// _xZkqqHx_iCfAiDhJiDjDiDfIiDfOiDeDiDiLjBhNjDpMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_DELETE1_PEN_STYLE:			// _xZkqqHx_iCfAiDhJiDjDiDfIiDfOiDeDiDiLiNoNiPjMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_MODIFY1_PEN_STYLE:			// _xZkqqHx_iCfAiDhJiDjDiDfIiDfOiDeDiDiLiPeDjAlDiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
	case FD_CMD_RE_ORDER_PEN_STYLE:			// _xZkqqHx_iDhJiDjDiDfIiDfOiDeDiDiLjFmAiCnHjBnGiCkGiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
		// _xZkqqHx_iDfCiDjDiDhLiDhLiDgCiDeOiDfIiKnGiMfHiCmMiNfIjAfGiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
		m_bUpdateCmbTable = TRUE;
		break;
	}
} // CFCTolBrBase::OnCommandCalled.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnInitContents
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmM_xHqqkZx_DeleteContents_xZkqqHx_iBeB_xHqqkZx_InitContents_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCTolBrBase::OnInitContents ()
{
	// CFCCmbBase_xZkqqHx_iCpAiNfIjAfGiBeC_xHqqkZx_
	UpdateCmbBase();
} // CFCTolBrBase::OnInitContents.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnObjSelectChanged
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjBeJjBpAiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCTolBrBase::OnObjSelectChanged ()
{
} // CFCTolBrBase::OnObjSelectChanged.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnTextSelectChanged
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjBeJjBpAiCkKjFmPiNfIiClDiCoKiClNiPoKiNiHiBeBiIlNiCkCiCmNiDgFiDeMiDfIiDgHiCmMjBeJjBpAjEmNiImNiCkK_xHqqkZx_
 *			_xZkqqHx_jFmPiNfIiClDiCoKiClNiPoKiNiHiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCTolBrBase::OnTextSelectChanged ()
{
} // CFCTolBrBase::OnTextSelectChanged.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::SetPopHintTargetInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiDgCiDhGiDhBiDjDiDgHiCmJiDfOiBfLiDfBiDgCiDgHiCmMiDfCiDhNiDjDiDgI_xHqqkZx_ID_xZkqqHx_iCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwId	:_xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jCmKiPoNiCmNiClLiCmMiCnMiCnMiDhMiDgCiDhGiDhBiDjDiDgHiCmJ_xHqqkZx_ID_xZkqqHx_iCpAjDgOiClJiCmOiNmPiCnOiCmMiClOiCkKiBeB_xHqqkZx_
 *			_xZkqqHx_iDfGiBfLiDgHiDgDiBfLiDiLiDgPiBfLiCmFiDfCiDjDiDhLiDhLiDgCiDeOiDfIiCmM_xHqqkZx_ID_xZkqqHx_iCpAjFmPiNfIiClFiCmEjDgOiClFiClNiCkCiPoKiNiHiCkK_xHqqkZx_
 *			_xZkqqHx_iCkAiCoJiCmMiCmFiClBiCmMiKnGjAjEiCpAiNoMjAkMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.04.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCTolBrBase::SetPopHintTargetInfo (DWORD dwId) const
{
	if (dwId != DWORD(-1) && dwId != 0)
		FFGetApp()->GetPopHint()->SetTargetInfo(dwId);
} // CFCTolBrBase::SetPopHintTargetInfo.

//----- 06.10.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////----- 06.10.29 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::CreateEx
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	Windows _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ _xZkqqHx_iDgPiBfL_xHqqkZx_ (_xZkqqHx_iOhBiDeFiDeCiDjDiDgIiDeF_xHqqkZx_) _xZkqqHx_iCpAiNoMjAkMiClFiBeB_xHqqkZx_
// *			CToolBar _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmJiMiLiCnBjFhEiCkPiCnMiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pParentWnd 	:_xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ _xZkqqHx_iDgPiBfLiCmMjAgFiDeFiDeCiDjDiDgIiDeFiCnGiCmMiDhMiDeDiDjDiDfOiBeC_xHqqkZx_ 
// *			dwCtrlStyle	:_xZkqqHx_jGiEiCnPiNjOiCnN_xHqqkZx_ CToolBarCtrl _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAiNoMjAkMiClHiCoJ_xHqqkZx_
// *						 _xZkqqHx_iClNiCnPiCmMjCmHiJmBiDfIiDfOiDeDiDiLiBeCiKpJjCoIiCmFiCmNiBeB_xHqqkZx_TBSTYLE_FLAT _xZkqqHx_iCmJ_xHqqkZx_
// *						 _xZkqqHx_jAnNjCoIiClDiCoKiCnMiClHiBeCiDgDiBfLiDiL_xHqqkZx_ _xZkqqHx_iDgPiBfL_xHqqkZx_ _xZkqqHx_iDfIiDfOiDeDiDiLiCmMiIoKjHjHiCmJiCmCiCkCiCmEiCmN_xHqqkZx_
// *						_xZkqqHx_iBhF_xHqqkZx_dwStyle_xZkqqHx_iBhGiCpAiOfBiPmGiClFiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_ 
// *			dwStyle		:_xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ _xZkqqHx_iDgPiBfLiCmMiDfIiDfOiDeDiDiLiCmFiClHiBeCiOgHjHhAiCmFiCkLiCoJiDfIiDfOiDeDiDiLiCmM_xHqqkZx_
// *						 _xZkqqHx_iIoKjHjHiCmJiCmCiCkCiCmEiCmNiBeBiBhH_xHqqkZx_Platform SDK_xZkqqHx_iBhIiCmM_xHqqkZx_
// *						 _xZkqqHx_iBhF_xHqqkZx_Toolbar Control and Button Style_xZkqqHx_iBhGiCpAiOfBiPmGiClFiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_ 
// *			rcBorders	:_xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ _xZkqqHx_iDgPiBfL_xHqqkZx_ _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMiLkLiKeFjApMjFjNiCpAjCoIiLgAiClHiCoJ_xHqqkZx_
// *						 CRect _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiBeCiKpJjCoIiCmFiCmNiBeBiKgFjFnDiCmMiLkLiKeFjApMiCkK_xHqqkZx_
// *						 0,0,0,0 _xZkqqHx_iCmJjAnNjCoIiClDiCoKiCnMiClHiBeCiCmCiCnMiCoIiBeBiDgDiBfLiDiL_xHqqkZx_ _xZkqqHx_iDgPiBfL_xHqqkZx_ _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmJ_xHqqkZx_
// *						 _xZkqqHx_iLkLiKeFjApMiCkKjFhEiCkLiCnMiClJiCpBiBeC_xHqqkZx_ 
// *			nID			:_xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ _xZkqqHx_iDgPiBfLiCmMiOhBiDeFiDeCiDjDiDgIiDeFiCmM_xHqqkZx_ ID_xZkqqHx_iBeC_xHqqkZx_ 
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAlDiPoNiCmJiPeJjHlJiClFiClNiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iImIiKePiCpAjFnEiClFiCnMiClHiBeCiClLiCoKiImIiKePiCmMiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iCpAjFnEiClFiCnMiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCTolBrBase::CreateEx (	CWnd* pParentWnd,
//								DWORD dwCtrlStyle,
//								DWORD dwStyle,
//								CRect rcBorders,
//								UINT nID)
//{
//	// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	if (!BASE_CLASS::CreateEx(pParentWnd, dwCtrlStyle, dwStyle, rcBorders, nID))
//		return FALSE;
//	if (!LoadToolBar(IDR_TOOLBAR_1))
//	{
//		DestroyWindow();
//		return FALSE;
//	}
//	UINTVector vCommandId;
//	FFGetToolbarCommandList(vCommandId, nID);
//	SetButtons(&vCommandId.at(0), (int)vCommandId.size());
//
//	return TRUE;
//} // CFCTolBrBase::CreateEx.
////----- 06.10.29 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 06.10.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::CalcFixedLayout
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjCoIiDfEiDeDiDfJiCmMiMhGiOfKiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeCiOoFiCmJiDgIiDgCiDeOiClDiCoKiCoJiCmGiCkLiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CSize CFCTolBrBase::CalcFixedLayout (BOOL bStretch, BOOL bHorz)
{
	if (bHorz)
	//----- _xZkqqHx_jAiFjFlNjFpLiMpMiCmMiDgIiDgCiDeOiOjO_xHqqkZx_ ------
	{
		// _xZkqqHx_jGhLjHiIiBeBiClBiCmMiPiIjHjNiCmNjFhDjHhGiCmIiCmMiClOiCkKiBeBiPgDjFpLiMpMiCmJjAeMiCmOiClFiClNiDhEiDiNiBfLiDgHiDgDiBfLiDiLiDgPiBfL_xHqqkZx_
		// _xZkqqHx_iCpAiDgIiDgCiDeOiClFiCoGiCkEiCmGiClHiCoJiCmGiBeBjFjEjFgJiCkKiCkEiCnMiCkN_xHqqkZx_SEPARATOR_xZkqqHx_iImKjChFiCmJiInKjDkOiClFiCmIiCkCiClNiCnPiBeC_xHqqkZx_
		vector<FCWndAndId> vWid;
		long lIndex;
		for (lIndex = 0;; lIndex++)
		{
			const FCCmbButtonInfo& info = GetCmbButtonInfo(lIndex);
			if (info.pCmb == NULL) break;
			FCWndAndId wid;
			wid.pWnd = info.pCmb;
			wid.dwId = info.dwID;
			vWid.push_back(wid);
		}
		::FFHorznizeToolBar(this, vWid.begin(), vWid.size());
	}
	return BASE_CLASS::CalcFixedLayout(bStretch, bHorz);
} // CFCTolBrBase::CalcFixedLayout.

/////////////////////////////////////////////////////////////////////////////
// CFCTolBrBase _xZkqqHx_iDiGiBfLiDfFiDeJiBfLiDgPiBfLiDiJiDeDiDgIiBeC_xHqqkZx_

BEGIN_MESSAGE_MAP(CFCTolBrBase, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCTolBrBase)
	ON_WM_CREATE()
	ON_WM_DESTROY()
	//}}AFX_MSG_MAP
	ON_MESSAGE(WM_USER_CMD_SESSION_ENDED, OnUserCmdSessionEnded)
	ON_MESSAGE(WM_USER_COMMAND_CALLED, OnUserCommandCalled)
	ON_MESSAGE(WM_USER_INIT_CONTENTS, OnUserInitContents)
	ON_MESSAGE(WM_USER_OBJ_SELECT_CHANGED, OnUserObjSelectChanged)
	ON_MESSAGE(WM_USER_TEXT_SELECT_CHANGED, OnUserTextSelectChanged)
	ON_MESSAGE(WM_USER_PURSUER_TEXT_NEED_INFO, OnUserPursuerTextNeedInfo)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCTolBrBase _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnUserCmdSessionEnded
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiDfKiDgCiDfGiDiHiDjDiPeJjHlJiKnGjAjEiCkKiOmAiNhDiClDiCoKiClNiOjOiBeB_xHqqkZx_
 *			CommandGate_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	1
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCTolBrBase::OnUserCmdSessionEnded (WPARAM, LPARAM)
{
	OnCmdSessionEnded();
	return 1;
} // CFCTolBrBase::OnUserCmdSessionEnded.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnUserCommandCalled
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiCkKiOmAiNhDiClDiCoKiClNiOjOiBeB_xHqqkZx_CommandGate_xZkqqHx_iCkJiCoH_xHqqkZx_ SendMessage_xZkqqHx_iCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_iDfCiDhNiDjDiDgIiDfCiBfLiDgIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lParam	:_xZkqqHx_iDfCiDhNiDjDiDgIiClCiCmGiCmMiDhAiDiJiDiBiBfLiDfOiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	1
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCTolBrBase::OnUserCommandCalled (WPARAM wParam, LPARAM lParam)
{
	OnCommandCalled(FTGateCmd(wParam), lParam);
	return 1;
} // CFCTolBrBase::OnUserCommandCalled.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnUserInitContents
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiDfKiDgCiDfGiDiHiDjDiPeJjHlJiKnGjAjEiCkKiOmAiNhDiClDiCoKiClNiOjOiBeB_xHqqkZx_
 *			CommandGate_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	1
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCTolBrBase::OnUserInitContents (WPARAM, LPARAM)
{
	OnInitContents();
	return 1;
} // CFCTolBrBase::OnUserInitContents.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnUserObjSelectChanged
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjBeJjBpAiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJ_xHqqkZx_View_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	1
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCTolBrBase::OnUserObjSelectChanged (WPARAM, LPARAM)
{
	OnObjSelectChanged();
	return 1;
} // CFCTolBrBase::OnUserObjSelectChanged.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnUserTextSelectChanged
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjBeJjBpAiCkKjFmPiNfIiClDiCoKiClNiPoKiNiHiBeBiIlNiCkCiCmNiDgFiDeMiDfIiDgHiCmMjBeJjBpAjEmNiImNiCkK_xHqqkZx_
 *			_xZkqqHx_jFmPiNfIiClDiCoKiClNiPoKiNiHiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJ_xHqqkZx_1_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCTolBrBase::OnUserTextSelectChanged (WPARAM wParam, LPARAM lParam)
{
	OnTextSelectChanged();
	return 1;
} // CFCTolBrBase::OnUserTextSelectChanged.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCTolBrBase::OnUserPursuerTextNeedInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiDgCiDhGiDhBiDjDiDgHiCkKiDhBiDjDiDgHiPoOjFpBiCmMjAnNjCoIiCpAjHhGiLiBiClHiCoJiNnLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jFeLiClIiBeB_xHqqkZx_GetCursorPos_xZkqqHx_iKnGjAjEiCmFiDhNiDeFiDfIiImKjChFiCpAiOoGjDlOiClHiCoJiClBiCmGiBeC_xHqqkZx_
 *			_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiCkK_xHqqkZx_WM_MOUSEMOVE_xZkqqHx_iCmJjHiKiCmBiCmEiCkCiCoJiCmGiBeBiDiBiDgKiDiFiBfLjFfMiOkGiOjOiCmIiCmHiCmJ_xHqqkZx_
 *			_xZkqqHx_iDhNiDeFiDfIiImKjChFiCkKiMlLiNnNiCmMiImKjChFiCmGjAeIiCkCiIoBiCmBiCmEiCkCiCoJiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.15 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCTolBrBase::OnUserPursuerTextNeedInfo (WPARAM, LPARAM)
{
	if (g_pReg->GetIsPopupHint() && g_pReg->GetIsPopupToolbarHint())
	//----- _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCmMiDhMiDgCiDhGiDhBiDjDiDgHiCpAjFfMiOkGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDhNiDeFiDfIiDeKiBfLiDfMiDiLiCmMiMlLiNnNiCmMiImKjChFiCpAiBeBiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
		CPoint ptMsc;
		(void)::GetCursorPos(&ptMsc);
		// _xZkqqHx_iDfIiDeOiDiKiBfLiDjDiNmAjFfHiCpAiDeOiDiJiDeDiDeBiDjDiDgHiNmAjFfHiCnGjFmPiKlHiBeC_xHqqkZx_
		ScreenToClient(&ptMsc);

		long lIndex;
		for (lIndex = 0; lIndex != GetCount(); lIndex++)
		{
			CRect rt;
			GetItemRect(lIndex, rt);
			if (rt.PtInRect(ptMsc))
			{
				SetPopHintTargetInfo(GetItemID(lIndex));
			}
		}
	}
	return 1;
} // CFCTolBrBase::OnUserPursuerTextNeedInfo.

int CFCTolBrBase::OnCreate (LPCREATESTRUCT lpCreateStruct)
{
	if (BASE_CLASS::OnCreate(lpCreateStruct) == -1)
		return -1;
	// _xZkqqHx_iDhMiDgCiDhGiDhBiDjDiDgHiCmMiDfOiBfLiDfBiDgCiDgHiCmJjDgPjIfOiBeC_xHqqkZx_
	FFGetApp()->RegisterPopHintTarget(m_hWnd);
	return 0;
} // CFCTolBrBase::OnCreate.

void CFCTolBrBase::OnDestroy ()
{
	// _xZkqqHx_iDhMiDgCiDhGiDhBiDjDiDgHiCmMiDfOiBfLiDfBiDgCiDgHiCkJiCoHjDgPjIfOiJpAiPjMiBeC_xHqqkZx_
	FFGetApp()->UnregisterPopHintTarget(m_hWnd);

	BASE_CLASS::OnDestroy();
} // CFCTolBrBase::OnDestroy.
