// ListCtrlFDA.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "ListCtrlFDA.h"	// This header.

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


/////////////////////////////////////////////////////////////////////////////
// CFCListCtrlFDA

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::CFCListCtrlFDA
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCListCtrlFDA::CFCListCtrlFDA ()
{
	m_lIndexB = -1;				// Item_xZkqqHx_iCmMiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
	// _xZkqqHx_iDfOiDeDiDhNiBfL_xHqqkZx_ID_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_0_xZkqqHx_iCmIiCoHiDfOiDeDiDhNiBfLjCoCiOhOjCiGiBeC_xHqqkZx_
	m_dwTimer = 0;
} // CFCListCtrlFDA::CFCListCtrlFDA.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::~CFCListCtrlFDA
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCListCtrlFDA::~CFCListCtrlFDA ()
{
} // CFCListCtrlFDA::~CFCListCtrlFDA.

BEGIN_MESSAGE_MAP(CFCListCtrlFDA, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCListCtrlFDA)
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	ON_WM_MOUSEMOVE()
	ON_WM_LBUTTONDBLCLK()
	ON_WM_RBUTTONDOWN()
	ON_WM_RBUTTONUP()
	ON_WM_CONTEXTMENU()
	ON_WM_TIMER()
	ON_WM_KEYDOWN()
	ON_WM_INITMENUPOPUP()
	//}}AFX_MSG_MAP
	ON_COMMAND_RANGE(ID_RBTN_ITEM_BEGIN_MARK, ID_RBTN_ITEM_END_MARK, OnRbtnItemAny)
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CFCListCtrlFDA _xZkqqHx_iDiGiBfLiDfFiKnGjAjE_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::ClearContents
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDgFiDjDiDgDiCpAiDeOiDiKiDeBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::ClearContents ()
{
	// _xZkqqHx_iNmEjFgAiJoGiDeBiDeDiDgFiDiAiDeDiDjDiDgGiDgCiDeOiDfIiPfHiNiHiBeC_xHqqkZx_
	m_stRedraw.clear();
	// _xZkqqHx_jBeJjBpAiClDiCoKiClN_xHqqkZx_Item_xZkqqHx_iCmMiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
	m_lIndexB = -1;
	// _xZkqqHx_iDfOiDeDiDhNiBfL_xHqqkZx_ID_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_0_xZkqqHx_iCmIiCoHiDfOiDeDiDhNiBfLjCoCiOhOjCiGiBeC_xHqqkZx_
	m_dwTimer = 0;
	// _xZkqqHx_jBfDiCmEiCmMiDeBiDeDiDgFiDiAiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
	DeleteAllItems();
} // CFCListCtrlFDA::ClearContents.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::InsertItem
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDeDiDjDiDgGiDgCiDeOiDfIiImKjChFiCmJiDeBiDeDiDgFiDiAiCpAjBhNjDpMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwData	:_xZkqqHx_jBhNjDpMiClHiCoJiDgGiBfLiDfOjCgMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jBhNjDpMiMoDiBeBjAfGiLeLiDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCkK_xHqqkZx_lIndex_xZkqqHx_iCmJiCmIiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::InsertItem (long lIndex, DWORD dwData)
{
	int iNewIdx = BASE_CLASS::InsertItem(lIndex, _T(""));
	SetItemData(iNewIdx, dwData);
} // CFCListCtrlFDA::InsertItem.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::GetItemRect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDeDiDjDiDgGiDgCiDeOiDfIiCmMiDeBiDeDiDgFiDiAiCmMiLoJiMgAiNmAjFfHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	rtItem	:_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiLoJiMgAiNmAjFfHiCpAjFnEiClHiBeC_xHqqkZx_
 *			nIndex	:_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::GetItemRect (CRect& rtItem, long lIndex) const
{
	if (lIndex < 0 || GetItemCount() <= lIndex)
	{
		rtItem.SetRect(0, 0, 0, 0);
		return;
	}
	BASE_CLASS::GetItemRect(lIndex, rtItem, LVIR_BOUNDS);
} // CFCListCtrlFDA::GetItemRect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::GetItemHeight
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiNiCiClDiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iNiCiClDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCListCtrlFDA::GetItemHeight () const
{
	CRect rtItem;
	GetItemRect(rtItem, 0);
	return rtItem.Height();
} // CFCListCtrlFDA::GetItemHeight.

