// DlgDsmBookmark.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "HistViewDoc.h"		// For FFHistViewDoc().
#include "FrameWnd.h"			// For FFGetMainWnd().
#include "FoundDoc.h"			// g_pDoc.
#include "UtilDlg.h"			// For SetUnitString.etc.
#include "RegData.h"			// For g_pReg.
#include "PursuerText.h"		// For CFCPursuerText.
#include "DlgDsmBookmark.h"		// This header.

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

/////////////////////////////////////////////////////////////////////////////
// CFCDlgDsmBookmark _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::CFCDlgDsmBookmark
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDhEiDeIiDiLiDgHiDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDiCiBfLiDgIiDiMiDfIiDfPiDeDiDeBiDiNiDePjAoKjHhAiCmMiDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCDlgDsmBookmark::CFCDlgDsmBookmark ()
	: BASE_CLASS()
{
} // CFCDlgDsmBookmark::CFCDlgDsmBookmark.


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

BEGIN_MESSAGE_MAP(CFCDlgDsmBookmark, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDlgDsmBookmark)
	ON_WM_SIZE()
	ON_WM_DESTROY()
	ON_BN_CLICKED(IDC_BSB_BTN_JUMP_TO_DSM, OnBsbBtnJumpToDsm)
	ON_BN_CLICKED(IDC_BSB_BTN_APPEND_DSM, OnBsbBtnAppendDsm)
	ON_BN_CLICKED(IDC_BSB_BTN_REMOVE_DSM, OnBsbBtnRemoveDsm)
	ON_LBN_DBLCLK(IDC_BSB_LST_BOOKMARK, OnDblclkBsbLstBookmark)
	//}}AFX_MSG_MAP
	ON_MESSAGE(WM_USER_PURSUER_TEXT_NEED_INFO, OnUserPursuerTextNeedInfo)
	ON_WM_GETMINMAXINFO()
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDlgDsmBookmark _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::UpdateList
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFfMiOkGiDiKiDfIiDgHiCpAiNfIjAfGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::UpdateList ()
{
	//----- _xZkqqHx_iMiLiJmKjFfMiOkGiDiKiDfIiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmMjAnNjCoI_xHqqkZx_ -----
	CListBox* pCtrl = reinterpret_cast<CListBox*>(GetDlgItem(IDC_BSB_LST_BOOKMARK));
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	pCtrl->ResetContent();
	for (int iC = 0; iC < FFHistViewDoc()->GetDsmSize(); iC++)
	{
		const FCDsmRec* pDsmRec = FFHistViewDoc()->GetDsmRec(iC);
		WString wstrText;
		wstrText.Format(L"%s Ver %s (%I64d) %s",
						WString(pDsmRec->m_hstrDocumentTitle).c_str(),		// _xZkqqHx_jHjKjHpAjFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
						WString(pDsmRec->m_hstrDocumentVersion).c_str(),	// _xZkqqHx_jHjKjHpAjFlGiPjBiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
						pDsmRec->m_fliSessionIndex,							// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
						WString(pDsmRec->m_hstrProjectTitle).c_str());		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
		pCtrl->AddString(WStrToTStr(wstrText));
	}
} // CFCDlgDsmBookmark::UpdateList.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::GetCurSel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiDfIiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmMiMlLiNnNiCmMjBeJjBpAiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiDeDiDjDiDgGiDgCiDeOiDfIiBeCjBeJjBpAiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ -1_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCDlgDsmBookmark::GetCurSel () const
{
	CListBox* pCtrl = (CListBox*)GetDlgItem(IDC_BSB_LST_BOOKMARK);
	return pCtrl->GetCurSel();
} // CFCDlgDsmBookmark::GetCurSel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::SetCurSel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiDfIiDgHiDfCiDjDiDgHiDiNiBfLiDiLiCmMiMlLiNnNiCmMjBeJjBpAiDeDiDjDiDgGiDgCiDeOiDfIiCpAjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::SetCurSel (long lIndex)
{
	CListBox* pCtrl = (CListBox*)GetDlgItem(IDC_BSB_LST_BOOKMARK);
	pCtrl->SetCurSel(lIndex);
} // CFCDlgDsmBookmark::SetCurSel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::GetCount
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiMiLiJmKiCmMjAjEiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiMiLiJmKiCmMjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCDlgDsmBookmark::GetCount () const
{
	CListBox* pCtrl = (CListBox*)GetDlgItem(IDC_BSB_LST_BOOKMARK);
	return pCtrl->GetCount();
} // CFCDlgDsmBookmark::GetCount.