//----- 06.11.11 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::UpdateItemSize
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiPoOjFpBiCkKjFmPiNfIiClDiCoKiClNiPoKiNiHiCmJiBeBiNmEiMhGiOfKiBjFjFgAiJoGiClHiCoJiInHiCmJ_xHqqkZx_
// *			_xZkqqHx_iOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	MatrixControl_xZkqqHx_iCmGiIoBiCkCiBeB_xHqqkZx_CListCtrl_xZkqqHx_iCmFiCmNiDeBiDeDiDgFiDiAiCpAjCmHiJmBiBeFiNoNiPjMiClHiCoJiCmG_xHqqkZx_
// *			_xZkqqHx_jBkGiNmAiCmJjElNiJgGiClDiCoKiCoJiCmMiCmFiBeBiClBiCmMiKnGjAjEiCmNjFhDjHhGiBeC_xHqqkZx_CFCMultiControlTmpl_xZkqqHx_jHhA_xHqqkZx_
// *			_xZkqqHx_iDfPiDhOiBfLiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCListCtrlFDA::UpdateItemSize ()
//{
//	Invalidate();
//} // CFCListCtrlFDA::UpdateItemSize.
//----- 06.11.11 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::UpdateScrollSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiPoOjFpBiCkKjFmPiNfIiClDiCoKiClNiPoKiNiHiCmJiBeBiNmEiMhGiOfKiBjFjFgAiJoGiClHiCoJiInHiCmJ_xHqqkZx_
 *			_xZkqqHx_iOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	MatrixControl_xZkqqHx_iCmGiIoBiCkCiBeB_xHqqkZx_CListCtrl_xZkqqHx_iCmFiCmNiDeBiDeDiDgFiDiAiCpAjCmHiJmBiBeFiNoNiPjMiClHiCoJiCmG_xHqqkZx_
 *			_xZkqqHx_jBkGiNmAiCmJjElNiJgGiClDiCoKiCoJiCmMiCmFiBeBiClBiCmMiKnGjAjEiCmNjFhDjHhGiBeC_xHqqkZx_CFCMultiControlTmpl_xZkqqHx_jHhA_xHqqkZx_
 *			_xZkqqHx_iDfPiDhOiBfLiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::UpdateScrollSize (BOOL bUpdateWindow)
{
	if (bUpdateWindow)
		Invalidate();
} // CFCListCtrlFDA::UpdateScrollSize.
//----- 06.11.11 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::ItemDataToIndex
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDgGiBfLiDfOiCpAiOjNiCmCiDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwData	:_xZkqqHx_iDgGiBfLiDfOjCgMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDeBiDeDiDgFiDiAiDeDiDjDiDgGiDgCiDeOiDfIiBeCiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ -1_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jDkPiClGiDgGiBfLiDfOjCgMiCpAiOjNiCmCiDeBiDeDiDgFiDiAiCkKjDpBiCmCiImIiPoDiCkAiCoJiPoKiNiHiCmNiBeBiNmFiPiJiCmM_xHqqkZx_
 *			_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCListCtrlFDA::ItemDataToIndex (DWORD dwData) const
{
	for (long lIndex = 0; lIndex < GetItemCount(); lIndex++)
		if (GetItemData(lIndex) == dwData) return lIndex;
	return -1;
} // CFCListCtrlFDA::ItemDataToIndex.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::GetCurSel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNjBeJjBpAiClDiCoKiCmEiCkCiCoJiDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jCfAjDmGjBeJjBpAiCmMiOjOiCmJiOgHjHhAiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iMlLiNnNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCmGiBeBjBeJjBpAiDeBiDeDiDgFiDiAiCmNiInJiCmIiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCListCtrlFDA::GetCurSel () const
{
	return GetIndexA();
} // CFCListCtrlFDA::GetCurSel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::SetCurSel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNjBeJjBpAiClDiCoKiCmEiCkCiCoJiDeBiDeDiDgFiDiAiCmMjBeJjBpAiCpAiJpAiPjMiClFiBeBiOhHjCoIiClDiCoKiClN_xHqqkZx_
 *			_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiCmMiDeBiDeDiDgFiDiAiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeCjDkPiOjOiCmJiMlLiNnNiCmM_xHqqkZx_
 *			_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiCoAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lSel	:_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bScroll	:_xZkqqHx_jBeJjBpAiClDiCoKiClNiDeBiDeDiDgFiDiAiCkKiMkJiCkGiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJiPoKiNiH_xHqqkZx_
 *					 _xZkqqHx_iCmN_xHqqkZx_ TRUE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			bPostMessage:_xZkqqHx_jFmPiNfIjCmKjCgNiDiBiDgCiDfKiBfLiDfHiCpAiDhMiDfIiDgHiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiCmFiCkLiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBiCmFiCkLiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ FALSE_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jCfAjDmGjBeJjBpAiCmMiOjOiCmJiOgHjHhAiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iMlLiNnNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCmGiBeBjBeJjBpAiDeBiDeDiDgFiDiAiCmNiInJiCmIiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCListCtrlFDA::SetCurSel (long lSel, BOOL bScroll, BOOL bPostMessage)
{
	// _xZkqqHx_jAfGiClFiCkCjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	if (!SetIndexAB(lSel, lSel, bScroll, bPostMessage)) return FALSE;
	// Create_xZkqqHx_jBePiCmMiPoKiNiHiBeC_xHqqkZx_
	if (GetSafeHwnd() == NULL) return TRUE;
	// _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAiPmBiLiOiBeC_xHqqkZx_
	SetAllSelectionMark(FALSE);
	// _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjAnNjCoIiBeC_xHqqkZx_
	if (0 <= lSel) SetSelectionMark(lSel);
	// _xZkqqHx_jFmPiNfIiClDiCoKiClNiDeBiDeDiDgFiDiAiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
	SendRgnRedraw();
	return TRUE;
} // CFCListCtrlFDA::SetCurSel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::SetSelect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMjEmNiImNiCpAjBfDiCmEjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeCiDeDiDjDiDgGiDgCiDeOiDfI_xHqqkZx_A_xZkqqHx_iBeBiDeDiDjDiDgGiDgCiDeOiDfI_xHqqkZx_B
 *			_xZkqqHx_iCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndexA	:_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfI_xHqqkZx_A_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			lIndexB	:_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfI_xHqqkZx_B_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			bScroll	:_xZkqqHx_jBeJjBpAiClDiCoKiClNiDeBiDeDiDgFiDiAiCkKiMkJiCkGiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJiPoKiNiH_xHqqkZx_
 *					 _xZkqqHx_iCmN_xHqqkZx_ TRUE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			bPostMessage:_xZkqqHx_jFmPiNfIjCmKjCgNiDiBiDgCiDfKiBfLiDfHiCpAiDhMiDfIiDgHiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiCmFiCkLiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBiCmFiCkLiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ FALSE_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMjBeJjBpAiCpAjBfDiCmEiJpAiPjMiClFiBeB_xHqqkZx_[lIndexA, lIndexB]_xZkqqHx_iCmMjEmNiImNiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCListCtrlFDA::SetSelect (long lIndexA, long lIndexB, BOOL bScroll, BOOL bPostMessage)
{
	// _xZkqqHx_jAfGiClFiCkCjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	if (!SetIndexAB(lIndexA, lIndexB, bScroll, bPostMessage)) return FALSE;
	// Create_xZkqqHx_jBePiCmMiPoKiNiHiBeC_xHqqkZx_
	if (GetSafeHwnd() == NULL) return TRUE;
	// _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAiPmBiLiOiBeC_xHqqkZx_
	SetAllSelectionMark(FALSE);
	long lFirst  = GetIndexA();
	long lLast = GetIndexB();
	if (lLast < lFirst) Exchange(lLast, lFirst);
	// _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjAnNjCoIiBeC_xHqqkZx_
	for (long lIndex = lFirst; lIndex <= lLast; lIndex++)
		SetSelectionMark(lIndex);
	// _xZkqqHx_jFmPiNfIiClDiCoKiClNiDeBiDeDiDgFiDiAiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
	SendRgnRedraw();
	return TRUE;
} // CFCListCtrlFDA::SetSelect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::DeleteItem
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDeBiDeDiDgFiDiAiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iNoNiPjMiClHiCoJiDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::DeleteItem (long lIndex)
{
	long lIndexA = GetIndexA();
	long lIndexB = GetIndexB();
	if (lIndex < lIndexA) lIndexA--;
	if (lIndex < lIndexB) lIndexB--;
	BASE_CLASS::DeleteItem(lIndex);
	if (GetItemCount() <= lIndexA) lIndexA = GetItemCount() - 1;
	if (GetItemCount() <= lIndexB) lIndexB = GetItemCount() - 1;
	SetIndexAB(lIndexA, lIndexA, FALSE, lIndexA != GetIndexA());
} // CFCListCtrlFDA::DeleteItem.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::SetAllSelectionMark
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBfDiCmEiCmMiDeBiDeDiDgFiDiAiCmMjBeJjBpAiDhNiBfLiDeOiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bIsSet	:_xZkqqHx_jBeJjBpAiCmIiCoH_xHqqkZx_ TRUE_xZkqqHx_iBeBjBeJjBpAiJpAiPjMiCmIiCoH_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::SetAllSelectionMark (BOOL bIsSet)
{
	for (long lIndex = 0; lIndex < GetItemCount(); lIndex++)
		SetSelectionMark(lIndex, bIsSet);
} // CFCListCtrlFDA::SetAllSelectionMark.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::IsSelectionMark
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDeBiDeDiDgFiDiAiCkKjBeJjBpAjCiGiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jBeJjBpAjCiGiCmIiCoHiCmO_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCListCtrlFDA::IsSelectionMark (long lIndex) const
{
	return (GetItemState(lIndex, LVIS_SELECTED) == LVIS_SELECTED) ? TRUE : FALSE;
} // CFCListCtrlFDA::IsSelectionMark.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::SetSelectionMark
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCmMiDeBiDeDiDgFiDiAiCmMjBeJjBpAiDhNiBfLiDeOiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bSet	:_xZkqqHx_jBeJjBpAiCmIiCoH_xHqqkZx_ TRUE_xZkqqHx_iBeBjBeJjBpAiJpAiPjMiCmIiCoH_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::SetSelectionMark (long lIndex, BOOL bSet)
{
	if (bSet)
	{
		if (!IsSelectionMark(lIndex))
		{
			// _xZkqqHx_iDeBiDeDiDgFiDiAiCmMjBeJjBpAiCpAjAnNjCoIiBeC_xHqqkZx_
			SetItemState(lIndex, LVIS_SELECTED, LVIS_SELECTED);
			SetRedrawMark(lIndex);
		}
	} else
	{
		if (IsSelectionMark(lIndex))
		{
			// _xZkqqHx_iDeBiDeDiDgFiDiAiCmMjBeJjBpAiCpAiJpAiPjMiBeC_xHqqkZx_
			SetItemState(lIndex, 0, LVIS_SELECTED);
			SetRedrawMark(lIndex);
		}
	}
} // CFCListCtrlFDA::SetSelectionMark.