/////////////////////////////////////////////////////////////////////////////
// CFCDlgDsmBookmark _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiPiJiKpKiJlLiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmJiDhEiDeIiBfLiDeKiDfIiCpAjAnNjCoIiClFiCmIiCkCiCmGiCkLiBeBjGnPiCoIjCgMiCmN_xHqqkZx_ TRUE _xZkqqHx_iCmGiCmIiCoIiCnMiClHiBeC_xHqqkZx_
 *			_xZkqqHx_jHoBiKeP_xHqqkZx_: OCX _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfHiCmMjGnPiCoIjCgMiCmN_xHqqkZx_ FALSE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDlgDsmBookmark::OnInitDialog ()
{
	// _xZkqqHx_iDiCiBfLiDgIiDiMiDfIiDfPiDeDiDeBiDiNiDePiCmMiPoKiNiHiBeB_xHqqkZx_BASE_CLASS::OnInitDialog()_xZkqqHx_iCmM_xHqqkZx_
	// _xZkqqHx_jBePiCmJiDfCiDjDiDgHiDiNiBfLiDiLiCmNiNoMjAkMiClDiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
	// BASE_CLASS::OnInitDialog() _xZkqqHx_iCmFiDeFiDeCiDjDiDgIiDeFiDfEiDeDiDfJjFmPiNfIiCkK_xHqqkZx_
	// _xZkqqHx_jDpMiCoJiClNiCnPiBeBiClBiClBiCmFiDiMiDeDiDeBiDeFiDgHiPoOjFpBiCpAiOoGjDlOiBeC_xHqqkZx_

//----- 06.05.30 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFjHmMiIoGiCpAiMhGiOfKiBeC_xHqqkZx_
	CRect rtWindow;
	GetWindowRect(rtWindow);

	// CFCDlgDsmBookmark _xZkqqHx_iCmG_xHqqkZx_ CFCDlgHistFindResults _xZkqqHx_iCmN_xHqqkZx_
	// _xZkqqHx_iJgFiLlPiClFiCkAiCkEiCoGiCkEiCmFiBeBiMoDiCkJiCoHiNoMjAkMiClFiClNiDeFiDeCiDjDiDgIiDeFiCmMiDfEiDeDiDfJiCkK_xHqqkZx_
	// _xZkqqHx_iInJiPoNiCmJjBoFiCkLiCkNiCmIiCmBiCmEiClFiCnMiCkEiBeCiClBiCmMiClNiCnPiBeB_xHqqkZx_rtDefaultStone _xZkqqHx_iCmF_xHqqkZx_
	// _xZkqqHx_iDfEiDeDiDfJiCpAjClCjAkOiClHiCoJiBeC_xHqqkZx_
	CRect rtDefaultStone;
	GetDlgItem(IDC_BSB_STC_DEFAULT_SIZE_STONE)->GetWindowRect(rtDefaultStone);
	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiDfEiDeDiDfJiCpAjAnNjCoIiBeC_xHqqkZx_+4 _xZkqqHx_iCmNiBeBiDeFiDeCiDjDiDgIiDeFiDhEiDiMiBfLiDiAiCmMjFjNiBeC_xHqqkZx_
	SetWindowPos(	NULL, 0, 0,
					rtDefaultStone.right - rtWindow.left + 4,
					rtDefaultStone.bottom - rtWindow.top + 4,
					SWP_NOACTIVATE|SWP_NOCOPYBITS|SWP_NOOWNERZORDER|
					SWP_NOSENDCHANGING|SWP_NOMOVE|SWP_NOZORDER);

	//----- _xZkqqHx_iDhEiDiMiBfLiDiAiDfEiDeDiDfJiCmMiNmFiPkMjCgMiCpAiMhGiOfK_xHqqkZx_ -----
	CRect rtStone;
	GetDlgItem(IDC_BSB_STC_MIN_SIZE_STONE)->GetWindowRect(rtStone);
	m_szMinFrame.cx = rtStone.right - rtWindow.left;
	m_szMinFrame.cy = rtStone.bottom - rtWindow.top;
//----- 06.05.30 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	//----- _xZkqqHx_iDiMiDeDiDeBiDeFiDgHiPoOjFpBiCpAiMhGiOfK_xHqqkZx_ -----
	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMiOgMjFpLiCmJjCmHiPfNiClFiCmEiDiKiDfEiDeDiDfJiBeC_xHqqkZx_
	const long aId1[] = {	IDC_BSB_LST_BOOKMARK };
	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMiJeFiJlKiCmJjCmHiPfNiClFiCmEiInKjDkOiBeC_xHqqkZx_
	const long aId2[] = {	IDC_BSB_BTN_JUMP_TO_DSM,
							IDC_BSB_BTN_APPEND_DSM,
							IDC_BSB_BTN_REMOVE_DSM,
							ID_HELP,
							IDCANCEL };
	FFInitDlgLayout(m_mpLayoutInfo,
					this,
					sizeof(aId1) / sizeof(aId1[0]),
					aId1,
					FCDlgLayoutRec::HOOK_ALL);
	FFInitDlgLayout(m_mpLayoutInfo,
					this,
					sizeof(aId2) / sizeof(aId2[0]),
					aId2,
					FCDlgLayoutRec::HOOK_RIGHT | FCDlgLayoutRec::HOOK_BOTTOM);

//----- 06.05.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	//----- _xZkqqHx_iDhEiDiMiBfLiDiAiDfEiDeDiDfJiCmMiNmFiPkMjCgMiCpAiMhGiOfK_xHqqkZx_ -----
//	CRect rtWindow;
//	GetWindowRect(rtWindow);
//	CRect rtStone;
//	GetDlgItem(IDC_BSB_STC_MIN_SIZE_STONE)->GetWindowRect(rtStone);
//	m_szMinFrame.cx = rtStone.right - rtWindow.left;
//	m_szMinFrame.cy = rtStone.bottom - rtWindow.top;
//----- 06.05.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	if (!BASE_CLASS::OnInitDialog())
		return FALSE;

	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMjCfAiImKjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	::SetUnitString(m_hWnd);
	// _xZkqqHx_jHjIiCkLjIhCjBmOiJjOjFlGiOjKjHpBiCmMjAnNjCoIiCpAiNhDiCkEiBeC_xHqqkZx_
	::RightByLeftHand(m_hWnd);
	// BASE_CLASS_xZkqqHx_iCmFiDeFiDeCiDjDiDgIiDeFiImKjChFiCpAiOhHjCoIiClDiCoKiCoJiClNiCnPiBeB_xHqqkZx_FFJustifyWindow _xZkqqHx_iCmNiOmAiNhDiClFiCmIiCkCiBeC_xHqqkZx_

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

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnDestroy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDfPiDeDiDeBiDiNiDePiDeJiDhFiDfHiDeGiDeOiDgHiCkKjEgKiKpMiClDiCoKiCoJiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::OnDestroy ()
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnDestroy();
} // CFCDlgDsmBookmark::OnDestroy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkKiDfEiDeDiDfJjFmPiNfIiClDiCoKiClNjClMiMoDiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nType	:_xZkqqHx_iDfEiDeDiDfJjFmPiNfIiCmMiDfOiDeDiDhGiBeCiNmFjBoFiJlLiBeFiNmFiPkMiJlLjDjJiBeCiBeC_xHqqkZx_
 *			cx, cy	:_xZkqqHx_iDfEiDeDiDfJjFmPiNfIiMoDiCmMiDfEiDeDiDfJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::OnSize (UINT nType, int cx, int cy)
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnSize(nType, cx, cy);
	// OnInitDialog_xZkqqHx_iImIjBePiCmM_xHqqkZx_OnSize_xZkqqHx_iCmMiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (GetDlgItem(IDC_BSB_LST_BOOKMARK) == NULL) return;
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiNmEjEhKjChFiBeC_xHqqkZx_
	FFDlgLayout(m_mpLayoutInfo, this, CSize(cx, cy));
} // CFCDlgDsmBookmark::OnSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnBsbBtnJumpToDsm
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhLiDfOiDjDiBhFiDfHiDiDiDjDiDhGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::OnBsbBtnJumpToDsm ()
{
	FFGetMainWnd()->PostMessage(WM_COMMAND, ID_VIEW_CURRENT_DSM, 0);
} // CFCDlgDsmBookmark::OnBsbBtnJumpToDsm.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnBsbBtnAppendDsm
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhLiDfOiDjDiBhFjDgPjIfOiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::OnBsbBtnAppendDsm ()
{
	FFGetMainWnd()->PostMessage(WM_COMMAND, ID_VIEW_APPEND_DSM, 0);
} // CFCDlgDsmBookmark::OnBsbBtnAppendDsm.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnBsbBtnRemoveDsm
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhLiDfOiDjDiBhFiNoNiPjMiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::OnBsbBtnRemoveDsm ()
{
	FFGetMainWnd()->PostMessage(WM_COMMAND, ID_VIEW_DELETE_DSM, 0);
} // CFCDlgDsmBookmark::OnBsbBtnRemoveDsm.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnDblclkBsbLstBookmark
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiDfIiDgHiDhLiDgCiDeOiDfIiCmMiDeBiDeDiDgFiDiAiCkKiDfPiDhFiDiLiDeOiDiKiDgCiDeOiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::OnDblclkBsbLstBookmark ()
{
	OnBsbBtnJumpToDsm();
} // CFCDlgDsmBookmark::OnDblclkBsbLstBookmark.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnCancel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDeMiDiDiDjDiDfKiDiLiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::OnCancel ()
{
	// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiPiIjHjNiCmFiCoAjEpBjFfMiOkGiCmJiCmIiCoJiCkKiBeB_xHqqkZx_OnShowWindow_xZkqqHx_iCpAiOmAiNhDiClHiCoJiClNiCnPiImIiJlKiBeC_xHqqkZx_
	SetWindowVisible(FALSE);
} // CFCDlgDsmBookmark::OnCancel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnGetMinMaxInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMiNmFjBoFjCgMiBeBiNmFiPkMjCgMiCmMiPoOjFpBiCpAjFnEiClHiBeCiDiKiDfEiDeDiDfJiOjOjDjJiCmJjHjIjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpMMI	:_xZkqqHx_iNmFjBoFiBeBiNmFiPkMjCgMjDjJiCpAjFnEiClHjFmPjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgDsmBookmark::OnGetMinMaxInfo (MINMAXINFO FAR* lpMMI)
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnGetMinMaxInfo(lpMMI);
	lpMMI->ptMinTrackSize.x = m_szMinFrame.cx;
	lpMMI->ptMinTrackSize.y = m_szMinFrame.cy;
} // CFCDlgDsmBookmark::OnGetMinMaxInfo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgDsmBookmark::OnUserPursuerTextNeedInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiDgCiDhGiDhBiDjDiDgHiCkKiDhBiDjDiDgHiPoOjFpBiCmMjAnNjCoIiCpAjHhGiLiBiClHiCoJiNnLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_iDhNiDeFiDfIiImKjChFiCmMiDeFiDeCiDjDiDgIiDeFiDgOiDjDiDgIiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jFeLiClIiBeB_xHqqkZx_GetCursorPos_xZkqqHx_iKnGjAjEiCmFiDhNiDeFiDfIiImKjChFiCpAiOoGjDlOiClHiCoJiClBiCmGiBeC_xHqqkZx_
 *			_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiCkK_xHqqkZx_WM_MOUSEMOVE_xZkqqHx_iCmJjHiKiCmBiCmEiCkCiCoJiCmGiBeBiDiBiDgKiDiFiBfLjFfMiOkGiOjOiCmIiCmHiCmJ_xHqqkZx_
 *			_xZkqqHx_iDhNiDeFiDfIiImKjChFiCkKiMlLiNnNiCmMiImKjChFiCmGjAeIiCkCiIoBiCmBiCmEiCkCiCoJiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jCmHjAnFiDhBiDjDiDgHiCmNiBeBiDhNiDeFiDfIiImKjChFiCmMiDeFiDeCiDjDiDgIiDeFiCpAjClCiCnHiBeBiCnMiClIiClLiCmMiDeFiDeCiDjDiDgIiDeFiCnG_xHqqkZx_
 *			WM_USER_PURSUER_TEXT_NEED_INFO_xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpA_xHqqkZx_SendMessage_xZkqqHx_iCmFjBjHjFhEiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDiBiDgCiDfKiBfLiDfHjGnPiCoIjCgMiCkKiCePiCmMiPoKiNiHiCmNiBeBiClLiCmMiDeFiDeCiDjDiDgIiDeFiCmMjAgFiDeFiDeCiDjDiDgIiDeFiCnG_xHqqkZx_
 *			_xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAjBjHjFhEiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jGnPiCoIjCgMiCkKiCePiImIiKePiCmFiCkAiCoJiCkJjAgFiDeFiDeCiDjDiDgIiDeFiCkKjGlDiCkNiCmIiCoJiCnMiCmFiClBiCoKiCpAiMeKiCoIjFnEiClHiBeC_xHqqkZx_
 *			wParam _xZkqqHx_iCmJiCmNiBeBiNmFiPiJiCmJiDiBiDgCiDfKiBfLiDfHiCpAjBjHjFhEiClFiClNiDeFiDeCiDjDiDgIiDeFiCkKiOhHjCoIiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDlgDsmBookmark::OnUserPursuerTextNeedInfo (WPARAM wParam, LPARAM)
{
	if (g_pReg->GetIsPopupHint() && g_pReg->GetIsPopupDsmBookmarkHint())
	//----- _xZkqqHx_jFlGiPjBiDfKiDgCiDfGiDiHiDjDiDhFiDgCiDeOiDhNiBfLiDeOiCmMiDhMiDgCiDhGiDeBiDgCiDhGiCpAjFfMiOkGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDhNiDeFiDfIiDeKiBfLiDfMiDiLiCmMiMlLiNnNiCmMiImKjChFiCpAiBeBiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
		CPoint dvptMouse;
		(void)::GetCursorPos(&dvptMouse);
		CListBox* pCtrl = reinterpret_cast<CListBox*>(GetDlgItem(IDC_BSB_LST_BOOKMARK));
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHiNmAjFfHiCmJjFmPiKlHiBeC_xHqqkZx_
		pCtrl->ScreenToClient(&dvptMouse);
		int iC;
		for (iC = 0; iC != pCtrl->GetCount(); iC++)
		{
			CRect rect;
			pCtrl->GetItemRect(iC, rect);
			if (rect.PtInRect(dvptMouse))
			//----- _xZkqqHx_iDhNiDeFiDfIiCkKiDiKiDfIiDgHiDhCiDiFiBfLiCmJjDpMiCoJiPoKiNiH_xHqqkZx_ -----
			{
				const FCDsmRec* pDsmRec = FFHistViewDoc()->GetDsmRec(iC);
				// IDS_FORM_HTREE_PROPERTY_K =
				// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfI_xHqqkZx_:%s\r\n
				// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDfOiDeDiDgHiDiL_xHqqkZx_:%s\r\n
				// _xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiL_xHqqkZx_:%s\r\n
				// _xZkqqHx_iDgPiBfLiDfHiDiHiDjD_xHqqkZx_:%s\r\n
				// _xZkqqHx_jHjKjHpAiImKjChF_xHqqkZx_:%I64d_xZkqqHx_iDfKiDgCiDfGiDiHiDjD_xHqqkZx_
				FFGetApp()->GetPopHint()->SetTargetInfo(
					FormatResString(IDS_FORM_HTREE_PROPERTY_K,
									WString(pDsmRec->m_hstrProjectFilePath).c_str(),	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfIiBeC_xHqqkZx_
									WString(pDsmRec->m_hstrProjectTitle).c_str(),		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
									WString(pDsmRec->m_hstrDocumentTitle).c_str(),		// _xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
									WString(pDsmRec->m_hstrDocumentVersion).c_str(),	// _xZkqqHx_iDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
									pDsmRec->m_fliSessionIndex));						// _xZkqqHx_jHjKjHpAiImKjChFiBeC_xHqqkZx_
				break;
			}
		}
	}
	return 1;
} // CFCDlgDsmBookmark::OnUserPursuerTextNeedInfo.