//----- 06.02.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnUpdatePopupMenu
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiDgCiDhGiDeBiDgCiDhGiDiBiDgKiDiFiBfLiDeBiDeDiDgFiDiAiCmMjHeMiMpIjAkLiCpAiDgAiDeGiDgCiDeOiClFiBeB_xHqqkZx_
// *			_xZkqqHx_jGlDiMpIiCmMiDfCiDhNiDjDiDgIiCmNiDePiDiMiBfLiBjFjGlDiMpIiJlLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pMenu	:_xZkqqHx_iDhMiDgCiDhGiDeBiDgCiDhGiDiBiDgKiDiFiBfLiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCListCtrlFDA::OnUpdatePopupMenu (CMenu* pMenu) const
//{
//#ifndef _DEBUG
//_xZkqqHx_iClBiCmMiKnGjAjEiCmNiBeBiNoNiPjMiCmFiCkLiCoJiCmMiCmFiCmNiBeI_xHqqkZx_
//CFCCtlBrHTree::OnCmdMsg_xZkqqHx_iCmG_xHqqkZx_CFCWndHistoryTree_xZkqqHx_iCmMiDfCiDhNiDjDiDgIiPiIjHjNiCpAiOfBiPmGiBeC_xHqqkZx_
//#endif//_DEBUG
//} // CFCListCtrlFDA::OnUpdatePopupMenu.
//----- 06.02.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::PointToIndex
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJoGjGmKiPoDiCmMiDhMiDeDiDjDiDgHiNmAjFfHiCpAiDeBiDeDiDgFiDiAiDeDiDjDiDgGiDgCiDeOiDfIiCmJjFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	point	:_xZkqqHx_iNmAjFfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiBeCiDhMiDeDiDjDiDgHiCkKiDeBiDeDiDgFiDiAiPoDiCmJjGlDiCkCiPoKiNiHiCmN_xHqqkZx_ -1_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCListCtrlFDA::PointToIndex (const CPoint& point) const
{
	long lIndex;
	PointToColumn(&lIndex, point);
	return lIndex;
} // CFCListCtrlFDA::PointToIndex.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::PointToColumn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJoGjGmKiPoDiCmMiDhMiDeDiDjDiDgHiNmAjFfHiCpAiDeKiDiJiDiAiDeDiDjDiDgGiDgCiDeOiDfIiCmGiDeBiDeDiDgFiDiAiDeDiDjDiDgGiDgCiDeOiDfIiCmJ_xHqqkZx_
 *			_xZkqqHx_jFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeCjFhDjHhGiCmIiCoHiCmO_xHqqkZx_ NULL _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iNmAjFfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDeKiDiJiDiAiDeDiDjDiDgGiDgCiDeOiDfIiBeCiDhMiDeDiDjDiDgHiCkKiDeBiDeDiDgFiDiAiPoDiCmJjGlDiCkCiPoKiNiHiCmN_xHqqkZx_ -1_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCListCtrlFDA::PointToColumn (long* lIndex, const CPoint& point) const
{
	LVHITTESTINFO info;
	info.pt = point;
	// const _xZkqqHx_iCmJiClHiCoJiClNiCnPiBeB_xHqqkZx_this_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
	int iItem = ((CListCtrl*)this)->SubItemHitTest(&info);
	if (lIndex != NULL) *lIndex = iItem;
	return info.iSubItem;
} // CFCListCtrlFDA::PointToColumn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::IsFrontOfRect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiNmAjFfHiCkKiBeBiLoJiMgAiCmMjBePjElMiCmJiCkAiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	rt	:_xZkqqHx_iLoJiMgAiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pt	:_xZkqqHx_iNmAjFfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iLoJiMgAiCmMjBePjElMiCmJiCkAiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDeBiDeDiDgFiDiAiCkKiDhNiDgHiDiKiDgCiDeOiDfIiPpDiCmJjFmAiCnEiPoKiNiHiCmNiBeBjBePjElMiCmNiLoJiMgAiNlGjBkEiClOiCkKiBeB_xHqqkZx_
 *			_xZkqqHx_iDiKiDfIiDgHiPpDiCmJjFmAiCnEiPoKiNiHiCmNiBeBjBePjElMiCmNiLoJiMgAiPoDjBkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCListCtrlFDA::IsFrontOfRect (const CRect& rt, const CPoint& pt) const
{
	return (pt.y < (rt.top + rt.bottom) / 2);
} // CFCListCtrlFDA::IsFrontOfRect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::IsOnSelectedItem
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDhNiDeFiDfIiImKjChFiCmMiDeBiDeDiDgFiDiAiCkKjBeJjBpAjCiGiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ptMsc	:_xZkqqHx_iDhNiDeFiDfIiImKjChFiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jBeJjBpAjCiGiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCListCtrlFDA::IsOnSelectedItem (const CPoint& ptMsc) const
{
	long lIndex = PointToIndex(ptMsc);
	if (lIndex < 0) return FALSE;
	return IsSelectionMark(lIndex) ? TRUE : FALSE;
} // CFCListCtrlFDA::IsOnSelectedItem.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::IsCutMark
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDeBiDeDiDgFiDiAiCkKiDeKiDgCiDgHjCiGiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDeKiDgCiDgHjCiGiCmIiCoHiCmO_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCListCtrlFDA::IsCutMark (long lIndex) const
{
	return (GetItemState(lIndex, LVIS_CUT) == LVIS_CUT) ? TRUE : FALSE;
} // CFCListCtrlFDA::IsCutMark.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::SetCutMark
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCmMiDeBiDeDiDgFiDiAiCmMiDeKiDgCiDgHiDhNiBfLiDeOiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bSet	:_xZkqqHx_iDeKiDgCiDgHiCmIiCoH_xHqqkZx_ TRUE_xZkqqHx_iBeBiDeKiDgCiDgHiJpAiPjMiCmIiCoH_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::SetCutMark (long lIndex, BOOL bSet)
{
	if (bSet)
		SetItemState(lIndex, LVIS_CUT, LVIS_CUT);
	else
		SetItemState(lIndex, 0, LVIS_CUT);
} // CFCListCtrlFDA::SetCutMark.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::IsRedrawMark
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDeBiDeDiDgFiDiAiCkKiNmEjFgAiJoGiDhNiBfLiDeOjAnNjCoIjCiGiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iNmEjFgAiJoGiDhNiBfLiDeOjAnNjCoIjCiGiCmIiCoHiCmO_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCListCtrlFDA::IsRedrawMark (long lIndex) const
{
	return (m_stRedraw.find(lIndex) != m_stRedraw.end());
} // CFCListCtrlFDA::IsRedrawMark.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::SetRedrawMark
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCmMiDeBiDeDiDgFiDiAiCmMiNmEjFgAiJoGiDhNiBfLiDeOiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bSet	:_xZkqqHx_iNmEjFgAiJoGiDhNiBfLiDeOjAnNjCoIiCmIiCoH_xHqqkZx_ TRUE_xZkqqHx_iBeBiNmEjFgAiJoGiDhNiBfLiDeOiJpAiPjMiCmIiCoH_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::SetRedrawMark (long lIndex, BOOL bSet)
{
	if (bSet)
		m_stRedraw.insert(lIndex);
	else
		m_stRedraw.erase(lIndex);
} // CFCListCtrlFDA::SetRedrawMark.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::PostSelChangeMessage
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgCiDfKiBfLiDfHjBjHjAeNjAoGiDeFiDeCiDjDiDgIiDeFiCmJiBeBiDeBiDeDiDgFiDiAiCmMjBeJjBpAiCkKjFmPiNfIiClDiCoKiClN_xHqqkZx_
 *			_xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAiDhMiDfIiDgHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::PostSelChangeMessage ()
{
	GetParent()->PostMessage(WM_USER_LISTCTRL_SELCHANGED,
							(WPARAM)GetDlgCtrlID(), (LPARAM)GetIndexA());
} // CFCListCtrlFDA::PostSelChangeMessage.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::PostLBtnDblClkMessage
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgCiDfKiBfLiDfHjBjHjAeNjAoGiDeFiDeCiDjDiDgIiDeFiCmJiBeBiDeBiDeDiDgFiDiAiCkKiDfPiDhFiDiLiDeOiDiKiDgCiDeOiClDiCoKiClN_xHqqkZx_
 *			_xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAiDhMiDfIiDgHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::PostLBtnDblClkMessage ()
{
	GetParent()->PostMessage(WM_USER_LISTCTRL_LBTN_DBLCLKED,
							(WPARAM)GetDlgCtrlID(), (LPARAM)GetIndexA());
} // CFCListCtrlFDA::PostLBtnDblClkMessage.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OffsetScroll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiImKjChFiCkJiCoHiBeBiOhHjCoIiClDiCoKiClNjHmKiClOiCkPiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lScroll	:_xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmKiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDfIiDeOiDiNiBfLiDiLiCkKiPoDiJlKiCmMiMmAiKeFiCpAiCmNiCnNiPgPiClDiCmIiCkCiCoGiCkEiCmJjClCjAkOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OffsetScroll (long lScroll)
{
	Scroll(CSize(0, -GetItemHeight() * lScroll));
} // CFCListCtrlFDA::OffsetScroll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::GetIndexA
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCmGiBeBjBeJjBpAiDeBiDeDiDgFiDiAiCmNiInJiCmIiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCListCtrlFDA::GetIndexA () const
{
	return ((CListCtrl*)this)->GetHotItem();
} // CFCListCtrlFDA::GetIndexA.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::GetIndexB
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCmGiBeBjBeJjBpAiDeBiDeDiDgFiDiAiCmNiInJiCmIiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCListCtrlFDA::GetIndexB () const
{
	return m_lIndexB;
} // CFCListCtrlFDA::GetIndexB.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::SetIndexAB
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndexA	:_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfI_xHqqkZx_A_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			lIndexB	:_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfI_xHqqkZx_B_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			bScroll	:_xZkqqHx_jBeJjBpAiClDiCoKiClNiDeBiDeDiDgFiDiAiCkKiMkJiCkGiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJiPoKiNiH_xHqqkZx_
 *					 _xZkqqHx_iCmN_xHqqkZx_ TRUE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			bPostMessage:_xZkqqHx_jFmPiNfIjCmKjCgNiDiBiDgCiDfKiBfLiDfHiCpAiDhMiDfIiDgHiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiCmFiCkLiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBiCmFiCkLiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ FALSE_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCmGiBeBjBeJjBpAiDeBiDeDiDgFiDiAiCmNiInJiCmIiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCListCtrlFDA::SetIndexAB (long lIndexA, long lIndexB, BOOL bScroll, BOOL bPostMessage)
{
	if (lIndexA < -1 || GetItemCount() <= lIndexA) return FALSE;
	if (lIndexB < -1 || GetItemCount() <= lIndexB) return FALSE;
	// _xZkqqHx_jAfGiClFiCkCjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	SetHotItem(lIndexA);
	m_lIndexB = lIndexB;
	// Create_xZkqqHx_jBePiCmMiPoKiNiHiBeC_xHqqkZx_
	if (GetSafeHwnd() == NULL) return TRUE;
	if (bScroll && 0 <= lIndexA)
	{
		long lTopIdx = GetTopIndex();
		long lBtmIdx = lTopIdx + GetCountPerPage();
		if (lIndexA < lTopIdx)
			OffsetScroll(lTopIdx - lIndexA);
		else
		if (lBtmIdx < lIndexA)
			OffsetScroll(lBtmIdx - lIndexA);
	}
	if (bPostMessage)
	{
		if (GetParent() != NULL)
		{
			GetParent()->PostMessage(WM_USER_LISTCTRL_SELCHANGED,
									(WPARAM)GetDlgCtrlID(), (LPARAM)lIndexA);
		}
	}
	return TRUE;
} // CFCListCtrlFDA::SetIndexAB.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::RgnRedraw
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNmEjFgAiJoGiDhNiBfLiDeOiCmMjFhEiCkCiClNiDeBiDeDiDgFiDiAiCpAiNmEjFgAiJoGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::SendRgnRedraw ()
{
	long lFirst = -1;
	long lLast = -1;
	for (long lIndex = 0; lIndex < GetItemCount(); lIndex++)
	{
		if (IsRedrawMark(lIndex))
		{
			lFirst = lIndex;
			lLast = lIndex;
			for (lIndex++; lIndex < GetItemCount(); lIndex++)
			{
				if (IsRedrawMark(lIndex))
					lLast = lIndex;
			}
		}
	}
	if (0 <= lFirst)
		RedrawItems(lFirst, lLast);
	// _xZkqqHx_iNmEjFgAiJoGiDhNiBfLiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
	m_stRedraw.clear();
} // CFCListCtrlFDA::SendRgnRedraw.

//----- 06.11.11 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::GetPixelOf1Scroll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OffsetScroll_xZkqqHx_iKnGjAjEiCmFiOhHjCoIiClDiCoKiCoJiCfAiDfIiDeOiDiNiBfLiDiLiCmFiDfIiDeOiDiNiBfLiDiLiClDiCoKiCoJ_xHqqkZx_
 *			_xZkqqHx_iDhDiDeOiDfKiDiLjAjEiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhDiDeOiDfKiDiLjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.11.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCListCtrlFDA::GetPixelOf1Scroll () const
{
	return GetItemHeight();
} // CFCListCtrlFDA::GetPixelOf1Scroll.
//----- 06.11.11 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCListCtrlFDA _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnLButtonDown
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiNlGiDhLiDfOiDjDiCkKiJjPiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLiCmMiPpDjBnEjDjJiCpAiOkGiClHiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiBeCjFkIjHjNiNmAjFfHiMgOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnLButtonDown (UINT nFlags, CPoint point)
{
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNiBeC_xHqqkZx_
	OnMsEvent(GetCurrentMessage()->message, point, nFlags);
} // CFCListCtrlFDA::OnLButtonDown.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnLButtonUp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiNlGiDhLiDfOiDjDiCkKjHkDiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLiCmMiPpDjBnEjDjJiCpAiOkGiClHiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiBeCjFkIjHjNiNmAjFfHiMgOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnLButtonUp (UINT nFlags, CPoint point)
{
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNiBeC_xHqqkZx_
	OnMsEvent(GetCurrentMessage()->message, point, nFlags);
} // CFCListCtrlFDA::OnLButtonUp.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnRButtonDown
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiJeFiDhLiDfOiDjDiCpAiJjPiClFiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLiCmMiPpDjBnEjDjJiCpAiOkGiClHiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiBeCjFkIjHjNiNmAjFfHiMgOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnRButtonDown (UINT nFlags, CPoint point)
{
	// _xZkqqHx_iClBiClBiCmF_xHqqkZx_Superclass::OnRButtonDown_xZkqqHx_iCpAiMmEiCpBiCmFiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
	// CListCtrl_xZkqqHx_iCmNiBeB_xHqqkZx_OnRButtonDown_xZkqqHx_jCiGiCmF_xHqqkZx_OnRButtonUp_xZkqqHx_iCmMjBnCiClPiPiIjHjNiCpA_xHqqkZx_
	// _xZkqqHx_iNhDiCkEiClNiCnPiBeB_xHqqkZx_OnRButtonUp_xZkqqHx_iCkKiOmAiNhDiClDiCoKiCmIiCkCiBeC_xHqqkZx_
	// CListCtrl::OnRButtonDown_xZkqqHx_iCmNiBeBjBeJjBpAiDeBiDeDiDgFiDiAiCmMjFmPiNfIiBhL_xHqqkZx_
	// OnRButtonUp_xZkqqHx_iCmMiPiIjHjNiBeC_xHqqkZx_CListCtrl::OnRButtonUp_xZkqqHx_iCmN_xHqqkZx_ ContextMenu_xZkqqHx_iPiIjHjNiBeB_xHqqkZx_
	// _xZkqqHx_iCpAiOmAiNhDiClHiCoJiCmMiCmFiBeB_xHqqkZx_OnRButtonDown/OnRButtonUp_xZkqqHx_iCkCiClIiCoKiCkJiCpAiMmEiCnHiCmOiCoGiCkCiBeC_xHqqkZx_
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNiBeC_xHqqkZx_
	OnMsEvent(GetCurrentMessage()->message, point, nFlags);
} // CFCListCtrlFDA::OnRButtonDown.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnRButtonUp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiJeFiDhLiDfOiDjDiCpAjHkDiClFiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLiCmMiPpDjBnEjDjJiCpAiOkGiClHiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiBeCjFkIjHjNiNmAjFfHiMgOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnRButtonUp (UINT nFlags, CPoint point)
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnRButtonUp(nFlags, point);
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNiBeC_xHqqkZx_
	OnMsEvent(GetCurrentMessage()->message, point, nFlags);
} // CFCListCtrlFDA::OnRButtonUp.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnLButtonDblClk
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiNlGiDhLiDfOiDjDiCpAiDfPiDhFiDiLiDeOiDiKiDgCiDeOiClFiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLiCmMiPpDjBnEjDjJiCpAiOkGiClHiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiBeCjFkIjHjNiNmAjFfHiMgOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnLButtonDblClk (UINT nFlags, CPoint point)
{
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNiBeC_xHqqkZx_
	OnMsEvent(GetCurrentMessage()->message, point, nFlags);
} // CFCListCtrlFDA::OnLButtonDblClk.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnMouseMove
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiCkKiInKjDkOiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLiCmMiPpDjBnEjDjJiCpAiOkGiClHiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiBeCjFkIjHjNiNmAjFfHiMgOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnMouseMove (UINT nFlags, CPoint point)
{
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNiBeC_xHqqkZx_
	OnMsEvent(GetCurrentMessage()->message, point, nFlags);
} // CFCListCtrlFDA::OnMouseMove.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnContextMenu
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJeFiDhLiDfOiDjDiDeOiDiKiDgCiDeOiBeBiIlNiCkCiCmNiDiBiDgKiDiFiBfLiDeMiBfLiCmJiCoGiCmBiCmEiLeOjDkOiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJeFiDhLiDfOiDjDiDeOiDiKiDgCiDeOiCmFiMmEiCnBiPgPiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pWnd	:_xZkqqHx_iJeFiDhLiDfOiDjDiCkKiDeOiDiKiDgCiDeOiClDiCoKiClNiDeFiDeCiDjDiDgIiDeFiCmMiDgOiDjDiDgIiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iDeOiDiKiDgCiDeOiClFiClNiNmAjFfHiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgKiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnContextMenu (CWnd* pWnd, CPoint point)
{
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNiBeC_xHqqkZx_
	OnMsEvent(GetCurrentMessage()->message, point, 0);
} // CFCListCtrlFDA::OnContextMenu.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnTimer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfOiDeDiDhNiBfLiDeDiDhIiDjDiDgHiCmJiCoGiCmBiCmEiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nIDEvent	:_xZkqqHx_iDfOiDeDiDhNiBfL_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnTimer (UINT nIDEvent)
{
	// _xZkqqHx_iDfOiDeDiDhNiBfLiDeDiDhIiDjDiDgHiPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
	if (nIDEvent == m_dwTimer)
		TimerEvent(nIDEvent);
	else
		BASE_CLASS::OnTimer(nIDEvent);
		// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
} // CFCListCtrlFDA::OnTimer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnKeyDown
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeMiBfLiCkKiJjPiClDiCoKiClNiCmGiCkLiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	CListCtrl::OnKeyDown_xZkqqHx_iCmJjEeDiClJiCmEiCkCiClNiCkKiBeB_xHqqkZx_HotItem_xZkqqHx_iCkKiDhNiDeFiDfIiCmJiCoGiCoJ_xHqqkZx_
 *			_xZkqqHx_jBiAiNoMiCmGjAeIiCkCiIoBiCkCiCkKjAlGiClGiCoJiClNiCnPiBeBiOkJjHmNiCmFiPiIjHjNiClHiCoJiClBiCmGiCmJiClFiClNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
{
	// _xZkqqHx_iDeBiDeDiDgFiDiAiCkKjGlDiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (GetItemCount() == 0) return;
	long lIndexA = GetIndexA();
	if (lIndexA == -1) lIndexA = 0;
	long lIndexB = GetIndexB();
	if (lIndexB == -1) lIndexB = 0;
	long lNewIdx;
	switch (nChar)
	{
	case VK_UP:
		lNewIdx = lIndexA - 1;
		break;
	case VK_DOWN:
		lNewIdx = lIndexA + 1;
		break;
	case VK_PRIOR:
	  {
		CRect rtClient;
		GetClientRect(&rtClient);
		lNewIdx = lIndexA - (rtClient.Height() / GetItemHeight());
		break;
	  }
	case VK_NEXT:
	  {
		CRect rtClient;
		GetClientRect(&rtClient);
		lNewIdx = lIndexA + (rtClient.Height() / GetItemHeight());
		break;
	  }
	default:
		OnKyEvent(GetCurrentMessage()->message, nChar, nFlags);
		return;
	}
	if (lNewIdx < 0) lNewIdx = 0;
	if (GetItemCount() <= lNewIdx) lNewIdx = GetItemCount() - 1;
	// _xZkqqHx_iDfGiDhEiDgHiDeMiBfLiCmMiPoKiNiHiCmNjEmNiImNjBeJjBpAiBeC_xHqqkZx_
	if (GetKeyState(VK_SHIFT) < 0)
		SetSelect(lNewIdx, lIndexB, TRUE, TRUE);
	else
		SetCurSel(lNewIdx, TRUE, TRUE);
} // CFCListCtrlFDA::OnKeyDown.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnRbtnItemAny
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeBiDeDiDgFiDiAiCmM_xHqqkZx_XX_xZkqqHx_iBhGiCmMiCkCiClIiCoKiCkJiCoHiCkJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCListCtrlFDA::OnRbtnItemAny (UINT nCmdID)
{
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNiBeC_xHqqkZx_
	OnCmEvent(GetCurrentMessage()->wParam);
} // CFCListCtrlFDA::OnRbtnItemAny.

//----- 06.02.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCListCtrlFDA::OnInitMenuPopup
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiDgCiDhGiDeBiDgCiDhGiDiBiDgKiDiFiBfLiCkKiDeBiDeOiDgFiDeCiDhFiCmJiCmIiCoJjClMjBePiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pPopupMenu	:_xZkqqHx_iDiBiDgKiDiFiBfLiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *			nIndex		:_xZkqqHx_iDhMiDgCiDhGiDeBiDgCiDhGiDiBiDgKiDiFiBfLiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
// *			bSysMenu	:_xZkqqHx_iDhMiDgCiDhGiDeBiDgCiDhGiDiBiDgKiDiFiBfLiCkKiDfCiDjDiDgHiDiNiBfLiDiLiDiBiDgKiDiFiBfLiCmMiPoKiNiHiCmN_xHqqkZx_
// *						 TRUE _xZkqqHx_iCpAiBeBiClLiCoKiImIiKePiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCListCtrlFDA::OnInitMenuPopup (CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu)
//{
//#ifndef _DEBUG
//_xZkqqHx_iClBiCmMiKnGjAjEiCmNiBeBiNoNiPjMiCmFiCkLiCoJiCmMiCmFiCmNiBeI_xHqqkZx_
//CFCCtlBrHTree::OnCmdMsg_xZkqqHx_iCmG_xHqqkZx_CFCWndHistoryTree_xZkqqHx_iCmMiDfCiDhNiDjDiDgIiPiIjHjNiCpAiOfBiPmGiBeC_xHqqkZx_
//#endif//_DEBUG
//
//	TRACE(_T("CFCListCtrlFDA::OnInitMenuPopup %d\r\n"), nIndex);
//	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
//	BASE_CLASS::OnInitMenuPopup(pPopupMenu, nIndex, bSysMenu);
//	OnUpdatePopupMenu(pPopupMenu);
//} // CFCListCtrlFDA::OnInitMenuPopup.
//----- 06.02.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
