// HistDrawDoc.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#ifndef _DEBUG
CFCHistDrawDoc::CreateNewHidocument _xZkqqHx_iCmFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjDmGiOkJiCmJiLeOiClBiClFiCmEiBeBiNfIjAfGiClFiCmEiCkCiCoJiBeC_xHqqkZx_
_xZkqqHx_iClBiCmMiClNiCnPiCmJiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmMiDiNiDgCiDeOiCmNiBeBiDhGiDiNiDfKiDfIjCfAiImKiCmFiCmNiCmIiCkNiDhGiDiNiDfHiDeGiDeOiDgHjCfAiImKiCmJ_xHqqkZx_
_xZkqqHx_iClHiCnHiCkLiCmFiCmNiBeI_xHqqkZx_
#//endif_DEBUG

#include "stdafx.h"
#include "DynamicDraw.h"		// For FFGetProject.
#include "HiProject.h"		// For FCHiProject.
#include "HistDrawFrame.h"		// For FFHistDrawFrame().
#include "DynamicDrawView.h"	// For g_pView.
#include "UtilMisc.h"				// For FFGetCurrentSecTime.
#include "UtilMath.h"			// For _i64towcs.
#include "UtilStr.h"			// For FormatResString.
#include "UtilErr.h"			// For FormMessageBox.
#include "UtilFile.h"			// For SplitFileName.
// 06.01.06 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//#include "UtilHiFile.h"			// For FFHiCopyDirectory.
#include "UtilRepair.h"			// For SaveRepairDocName.
#include "UtilDlg.h"			// For SetStdBtnString.etc.
#include "DynamicDb.h"		// For g_pFileServer.
#include "RegData.h"			// For g_pReg->GetIsLeftHand().
#include "RecentList.h"			// For FCRecentList.
#include "ToolBase.h"			// For FCToolBase.
#include "HiCommandTable.h"		// For m_pGate->XX.
#include "ObjFigure.h"			// For FCObjFigure.
#include "RichText.h"			// For FCRichText.
#include "DlgInitUserRegistration.h"// For CFCDlgInitUserRegistration.
#include "FrameWnd.h"			// For FFGetMainWnd().

//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//#ifdef _DEBUG
//#include "File32.h"				// For FCFile32.
//#endif // _DEBUG
//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

#include "HistDrawDoc.h"		// This header.

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

// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiCpAiClHiCoJiDgPiDgCiDhEiDeAiCmMiNmFiPkMjCgMiBeC_xHqqkZx_
// _xZkqqHx_jFjNiNeMjFjEjFgJiCpAiCfAiCmCiNoMjAkMiClFiCmE_xHqqkZx_700Byte_xZkqqHx_iCkNiCoHiCkCiBeC_xHqqkZx_3000_xZkqqHx_iCkNiCoHiCkCiCkKjDeLjDjGiCkJiBeC_xHqqkZx_
#define FD_THRESHOLD_FLUSH_BUFFER		3000
// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiCpAiClHiCoJiOjOiKnEiCmMiNmFiPkMjCgMiBeCjFgCjAjEiBeC_xHqqkZx_
#define FD_THRESHOLD_FLUSH_TIME			30

//----- 06.04.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiCmFiCkLiCmIiCkCiPoKiNiHiCmMiDgPiDgCiDhEiDeAiMmAjDhIjCgMiBeC_xHqqkZx_
//#define FD_LIMIT_FLUSH_BUFFER			100000
//// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiCmFiCkLiCmIiCkCiPoKiNiHiCmMiOjOiKnEiCmMiMmAjDhIjCgMiBeCjFgCjAjEiBeC_xHqqkZx_
//#define FD_LIMIT_FLUSH_TIME				5
//----- 06.04.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

// _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmMjHkNiCnPiNjOiCnOiOjOiKnEiCmMiMmAjDhIjCgMiBeCjFgCjAjEiBeC_xHqqkZx_
#define FD_LIMIT_CMD_BUFFERED_TIME		5

// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmJjFfMiOkGiClDiCoKiCoJiOjOiKnEiCmMiDeDiDjDiDfOiBfLiDgPiDiLiBeCjFgCjAjEiBeC_xHqqkZx_60_xZkqqHx_jFkKiCkIiCkLiCkNiCoHiCkCiCkKjDeLjDjGiCkJiBeC_xHqqkZx_
#define FD_HTREE_INTERVAL_TIME			3600

/////////////////////////////////////////////////////////////////////////////
// extern_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_

/////////////////////////////////////////////////////////////////////////////
// CFCHistDrawDoc

IMPLEMENT_DYNCREATE(CFCHistDrawDoc, CFCCommonDrawDoc)

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::CFCHistDrawDoc
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCHistDrawDoc::CFCHistDrawDoc ()
{
	// _xZkqqHx_iDfOiDeDiDhNiBfLiPiIjHjNjCiGiCkJiBeI_xHqqkZx_ _xZkqqHx_jDpMiCoKiOhBiCpAjGgIiCkOiBeC_xHqqkZx_
	m_bIsOnFrameTimerCFCHistDrawDoc = FALSE;
//----- 06.04.06 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDfKiDgCiDfGiDiHiDjDiCmJiDiGiBfLiDfFiBfL_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
	m_bIsLogCommandUserId = FALSE;
//----- 06.04.06 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	//----- _xZkqqHx_iDiBiDjDiDgPjFmPjAjEiPiJiKpKiJlL_xHqqkZx_ -----
} // CFCHistDrawDoc::CFCHistDrawDoc.

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

BEGIN_MESSAGE_MAP(CFCHistDrawDoc, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCHistDrawDoc)
	ON_COMMAND(ID_FILE_EXEC_HISTVIEWER_TARGET, OnFileExecHistviewerTarget)
	ON_UPDATE_COMMAND_UI(ID_FILE_EXEC_HISTVIEWER_TARGET, OnUpdateFileExecHistviewerTarget)
	ON_COMMAND(ID_FILE_SAVE_HIDOCUMENT, OnFileSaveHidocument)
	ON_UPDATE_COMMAND_UI(ID_FILE_SAVE_HIDOCUMENT, OnUpdateFileSaveHidocument)
	ON_COMMAND(ID_OPTION_USER_REGISTRATION, OnOptionUserRegistration)
	ON_UPDATE_COMMAND_UI(ID_OPTION_USER_REGISTRATION, OnUpdateOptionUserRegistration)
	ON_COMMAND(ID_TEST_TEST_TEST1, OnTestTestTest1)
	ON_COMMAND(ID_TEST_TEST_TEST2, OnTestTestTest2)
	ON_COMMAND(ID_TEST_TEST_TEST3, OnTestTestTest3)
	ON_COMMAND(ID_TEST_TEST_TEST4, OnTestTestTest4)
	ON_COMMAND(ID_TEST_TEST_TEST5, OnTestTestTest5)
	ON_COMMAND(ID_TEST_TEST_TEST6, OnTestTestTest6)
	ON_COMMAND(ID_TEST_TEST_TEST7, OnTestTestTest7)
	ON_COMMAND(ID_TEST_TEST_TEST8, OnTestTestTest8)
	ON_COMMAND(ID_TEST_TEST_TEST9, OnTestTestTest9)
	ON_COMMAND(ID_FILE_PROJECT_CLOSE, OnFileProjectClose)
	ON_UPDATE_COMMAND_UI(ID_FILE_PROJECT_CLOSE, OnUpdateFileProjectClose)
	//}}AFX_MSG_MAP
//----- 05.10.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_COMMAND(ID_FILE_JOIN_PROJECT, OnFileJoinProject)
//	ON_UPDATE_COMMAND_UI(ID_FILE_JOIN_PROJECT, OnUpdateFileJoinProject)
//----- 05.10.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//	ON_COMMAND_RANGE(ID_FILE_RECENT1, ID_FILE_RECENTEND, OnFileRecent)
//----- 03.09.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_COMMAND(ID_FILE_SAVE_AS_MOLIPDRAW, OnFileSaveAsMolipdraw)
//	ON_UPDATE_COMMAND_UI(ID_FILE_SAVE_AS_MOLIPDRAW, OnUpdateFileSaveAsMolipdraw)
//----- 03.09.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCHistDrawDoc _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::SessionBegin
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::SessionBegin ()
{
//----- 05.10.20 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCkKiDhGiDiNiDfHiDeGiDeOiDgHiCmJjDgPjIfOiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiBeC_xHqqkZx_
	if (!g_pProject->IsQualifiedToModify(FFGetApp()->GetUserId()))
		FFThrowMiscUnknown();
//----- 05.10.20 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	if (GetSessionDepth() == 0)
	//----- _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDgMiDfIiDgHiCmMjAfLiClDiCkK_xHqqkZx_0_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJ_xHqqkZx_ID -> _xZkqqHx_jFjEjFgJiPiIjHjN_xHqqkZx_(_xZkqqHx_iNoMjAkMiBeBiNoNiPjMiBeBjFmPiNfI_xHqqkZx_)_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
		m_mpObjIdToKind.clear();
	}
	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
	m_pGate->CmdSessionBegin();
	m_historyIndex.CmdSessionBegin();
} // CFCHistDrawDoc::SessionBegin.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::SessionEnd
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiPeJjHlJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	<mdrwpos file="D:\src\DynamicDraw\_xZkqqHx_jHjKjHpAjFlGiPjBiLkEjHeMiOgEjHgM_xHqqkZx_.mdrw" sheet="1" cposx="238" cposy="497"/>
 *
 *          _xZkqqHx_iBhJiDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCmGiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmMjBmOiJjOiBhK_xHqqkZx_
 *
 *           _xZkqqHx_iDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiL_xHqqkZx_
 *          _xZkqqHx_iEkMiEkKiEkKiEkKiEkKiElBiEkKiEkKiEkKiEkKiElBiEkKiEkKiEkKiEkKiElBiEkKiEkKiEkKiEkKiElBiEkKiEkKiEkKiEkKiElBiEkKiEkKiEkKiEkKiElBiBgD_xHqqkZx_
 *          _xZkqqHx_iEkL_xHqqkZx_Session0_xZkqqHx_iEkL_xHqqkZx_Session1_xZkqqHx_iEkL_xHqqkZx_Session2_xZkqqHx_iEkL_xHqqkZx_Session3_xZkqqHx_iEkL_xHqqkZx_Session4_xZkqqHx_iEkL_xHqqkZx_Session5_xZkqqHx_iEkL_xHqqkZx_
 *          _xZkqqHx_iEkPiEkKiEkKiEkKiEkKiElDiEkKiEkKiEkKiEkKiElDiEkKiEkKiEkKiEkKiElDiEkKiEkKiEkKiEkKiElDiEkKiEkKiEkKiEkKiElDiEkKiEkKiEkKiEkKiElDiBgD_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEkD_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEkD_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_
 *          _xZkqqHx_iBkL_xHqqkZx_        _xZkqqHx_iBkL_xHqqkZx_        _xZkqqHx_iBkL_xHqqkZx_        _xZkqqHx_iBkL_xHqqkZx_
 *          _xZkqqHx_iEkMiEkKiEkKiEkKiEkKiElBiEkKiEkKiEkKiEkKiElBiEkKiEkKiEkKiEkKiElBiBgD_xHqqkZx_
 *          _xZkqqHx_iEkL_xHqqkZx_Session1_xZkqqHx_iEkL_xHqqkZx_Session3_xZkqqHx_iEkL_xHqqkZx_Session6_xZkqqHx_iEkL_xHqqkZx_
 *          _xZkqqHx_iEkPiEkKiEkKiEkKiEkKiElDiEkKiEkKiEkKiEkKiElDiEkKiEkKiEkKiEkKiElDiBgD_xHqqkZx_
 *          _xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiL_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.04.03 Fukushiro M. bCheckEmpty_xZkqqHx_iCpAjCmHiJmBiBeC_xHqqkZx_
 *			99.12.01 Fukushiro M. bCheckEmpty_xZkqqHx_iCpAiNoNiPjMiBeC_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::SessionEnd ()
{
	// _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCkKiDhGiDiNiDfHiDeGiDeOiDgHiCmJjDgPjIfOiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiBeC_xHqqkZx_
	if (!g_pProject->IsQualifiedToModify(FFGetApp()->GetUserId()))
		FFThrowMiscUnknown();

//----- 06.04.06 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiGiBfLiDfFiBfL_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	const GUID guidUserId = m_bIsLogCommandUserId ? FFGetApp()->GetUserId() : GUID_NULL;
//----- 06.04.06 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// HiCommandTable::CmdSessionEnd _xZkqqHx_iCmMjBePiCmJiOjOiKnEiCpAiLeMjIfOiClFiCmEiCkIiCkNiBeC_xHqqkZx_
	const FDSECTIME fdstTimeBefore = GetPrevSessionTime();

	// _xZkqqHx_iDfCiDhNiDjDiDgIiDfKiDgCiDfGiDiHiDjDiCmMiPjBiCkLiNjOiCnNiBeC_xHqqkZx_
	if (!m_pGate->CmdSessionEnd(guidUserId))
	//----- _xZkqqHx_iDgFiBfLiDhFiDiLiCmJiDfKiDgCiDfGiDiHiDjDiCmMiPjBiCkLiNjOiCnNiCkKjGlDiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmMiDfKiDgCiDfGiDiHiDjDjFkKiCkKiLpDiClOiCmBiClNiPoKiNiHiBeB_xHqqkZx_
		// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDjAfLiClDiCkKiCePiCmFiCmNiCmIiCkCiPoKiNiHiBeC_xHqqkZx_

		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmMiDfKiDgCiDfGiDiHiDjDiCpAiPeJjHlJiBeC_xHqqkZx_
		m_historyIndex.CmdSessionEnd();
		return;
	}

	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiPjBiCkLiNjOiCnNiCkKjGlDiCkCiPoKiNiHiCmNiBeBjAoCjBmOiCmJiImIiJlKiCmJjAgJiCnPiCmEiCmNiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
	// _xZkqqHx_jDmBiCmJiBeBiDfIiDhMiDgCiDgHiCmMiDfKiDgCiDfGiDiHiDjDiImKjChFiImIiNhOiCpAiNoNiPjMiClHiCoJiPiIjHjNiCmNiBeB_xHqqkZx_
	// _xZkqqHx_iOgOjDfPiDfIiDhMiDgCiDgHiCpAiNoNiPjMiClFiCmEiClFiCnMiCkEiDfAiBfLiDfIiCkKiCkAiCoJiClNiCnPiBhOiBeC_xHqqkZx_

//----- 06.03.18 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDgMiDfIiDgHiCmMjAfLiClDiCkK_xHqqkZx_0_xZkqqHx_iImIiKePiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
//	if (GetSessionDepth() != 0)
//	{
//		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmMiDfKiDgCiDfGiDiHiDjDiCpAiPeJjHlJiBeC_xHqqkZx_
//		m_historyIndex.CmdSessionEnd();
//		return;
//	}
//----- 06.03.18 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	//----- _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmJiBeBiDiJiDhIiDiLiDeDiDjDiDgGiDgCiDeOiDfIiDiMiDfCiBfLiDgIiCpAiNoMjAkM_xHqqkZx_ -----
	map<DWORD, FCModifyLabelKind>::const_iterator iO2K;
	for (iO2K = m_mpObjIdToKind.begin(); iO2K != m_mpObjIdToKind.end(); iO2K++)
	//----- _xZkqqHx_iDiJiDhIiDiLjFjEjFgJ_xHqqkZx_ID -> _xZkqqHx_jFjEjFgJiPiIjHjN_xHqqkZx_(_xZkqqHx_iNoMjAkMiBeBiNoNiPjMiBeBjFmPiNfI_xHqqkZx_)_xZkqqHx_iDgFiBfLiDhFiDiL_xHqqkZx_ _xZkqqHx_iCpAiDiLiBfLiDhG_xHqqkZx_ -----
	{
		if ((*iO2K).second.atpLabelDelete.get() != NULL)
		{
			// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmJiBeBiDiJiDhIiDiLiNoNiPjMiDiMiDfCiBfLiDgIiCpAiLeMjIfOiBeC_xHqqkZx_
			m_historyIndex.CmdLabelDelete(	(*iO2K).first,
											(*iO2K).second.atpLabelDelete.get());
		}
		if ((*iO2K).second.atpLabelCreate.get() != NULL)
		{
			// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmJiBeBiDiJiDhIiDiLiNoMjAkMiDiMiDfCiBfLiDgIiCpAiLeMjIfOiBeC_xHqqkZx_
			m_historyIndex.CmdLabelCreate(	(*iO2K).first,
											(*iO2K).second.atpLabelCreate.get());
		}
	}
	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJ_xHqqkZx_ID -> _xZkqqHx_jFjEjFgJiPiIjHjN_xHqqkZx_(_xZkqqHx_iNoMjAkMiBeBiNoNiPjMiBeBjFmPiNfI_xHqqkZx_)_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	m_mpObjIdToKind.clear();

	// _xZkqqHx_iDfCiDhNiDjDiDgIjEkNiNhDiCmFiBeBiCfAiOjOiKnEiCmMiLkLiCpAiJhKiCkGiClNiPoKiNiHiCmNiBeBiOjOiKnEiDfGiDePiDgJiDiLiCpAiDeDiDjDiDgGiDgCiDeOiDfIiCmJiLeMjIfOiBeC_xHqqkZx_
	if ((fdstTimeBefore / FD_HTREE_INTERVAL_TIME) != (GetPrevSessionTime() / FD_HTREE_INTERVAL_TIME))
		m_historyIndex.CmdAbsTime();

	// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmMiDfKiDgCiDfGiDiHiDjDiCpAiPeJjHlJiBeC_xHqqkZx_
	m_historyIndex.CmdSessionEnd(	GetNextSessionIndex() - 1,
									guidUserId,
									GetPrevSessionTime());

	// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmMiPeJjCfLiCpAiNfIjAfGiBeC_xHqqkZx_
	m_cmdTerminateFile.UpdateEndSessionIndex(GetNextSessionIndex(), NULL, 0);

	//----- Undo_xZkqqHx_iMoDiCmMiPjBiCkLiNjOiCnNiCmJjBmOiJjOiClHiCoJiClNiCnPiBeBiDfKiDgCiDfGiDiHiDjDiImKjChFiImIiNhOiCmMiDfIiDhMiDgCiDgHiCpAiNoNiPjM_xHqqkZx_ -----
	//
	//                    3   4   5   6   7   8   9   10  11   _xZkqqHx_iBkJ_xHqqkZx_NextSessionIndex
	//                    _xZkqqHx_iBkL_xHqqkZx_  _xZkqqHx_iBkL_xHqqkZx_  _xZkqqHx_iBkL_xHqqkZx_  _xZkqqHx_iBkL_xHqqkZx_  _xZkqqHx_iBkL_xHqqkZx_  _xZkqqHx_iBkL_xHqqkZx_  _xZkqqHx_iBkL_xHqqkZx_  _xZkqqHx_iBkL_xHqqkZx_  _xZkqqHx_iBkL_xHqqkZx_
	//                    _xZkqqHx_iEkBiEjPiEkGiEjPiEkGiEjPiEkGiEjPiEkGiEjPiEkGiEjPiEkGiEjPiEkGiEjPiEkGiBgD_xHqqkZx_
	//      CommandTable  _xZkqqHx_iEkA_xHqqkZx_ 3_xZkqqHx_iEkA_xHqqkZx_ 4_xZkqqHx_iEkA_xHqqkZx_ 5_xZkqqHx_iEkA_xHqqkZx_ 6_xZkqqHx_iEkA_xHqqkZx_ 7_xZkqqHx_iEkA_xHqqkZx_ 8_xZkqqHx_iEkA_xHqqkZx_ 9_xZkqqHx_iEkA_xHqqkZx_10_xZkqqHx_iEkA_xHqqkZx_   _xZkqqHx_iBkJ_xHqqkZx_Session Index
	//                    _xZkqqHx_iEkEiEjPiEkIiEjPiEkIiEjPiEkIiEjPiEkIiEjPiEkIiEjPiEkIiEjPiEkIiEjPiEkIiBgD_xHqqkZx_
	//                    _xZkqqHx_iEkA_xHqqkZx_0   1 _xZkqqHx_iEkA_xHqqkZx_2   3 _xZkqqHx_iEkA_xHqqkZx_4   5 _xZkqqHx_iEkA_xHqqkZx_6   7 _xZkqqHx_iEkA_xHqqkZx_   _xZkqqHx_iBkJ_xHqqkZx_Record Index
	//                    _xZkqqHx_iBkL_xHqqkZx_      _xZkqqHx_iBkL_xHqqkZx_      _xZkqqHx_iBkL_xHqqkZx_      _xZkqqHx_iBkL_xHqqkZx_      _xZkqqHx_iBkL_xHqqkZx_
	//                    _xZkqqHx_iEkBiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEkGiBgD_xHqqkZx_
	//         SpotTable  _xZkqqHx_iEkA_xHqqkZx_Spot 3_xZkqqHx_iEkA_xHqqkZx_Spot 5_xZkqqHx_iEkA_xHqqkZx_Spot 7_xZkqqHx_iEkA_xHqqkZx_Spot 9_xZkqqHx_iEkA_xHqqkZx_Spot11_xZkqqHx_iEkA_xHqqkZx_   _xZkqqHx_iBkJ_xHqqkZx_Session Index
	//                    _xZkqqHx_iEkEiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEkIiBgD_xHqqkZx_
	//                        0       1       2       3       4        _xZkqqHx_iBkJ_xHqqkZx_Record Index
	//
	//	_xZkqqHx_iPoDjAhNiCpAjHoBiCmJiNgMiCkGiCoJiBeC_xHqqkZx_
	//	NextSessionIndex = 6 _xZkqqHx_iCmMiPoKiNiHiBeB_xHqqkZx_Session 5 _xZkqqHx_iImIiPoDiCkKiPjBiCkLiKlHiCkGiCoHiCoKiClN_xHqqkZx_
	//	_xZkqqHx_iClBiCmGiCmJiCmIiCoJiBeCiPfNiCmBiCmE_xHqqkZx_ Session 6 _xZkqqHx_iImIiPoDiCmM_xHqqkZx_Spot_xZkqqHx_iBeBjBkGiClP_xHqqkZx_ Spot 7_xZkqqHx_iBeB_xHqqkZx_Spot 9 _xZkqqHx_iBgD_xHqqkZx_
	//	_xZkqqHx_iCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
	//	NextSessionIndex = 7 _xZkqqHx_iCmMiPoKiNiHiBeB_xHqqkZx_Session 6 _xZkqqHx_iImIiPoDiCkKiPjBiCkLiKlHiCkGiCoHiCoKiClN_xHqqkZx_
	//	_xZkqqHx_iClBiCmGiCmJiCmIiCoJiBeCiClBiCmMiPoKiNiHiCmN_xHqqkZx_ Session 7 _xZkqqHx_iImIiPoDiCmM_xHqqkZx_Spot_xZkqqHx_iBeBjBkGiClP_xHqqkZx_
	//	Spot 7_xZkqqHx_iBeB_xHqqkZx_Spot 9 _xZkqqHx_iBgDiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
	//
	m_spotFile.DeleteSpotAfter(GetNextSessionIndex());

	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjAnNjCoIiClDiCoKiClNiCkJiBeI_xHqqkZx_
	BOOL bIsDocumentRequest = FALSE;

	//----- _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCmMjFnLjBlGiPiIjHjN_xHqqkZx_ ------
	// _xZkqqHx_iDfIiDhMiDgCiDgHiCmMjFnLjBlGiCmNjClMjAnKiJmCjEfMiClOiCkKiBeB_xHqqkZx_Spot_xZkqqHx_iCpAiDiNiDgCiDeOiClHiCoJjFeLjHhGiCkK_xHqqkZx_
	// _xZkqqHx_iCkAiCoJiClNiCnPiBeB_xHqqkZx_ID_DREQ_SAVE_SPOT_FILE _xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
	if (!IsThereDocRequest(ID_DREQ_SAVE_SPOT_FILE))
	//----- _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAjFnLjBlGiClHiCoJ_xHqqkZx_]_xZkqqHx_iCkKjAmPiCnMiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		FCSpotConstIterator iSpot = m_spotFile.GetLastSpot();
		// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCmNjFeLiClIiCnAiCmGiCmCiCmNjBlGiNnNiClHiCoJiCmNiClIiBeC_xHqqkZx_
		ASSERT(!iSpot.GetIsInvalid());
		if (FD_SPOT_INTERVAL_SESSION_INDEX <= GetNextSessionIndex() - iSpot.GetSessionIndex())
		//----- _xZkqqHx_iDfIiDhMiDgCiDgHiCmMiKnEiKhFiCkKiPiKjCoIiCmMiKoOiPiAjCgMiCpAiPoDiJpBiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjAnNjCoIiClDiCoKiClNiCkJiBeI_xHqqkZx_
			bIsDocumentRequest = TRUE;
			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAjFnLjBlGiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_SAVE_SPOT_FILE);
			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
		}
	}

	if (!g_pFileServer->IsFlushing())
	//----- _xZkqqHx_iDhEiDiJiDgCiDfGiDiFjCiGiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		TRACE(_T("GetTotalUnflushedBufferSize %d\n"), g_pFileServer->GetTotalUnflushedBufferSize());

		if (!IsThereDocRequest(ID_DREQ_FLUSH_ALL) &&
			(FD_THRESHOLD_FLUSH_BUFFER <= g_pFileServer->GetTotalUnflushedBufferSize() ||
			(g_pFileServer->GetFdtimeFromFirstModified() != -1 &&
			 FD_THRESHOLD_FLUSH_TIME <= FdtimeToFdsec(g_pFileServer->GetFdtimeFromFirstModified()))))
		//----- _xZkqqHx_jBePiJpBiCmMiDhEiDiJiDgCiDfGiDiFiCkJiCoHiDfKiDgCiDfGiDiHiDjDjAjEiCkKiKoOiPiAjCgMiCpAiJhKiCkGiClNiPoKiNiHiBeB_xHqqkZx_
		//		_xZkqqHx_iIlNiCkCiCmNiBeBiNmFiMoDiCmMiNfIjAfGiCkJiCoHiCmMiMgPiJnPiOjOiKnEiCkKiKoOiPiAjCgMiCpAiJhKiCkGiClNiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjAnNjCoIiClDiCoKiClNiCkJiBeI_xHqqkZx_
			bIsDocumentRequest = TRUE;
			// [_xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDgPiDgCiDhEiDeAiCpAiDhEiDiJiDgCiDfGiDiFiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_FLUSH_ALL);
			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
		}
	}
	if (bIsDocumentRequest)
	//----- _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjAnNjCoIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_END);
		// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
		ProceedDocRequest();
	}

	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
	SetModifiedFlag(TRUE);
} // CFCHistDrawDoc::SessionEnd.

//----- 04.11.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnUndo
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiMlDiCmJjGnPiClHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.08.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::OnUndo ()
//{
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKiCePiCmFiCmIiCkCiPoKiNiHiCmNiBeBiDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmMiImKjChFiCpAjGnPiClHiClOiCkPiBeC_xHqqkZx_
//	// _xZkqqHx_jGnPiClJiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	if (GetSessionDepth() == 0 &&
//		m_pGate->IsPositionInCmdBuffer(m_pGate->GetFilePosition() - 1))
//	//----- _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDgMiDfIiDgHiCmMjAfLiClDiCkK_xHqqkZx_0 _xZkqqHx_iKiOiCmC_xHqqkZx_ _xZkqqHx_jGnPiClJiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// Superclass_xZkqqHx_iCmM_xHqqkZx_Undo_xZkqqHx_iPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//		BASE_CLASS::OnReqMoveHistoryBackward(FCReqBase(), FCReqLock());
//		// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMiNmEjFgAiJoGiBeC_xHqqkZx_
//		g_pView->SendRgnRedraw();
//	} else
//	//----- _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDgMiDfIiDgHiCmMjAfLiClDiCkK_xHqqkZx_0_xZkqqHx_iKiOiCmCiDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKiLpDiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//		BASE_CLASS::OnUndo();
//	}
//} // CFCHistDrawDoc::OnUndo.
//----- 04.11.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::CanUndo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiMlDiCmJjGnPiClHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCHistDrawDoc::CanUndo () const
{
//----- 05.08.15 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCkKiKeKiCkCiCmEiCkCiCmIiCkPiCoKiCmOiBeBjGlDiMpIiBeC_xHqqkZx_
//	if (!FFCanEditDocument()) return FALSE;
//	//----- _xZkqqHx_jHjKjHpAjFkKiKpCiImKjChFiCoGiCoIiCoAiImIjBePiCmJjGnPiCoLiCkEiCmGiClFiCmEiCkCiCoJiCkJiDgAiDeGiDgCiDeO_xHqqkZx_ -----
//	const fliLatestSessionIndex = m_forkFile.GetLatestForkOrLabel();
//	if (fliLatestSessionIndex != flint(-1))
//	// _xZkqqHx_jHjKjHpAjFkKiKpCiCkKjBlGiNnNiClHiCoJiPoKiNiHiBeC_xHqqkZx_
//	{
//		// _xZkqqHx_iNmFiMoDiCmMjFkKiKpCiImKjChFiCpAjEoEiKhCiBeC_xHqqkZx_
//		if (GetNextSessionIndex() <= fliLatestSessionIndex)
//			return FALSE;
//	}
//	return m_pGate->CanMoveSessionPrev();
//----- 05.08.15 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iClBiClBiCmF_xHqqkZx_ m_forkFile.GetLatestForkOrLabel() _xZkqqHx_iCpAjClCiCnHiCmEiCkCiClNiCkKiBeB_xHqqkZx_
	// m_forkFile _xZkqqHx_iCmMiNfIjAfGiCpAjGiIiJpBiDgAiDeGiDgCiDeOiClFiCmEiCkCiCmEiCmN_xHqqkZx_
	// _xZkqqHx_iDiBiDgKiDiFiBfLiCpAiKeKiCkNiClNiCnBiCmJiDhEiDeAiDeDiDiLiDgAiDeGiDgCiDeOiCkKjBjGiCoIjDkOiNoMiCkKjChIiCkNiCmIiCmBiCmEiClFiCnMiCkEiBeC_xHqqkZx_
	// _xZkqqHx_iClBiClBiCmNjFkKiKpCiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAiDgAiDeGiDgCiDeOiClJiClIiCmJiCmGiCoIiCkAiCkGiClIjHkMiClFiCmEiClFiCnMiCkEiClBiCmGiCmJiClHiCoJiBeC_xHqqkZx_

	// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
	return BASE_CLASS::CanUndo();
//----- 05.08.15 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCHistDrawDoc::CanUndo.

//----- 04.11.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnRedo
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiMlDiCmJjGnPiClHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.08.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::OnRedo ()
//{
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKiCePiCmFiCmIiCkCiPoKiNiHiCmNiBeBiDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmMiImKjChFiCpAjAgJiCnPiCoJiClOiCkPiBeC_xHqqkZx_
//	// _xZkqqHx_jAgJiCnPiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	if (GetSessionDepth() == 0 &&
//		m_pGate->IsPositionInCmdBuffer(m_pGate->GetFilePosition() + 1))
//	//----- _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDgMiDfIiDgHiCmMjAfLiClDiCkK_xHqqkZx_0 _xZkqqHx_iKiOiCmC_xHqqkZx_ _xZkqqHx_jGnPiClJiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// Superclass_xZkqqHx_iCmM_xHqqkZx_Undo_xZkqqHx_iPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//		BASE_CLASS::OnReqMoveHistoryForward(FCReqBase(), FCReqLock());
//		// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMiNmEjFgAiJoGiBeC_xHqqkZx_
//		g_pView->SendRgnRedraw();
//	} else
//	//----- _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDgMiDfIiDgHiCmMjAfLiClDiCkK_xHqqkZx_0_xZkqqHx_iKiOiCmCiDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKiLpDiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//		BASE_CLASS::OnRedo();
//	}
//} // CFCHistDrawDoc::OnRedo.
//----- 04.11.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::CanRedo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiCoCiCoIjClMiClFiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCHistDrawDoc::CanRedo () const
{
	// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCkKiKeKiCkCiCmEiCkCiCmIiCkPiCoKiCmOiBeBjGlDiMpIiBeC_xHqqkZx_
	if (!FFCanEditDocument()) return FALSE;
	return m_pGate->CanMoveSessionNext();
} // CFCHistDrawDoc::CanRedo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnFrameTimer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCmM_xHqqkZx_OnTimer_xZkqqHx_iCkJiCoHiOmAiNhDiBeCiDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCmM_xHqqkZx_
 *			_xZkqqHx_iDhEiDiJiDgCiDfGiDiFjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.06.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnFrameTimer (UINT nIDEvent)
{
	// _xZkqqHx_iDfOiDeDiDhNiBfLiPiIjHjNjCiGiCkJiBeI_xHqqkZx_ _xZkqqHx_jDpMiCoKiOhBiCpAjGgIiCkOiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiKnGjAjEjCiGiCkJiCoHiMhIiNjAiDfPiDeDiDeBiDiNiDePiCkKjFfMiOkGjCiGiCmFiCoAiBeBiDfOiDeDiDhNiBfLiCmN_xHqqkZx_
	// _xZkqqHx_iOmAiNhDiClDiCoKiCmEiCkCiCoJiClNiCnPiBeC_xHqqkZx_
	if (m_bIsOnFrameTimerCFCHistDrawDoc) return;
	const FCAutoBackup<BOOL> backupIsOnFrameTimer(m_bIsOnFrameTimerCFCHistDrawDoc, TRUE);

	if (nIDEvent == FDTIMER_FRAME_FLUSH)
	//----- _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiDfOiDeDiDhNiBfLiCmMiPoKiNiH_xHqqkZx_ -----
	{
		if (!m_pGate->IsOpened()) return;
		// HistDraw_xZkqqHx_iCmMiPoKiNiHiBeBiDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCpA_xHqqkZx_ReadOnly_xZkqqHx_iCmFiKeKiCkNiPoKiNiHiCmNiCmIiCkCiBeC_xHqqkZx_
		// if (m_pGate->IsReadOnly()) return;

		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjAnNjCoIiClDiCoKiClNiCkJiBeI_xHqqkZx_
		BOOL bIsDocumentRequest = FALSE;

//----- 06.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		if (!IsThereDocRequest(ID_DREQ_SEND_CMD_BUFFER_TO_FILE) &&
//			(m_pGate->GetFdtimeFromFirstCmdBuffered() != -1 &&
//			 FD_LIMIT_CMD_BUFFERED_TIME < FdtimeToFdsec(m_pGate->GetFdtimeFromFirstCmdBuffered())))
//		//----- _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmMjChOjAmPiCmMiMmAjDhIiOjOiKnEiCpAiJhKiCkGiClNiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjAnNjCoIiClDiCoKiClNiCkJiBeI_xHqqkZx_
//			bIsDocumentRequest = TRUE;
//			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCpAiDhEiDeAiDeDiDiLiCnGiPjBiCkLiPgPiClH_xHqqkZx_]_xZkqqHx_iBeC_xHqqkZx_
//			PushBackDocRequest(ID_DREQ_SEND_CMD_BUFFER_TO_FILE);
//			// _xZkqqHx_iClBiCmMjClMiMoDiCmJiCmNiBeBjFeLiClI_xHqqkZx_ ID_DREQ_FLUSH_ALL _xZkqqHx_iCkKiMmEiCmOiCoKiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
//			// _xZkqqHx_iCmIiClKiCmIiCoHiBeBiDfIiDhMiDgCiDgHiNoNiPjMjClMiMoDiCmJiCmIiCmJiCkJjBiAiNoMiCkKiCkAiCmBiClNiPoKiNiHiBeBjGkCiDhEiDiJiDgCiDfGiDiFiCmM_xHqqkZx_
//			// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNmEjDhIiNoMjAkMiClHiCoJiPiIjHjNiCkKjDpMiCmBiCmEiClFiCnMiCkCiBeBiDeHiDiJiBfLiCkKjEkNjAlG_xHqqkZx_
//			// _xZkqqHx_iClHiCoJiClNiCnPiBeC_xHqqkZx_
//			// [_xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDgPiDgCiDhEiDeAiCpAiDhEiDiJiDgCiDfGiDiFiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
//			PushBackDocRequest(ID_DREQ_FLUSH_ALL);
//			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
//			PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
//		}
//----- 06.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

		if (!g_pFileServer->IsFlushing() &&
			!IsThereDocRequest(ID_DREQ_FLUSH_ALL) &&
			(FD_THRESHOLD_FLUSH_BUFFER < g_pFileServer->GetTotalUnflushedBufferSize() ||
			(g_pFileServer->GetFdtimeFromFirstModified() != -1 &&
			 FD_THRESHOLD_FLUSH_TIME < FdtimeToFdsec(g_pFileServer->GetFdtimeFromFirstModified()))))
		//----- _xZkqqHx_jBePiJpBiCmMiDhEiDiJiDgCiDfGiDiFiCkJiCoHiDfKiDgCiDfGiDiHiDjDjAjEiCkKiKoOiPiAjCgMiCpAiJhKiCkGiClNiPoKiNiHiBeB_xHqqkZx_
		//		_xZkqqHx_iIlNiCkCiCmNiBeBiNmFiMoDiCmMiNfIjAfGiCkJiCoHiCmMiMgPiJnPiOjOiKnEiCkKiKoOiPiAjCgMiCpAiJhKiCkGiClNiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjAnNjCoIiClDiCoKiClNiCkJiBeI_xHqqkZx_
			bIsDocumentRequest = TRUE;
			// ID_DREQ_FLUSH_ALL _xZkqqHx_iCmNiBeBjBkGiOjOiCmJiPiIjHjNiClDiCoKiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
			// _xZkqqHx_iCmIiClKiCmIiCoHiBeBiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjChOjAmPiClHiCoJiCmGiBeBiDiBiDgKiDiFiBfLiDfCiDhNiDjDiDgIjDjJiCkK_xHqqkZx_
			// _xZkqqHx_jGlDiMpIiCmJiCmIiCmBiCmEiClFiCnMiCkCiBeBiDeFiDeCiDjDiDgIiDeFiCmMiDiBiDgKiDiFiBfLiCmIiCmHiCmJiNmEjFgAiJoGiCkK_xHqqkZx_
			// _xZkqqHx_jBjGiCmBiCmEiClFiCnMiCkEiCkJiCoHiBeC_xHqqkZx_
			// _xZkqqHx_iClOiCkKiBeB_xHqqkZx_Document_xZkqqHx_jHhGiLiBiCmMiPiIjHjNiCmJ_xHqqkZx_ ProceedDocRequest_xZkqqHx_iKnGjAjEiCmNiMmEiCnHiCmIiCkCiBeC_xHqqkZx_
			// ProceedDocRequest_xZkqqHx_iKnGjAjEjCiGiCkJiCoH_xHqqkZx_ _xZkqqHx_iClBiCmM_xHqqkZx_OnFrameTimer _xZkqqHx_iCpAiMmEiCnBiPgPiClHiClNiCnPiBeC_xHqqkZx_
			// 
			// [_xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDgPiDgCiDhEiDeAiCpAiDhEiDiJiDgCiDfGiDiFiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_FLUSH_ALL);
			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
		}
		if (bIsDocumentRequest)
		//----- _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjAnNjCoIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_END);
//----- 04.11.29 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//			// _xZkqqHx_iDfOiDeDiDhNiBfLjAnNjCoIiBeC_xHqqkZx_
//			AfxGetMainWnd()->SetTimer(	FDTIMER_FRAME_DOC_REQUEST,
//										FD_INTERVAL_FRAME_DOC_REQUEST, NULL);
//			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiPiIjHjNiCmMiKiEiCoIiNjOiCnNiCmF_xHqqkZx_Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//			BASE_CLASS::OnFrameTimer(FDTIMER_FRAME_DOC_REQUEST);
//----- 04.11.29 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
			// Document_xZkqqHx_jHhGiLiBiCmMiDeMiDiFiBfLiCpAjChIiJiEiOmAiNhDiClHiCoJiBeCjBkGiOjOiOmAiNhDiClHiCoJiCmGiBeB_xHqqkZx_
			// OnFrameTimer _xZkqqHx_iCpAiMmEiCpBiCmFiClFiCnMiCkEiCmMiCmFjChIiJiEiOmAiNhDiClHiCoJiBeC_xHqqkZx_
			ProceedDocRequest(FALSE);
//----- 04.11.29 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		}
		// Superclass_xZkqqHx_iCmM_xHqqkZx_FDTIMER_FRAME_FLUSH_xZkqqHx_iCmMiPiIjHjNiCpAiClFiCmIiCkCiClNiCnPiBeBiPiIjHjNiPeJjHlJiBeC_xHqqkZx_
		return;
	}
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnFrameTimer(nIDEvent);
} // CFCHistDrawDoc::OnFrameTimer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnActivateDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeBiDeOiDgFiDeCiDhFiCmIiDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCkKjAnIiCoIjBnGiCoNiCoJiOjOiCmJiBeB_xHqqkZx_CFCMainFrame_xZkqqHx_iCkJiCoH_xHqqkZx_
 *			_xZkqqHx_iOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bActive	:_xZkqqHx_iClBiCmMiDfOiDfIiDeOiCkKiDeBiDeOiDgFiDeCiDhFiCmJiCmIiCoJiCmGiCkLiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBjEpBiDeBiDeOiDgFiDeCiDhF_xHqqkZx_
 *					_xZkqqHx_iCmJiCmIiCoJiCmGiCkLiCmN_xHqqkZx_ FALSE _xZkqqHx_iCkKjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.03.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnActivateDocument (BOOL bActive)
{
	if (bActive)
	//----- _xZkqqHx_iDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCkKiDeBiDeOiDgFiDeCiDhFiCmJiCmIiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeCiDfIiDeOiDiNiBfLiDiLiCmNiClFiCmIiCkCiBeC_xHqqkZx_
		PushBackDocRequest(	ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT,
							FCReqBase::IS_SCROLL_HTREE_VIEW, FALSE,
							FCReqBase::IS_SELECT_HTREE_CURRENT, FALSE,
							FCReqBase::NONE);
		// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_END);
		// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeCjBkGiOjOiOmAiNhDiClFiCmIiCkCiCmMiCmNiBeBiDeHiDgGiDeCiDfOiCkJiCoH_xHqqkZx_
		// _xZkqqHx_iDhEiDeIiDeBiDePiDiJiDjDiDgIiCkKjAnIiCoIjBnGiCoNiCmBiClNiPoKiNiHiCmJiBeBiDeHiDgGiDeCiDfOiCmM_xHqqkZx_
		// _xZkqqHx_iDhEiDeAiDeDiDiLiDhEiDiJiDgCiDfGiDiFiCoGiCoIiClBiClPiCoHiCmMiNfIjAfGiPpDiLlFiDgAiDeGiDgCiDeOiCkKjAoGiCmJ_xHqqkZx_
		// _xZkqqHx_iOmAiNhDiClDiCoKiCmEiClFiCnMiCkEiClNiCnPiBeC_xHqqkZx_
		ProceedDocRequest(FALSE);
	} else
	//----- _xZkqqHx_iDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCkKjEpBiDeBiDeOiDgFiDeCiDhFiCmJiCmIiCoJiPoKiNiH_xHqqkZx_ -----
	{
		if (GetIsDocumentOpened() && !IsReadOnly())
		//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
//----- 06.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//			if (!m_pGate->IsCmdBufferEmpty() &&
//				!IsThereDocRequest(ID_DREQ_SEND_CMD_BUFFER_TO_FILE))
//			//----- _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKjChOjAmPiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCpAiDhEiDeAiDeDiDiLiCnGiPjBiCkLiPgPiClH_xHqqkZx_]_xZkqqHx_iBeC_xHqqkZx_
//				PushBackDocRequest(ID_DREQ_SEND_CMD_BUFFER_TO_FILE);
//				// _xZkqqHx_iClBiCmMjClMiMoDiCmJiCmNiBeBjFeLiClI_xHqqkZx_ ID_DREQ_FLUSH_ALL _xZkqqHx_iCkKiMmEiCmOiCoKiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
//				// _xZkqqHx_iCmIiClKiCmIiCoHiBeBiDfIiDhMiDgCiDgHiNoNiPjMjClMiMoDiCmJiCmIiCmJiCkJjBiAiNoMiCkKiCkAiCmBiClNiPoKiNiHiBeBjGkCiDhEiDiJiDgCiDfGiDiFiCmM_xHqqkZx_
//				// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNmEjDhIiNoMjAkMiClHiCoJiPiIjHjNiCkKjDpMiCmBiCmEiClFiCnMiCkCiBeBiDeHiDiJiBfLiCkKjEkNjAlG_xHqqkZx_
//				// _xZkqqHx_iClHiCoJiClNiCnPiBeC_xHqqkZx_
//				// [_xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDgPiDgCiDhEiDeAiCpAiDhEiDiJiDgCiDfGiDiFiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
//				PushBackDocRequest(ID_DREQ_FLUSH_ALL);
//				// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
//				PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
//				PushBackDocRequest(ID_DREQ_END);
//				// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
//				ProceedDocRequest();
//			} else
//----- 06.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
			if (!g_pFileServer->IsFlushing() &&
				g_pFileServer->IsThereUnflushed() &&
				!IsThereDocRequest(ID_DREQ_FLUSH_ALL))
			//----- _xZkqqHx_jGkCiDhEiDiJiDgCiDfGiDiFiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// [_xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDgPiDgCiDhEiDeAiCpAiDhEiDiJiDgCiDfGiDiFiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
				PushBackDocRequest(ID_DREQ_FLUSH_ALL);
				// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
				PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
				PushBackDocRequest(ID_DREQ_END);
				// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
				ProceedDocRequest();
			}
		}
	}
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnActivateDocument(bActive);
} // CFCHistDrawDoc::OnActivateDocument.

//----- 05.08.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnRepairDocument
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiPeDjFjMiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.04.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::OnRepairDocument ()
//{
//	//----- _xZkqqHx_jHjKjHpAjFlGiPjB_xHqqkZx_ID_xZkqqHx_iCmGiBeBiDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfIiCpAiOoGjDlO_xHqqkZx_ ------
//	// _xZkqqHx_iMgAiOkO_xHqqkZx_ "_xZkqqHx_jFlGiPjB_xHqqkZx_ID|_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfI_xHqqkZx_"
//	// CFCDlgRepairDoc::CheckRepairHistoricDoc _xZkqqHx_iCmFjBgHiCnNjHkHiCmEiCoHiCoKiCoJiBeC_xHqqkZx_
//	WString strPrjPath;
//	::GetRepairFileProject(strPrjPath);
//	const wchar_t* wcpPrjPath = strPrjPath.begin();
//	long lDocId = wcstol(wcpPrjPath, (wchar_t**)&wcpPrjPath, 10);
//	// _xZkqqHx_iLoGjAnIiCoIjFlGiOjK_xHqqkZx_"|"_xZkqqHx_iCpAjBjHiCoJiBeC_xHqqkZx_
//	wcpPrjPath++;
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLiCkJiCoHiDgGiBfLiDfOiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
//	FCHiProject project;
//	project.SetFilePath(wcpPrjPath);
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLiCpA_xHqqkZx_READ,SHARED_xZkqqHx_iCmFiDiNiDgCiDeOiBjFiDhGiDiNiDfHiDeGiDeOiDgHiNfIjAfGiBeC_xHqqkZx_
//	// _xZkqqHx_iDiNiDgCiDeOiCmFiCkLiCmIiCkCiPoKiNiHiCmNiPeJiCoNiCoIiBeC_xHqqkZx_
//	FCDbReadLock autoLockProjectRead;
//	BOOL bProjectUpdated;
//	if (!project.LockAndUpdateData(bProjectUpdated, autoLockProjectRead)) return;
//	// _xZkqqHx_iPeDjFjMjBmOiPnLiCmMiDhEiDeAiDeDiDiLiCpAiOoGjDlOiBeC_xHqqkZx_
//	WString strFilePath;
//	::SeeRepairFileStack(&strFilePath);
//	// strFilePath_xZkqqHx_iCmMiKgHjCkDiOhBiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
////----- 03.12.07 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	WString strExt;	// _xZkqqHx_iDhEiDeAiDeDiDiLiKgHjCkDiOhBiBeCjHoBiBeG_xHqqkZx_".txt"
////	::FFSplitFileName(NULL, &strExt, strFilePath);
////----- 03.12.07 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiKgHjCkDiOhBiBeCjHoBiBeG_xHqqkZx_".txt"
//	WString strExt = FFGetFileExtension(strFilePath);
////----- 03.12.07 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiCmMiPoKiNiHiBeC_xHqqkZx_
//	if (wcscmp(strExt, FDHI_COMMAND_TABLE_ID) == 0) RepairHistoryFile(project, lDocId);
//	if (wcscmp(strExt, FDHI_SUMMARY_TABLE_ID) == 0) RepairHistoryIndex(project, lDocId);
//	if (wcscmp(strExt, FDHI_FORK_TABLE_ID) == 0) RepairFork(project, lDocId);
//#ifndef _DEBUG
//_xZkqqHx_iClBiClBiCmJ_xHqqkZx_mdsi/mdhe_xZkqqHx_iCmMiDiKiDhJiDeBiBeC_xHqqkZx_
//#endif//_DEBUG
//} // CFCHistDrawDoc::OnRepairDocument.
//----- 05.08.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 06.02.14 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::CmdCreate1Obj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iCfAjFjEjFgJiNoMjAkMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDgFiDeMiDfIiDgHiCmMiPeDjAlDiCpAjFnPiCoHiCkGiCoJiClNiCnPiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::CmdCreate1Obj (FCObjDynabase* objp, const FCLayerZOrder& lzorder)
//{
//	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiOoNiCpAjBfDiCmEiOoGiCoIiPgPiClHiBeCiDePiDiLiBfLiDhGjFjEjFgJiCmMiDiBiDjDiDgPiBfLiCmMiPoKiNiHiCpAiNgMjHlGiBeC_xHqqkZx_
//	ObjDynabaseVector vLabelObj;
//	objp->GetKindOfMembers(vLabelObj, FDOJ_LABEL);
//	ObjDynabaseVector::const_iterator iLbl;
//	for (iLbl = vLabelObj.begin(); iLbl != vLabelObj.end(); iLbl++)
//	{
//		if ((*iLbl)->GetRichText() != NULL)
//		//----- _xZkqqHx_iDgFiDeMiDfIiDgHiCkKiKnMiCnMiCoKiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			// wchar_t_xZkqqHx_iMfOiCmMjFlGiOjKjHpBiCpAiOoGiCoIiPgPiClHiBeCiJpMiNhDiCmN_xHqqkZx_"\r\n"_xZkqqHx_iCmFiCmNiCmIiCkNiBeB_xHqqkZx_"\n"_xZkqqHx_iCmMiCnNiBeC_xHqqkZx_
//			WString wstrLabel;
//			(*iLbl)->GetRichText()->GetText(wstrLabel);
//			// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeCiClBiClBiCmFjDgPjIfOiClFiClNiPoOjFpBiCmNiBeB_xHqqkZx_
//			// SessionEnd_xZkqqHx_iCmFiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmJjDgPjIfOiClDiCoKiCoJiBeC_xHqqkZx_
//			RegisterLabelObj((*iLbl)->GetObjID(), NULL, wstrLabel);
//		}
//	}
//	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
//	BASE_CLASS::CmdCreate1Obj(objp, lzorder);
//} // CFCHistDrawDoc::CmdCreate1Obj.
//----- 06.02.14 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 06.02.14 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::CmdDelete1Obj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iCfAjFjEjFgJiNoNiPjMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDgFiDeMiDfIiDgHiCmMiPeDjAlDiCpAjFnPiCoHiCkGiCoJiClNiCnPiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::CmdDelete1Obj (FCObjDynabase* objp)
//{
//	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiOoNiCpAjBfDiCmEiOoGiCoIiPgPiClHiBeCiDePiDiLiBfLiDhGjFjEjFgJiCmMiDiBiDjDiDgPiBfLiCmMiPoKiNiHiCpAiNgMjHlGiBeC_xHqqkZx_
//	ObjDynabaseVector vLabelObj;
//	objp->GetKindOfMembers(vLabelObj, FDOJ_LABEL);
//	ObjDynabaseVector::const_iterator iLbl;
//	for (iLbl = vLabelObj.begin(); iLbl != vLabelObj.end(); iLbl++)
//	{
//		if ((*iLbl)->GetRichText() != NULL)
//		//----- _xZkqqHx_iDgFiDeMiDfIiDgHiCkKiKnMiCnMiCoKiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			// wchar_t_xZkqqHx_iMfOiCmMjFlGiOjKjHpBiCpAiOoGiCoIiPgPiClHiBeCiJpMiNhDiCmN_xHqqkZx_"\r\n"_xZkqqHx_iCmFiCmNiCmIiCkNiBeB_xHqqkZx_"\n"_xZkqqHx_iCmMiCnNiBeC_xHqqkZx_
//			WString wstrLabel;
//			(*iLbl)->GetRichText()->GetText(wstrLabel);
//			// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeCiClBiClBiCmFjDgPjIfOiClFiClNiPoOjFpBiCmNiBeB_xHqqkZx_
//			// SessionEnd_xZkqqHx_iCmFiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmJjDgPjIfOiClDiCoKiCoJiBeC_xHqqkZx_
//			RegisterLabelObj((*iLbl)->GetObjID(), wstrLabel, NULL);
//		}
//	}
//	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
//	BASE_CLASS::CmdDelete1Obj(objp);
//} // CFCHistDrawDoc::CmdDelete1Obj.
//----- 06.02.14 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.11.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::CmdDeleteObjs
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFkBjAjEjFjEjFgJiNoNiPjMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDgFiDeMiDfIiDgHiCmMiPeDjAlDiCpAjFnPiCoHiCkGiCoJiClNiCnPiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::CmdDeleteObjs (SheetID stid, const ObjDynabaseVector& vObj)
//{
//	ObjDynabaseVector::const_iterator iObj;
//	for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
//	{
//		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiOoNiCpAjBfDiCmEiOoGiCoIiPgPiClHiBeCiDePiDiLiBfLiDhGjFjEjFgJiCmMiDiBiDjDiDgPiBfLiCmMiPoKiNiHiCpAiNgMjHlGiBeC_xHqqkZx_
//		ObjDynabaseVector vLabelObj;
//		(*iObj)->GetKindOfMembers(vLabelObj, FDOJ_LABEL);
//		ObjDynabaseVector::const_iterator iLbl;
//		for (iLbl = vLabelObj.begin(); iLbl != vLabelObj.end(); iLbl++)
//		{
//			if ((*iLbl)->GetRichText() != NULL)
//			//----- _xZkqqHx_iDgFiDeMiDfIiDgHiCkKiKnMiCnMiCoKiCoJiPoKiNiH_xHqqkZx_ -----
//			{
//				// wchar_t_xZkqqHx_iMfOiCmMjFlGiOjKjHpBiCpAiOoGiCoIiPgPiClHiBeCiJpMiNhDiCmN_xHqqkZx_"\r\n"_xZkqqHx_iCmFiCmNiCmIiCkNiBeB_xHqqkZx_"\n"_xZkqqHx_iCmMiCnNiBeC_xHqqkZx_
//				WString wstrLabel;
//				(*iLbl)->GetRichText()->GetText(wstrLabel);
//				// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeCiClBiClBiCmFjDgPjIfOiClFiClNiPoOjFpBiCmNiBeB_xHqqkZx_
//				// SessionEnd_xZkqqHx_iCmFiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmJjDgPjIfOiClDiCoKiCoJiBeC_xHqqkZx_
//				RegisterLabelObj((*iLbl)->GetObjID(), wstrLabel, NULL);
//			}
//		}
//	}
//	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
//	BASE_CLASS::CmdDeleteObjs(stid, vObj);
//} // CFCHistDrawDoc::CmdDeleteObjs.
//----- 05.11.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::BeforeCmdModifyAbcRichText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CmdModifyAbcRichText _xZkqqHx_iCmMiPiAjEpFiCpAiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_iDgFiDeMiDfIiDgHjFmPiNfIjBePiCmMjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	CmdModifyAbcRichText _xZkqqHx_iCpAiMmEiCnBiPgPiClHjBePiCmJiBeBiClBiCmMiKnGjAjEiCpAiMmEiCnBiPgPiClHjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
 *			HistDrawDoc _xZkqqHx_iCmFiDiJiDhIiDiLiCpAjHjKjHpAiCmJjDgPjIfOiClHiCoJiClNiCnPiCmJjFeLjAhLiBeC_xHqqkZx_
 *			pObj _xZkqqHx_iCmNiBeBiDgFiDeMiDfIiDgHjFmPiNfIjBePiCmMjFjEjFgJiCmFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.10.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::BeforeCmdModifyAbcRichText (FCObjFigure* pObj)
{
	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDgFiDeMiDfIiDgHjFmPiNfIiOjOiCmJiBeBjFmPiNfIjBePiCmMiDgFiDeMiDfIiDgHiCpAiKgPiCkGiCmEiCkIiCkNiBeC_xHqqkZx_
	if (pObj->IsKindOf(FDOJ_LABEL) && pObj->GetRichText() != NULL)
	//----- _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// wchar_t_xZkqqHx_iMfOiCmMjFlGiOjKjHpBiCpAiOoGiCoIiPgPiClHiBeCiJpMiNhDiCmN_xHqqkZx_"\r\n"_xZkqqHx_iCmFiCmNiCmIiCkNiBeB_xHqqkZx_"\n"_xZkqqHx_iCmMiCnNiBeC_xHqqkZx_
		m_wstrLabelBefore.erase();
		pObj->GetRichText()->GetText(m_wstrLabelBefore);
	}
} // CFCHistDrawDoc::BeforeCmdModifyAbcRichText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::CmdModifyAbcRichText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiPeDjAlDiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDgFiDeMiDfIiDgHiCmMiPeDjAlDiCpAjFnPiCoHiCkGiCoJiClNiCnPiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::CmdModifyAbcRichText (FCObjFigure* pObj, long lQueueSz, const BYTE* bypQueue)
{
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::CmdModifyAbcRichText(pObj, lQueueSz, bypQueue);
	if (pObj->IsKindOf(FDOJ_LABEL) && pObj->GetRichText() != NULL)
	//----- _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiPoKiNiH_xHqqkZx_ -----
	{
		WString wstrLabelAfter;
		pObj->GetRichText()->GetText(wstrLabelAfter);
		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeCiClBiClBiCmFjDgPjIfOiClFiClNiPoOjFpBiCmNiBeB_xHqqkZx_
		// SessionEnd_xZkqqHx_iCmFiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmJjDgPjIfOiClDiCoKiCoJiBeC_xHqqkZx_
		RegisterLabelObj(pObj->GetObjID(), m_wstrLabelBefore, wstrLabelAfter);
		m_wstrLabelBefore.erase();
	}
} // CFCHistDrawDoc::CmdModifyAbcRichText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::CmdCreate1RichText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiNoMjAkMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDgFiDeMiDfIiDgHiCmMiPeDjAlDiCpAjFnPiCoHiCkGiCoJiClNiCnPiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::CmdCreate1RichText (FCObjFigure* pFig, FCRichText* pText)
{
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::CmdCreate1RichText(pFig, pText);
	if (pFig->IsKindOf(FDOJ_LABEL) && pFig->GetRichText() != NULL)
	{
		// wchar_t_xZkqqHx_iMfOiCmMjFlGiOjKjHpBiCpAiOoGiCoIiPgPiClHiBeCiJpMiNhDiCmN_xHqqkZx_"\r\n"_xZkqqHx_iCmFiCmNiCmIiCkNiBeB_xHqqkZx_"\n"_xZkqqHx_iCmMiCnNiBeC_xHqqkZx_
		WString wstrLabel;
		pFig->GetRichText()->GetText(wstrLabel);
		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeCiClBiClBiCmFjDgPjIfOiClFiClNiPoOjFpBiCmNiBeB_xHqqkZx_
		// SessionEnd_xZkqqHx_iCmFiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmJjDgPjIfOiClDiCoKiCoJiBeC_xHqqkZx_
		RegisterLabelObj(pFig->GetObjID(), NULL, wstrLabel);
	}
} // CFCHistDrawDoc::CmdCreate1RichText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::CmdDelete1RichText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiNoNiPjMiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDgFiDeMiDfIiDgHiCmMiPeDjAlDiCpAjFnPiCoHiCkGiCoJiClNiCnPiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::CmdDelete1RichText (FCObjFigure* objp)
{
	if (objp->IsKindOf(FDOJ_LABEL) && objp->GetRichText() != NULL)
	{
		// wchar_t_xZkqqHx_iMfOiCmMjFlGiOjKjHpBiCpAiOoGiCoIiPgPiClHiBeCiJpMiNhDiCmN_xHqqkZx_"\r\n"_xZkqqHx_iCmFiCmNiCmIiCkNiBeB_xHqqkZx_"\n"_xZkqqHx_iCmMiCnNiBeC_xHqqkZx_
		WString wstrLabel;
		objp->GetRichText()->GetText(wstrLabel);
		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeCiClBiClBiCmFjDgPjIfOiClFiClNiPoOjFpBiCmNiBeB_xHqqkZx_
		// SessionEnd_xZkqqHx_iCmFiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmJjDgPjIfOiClDiCoKiCoJiBeC_xHqqkZx_
		RegisterLabelObj(objp->GetObjID(), wstrLabel, NULL);
	}
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::CmdDelete1RichText(objp);
} // CFCHistDrawDoc::CmdDelete1RichText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::ExecDocRequest
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFmKiCmI_xHqqkZx_MolipDraw.exe_xZkqqHx_iCpAiLeOjDkOiClFiBeBiMlLiNnNiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpA_xHqqkZx_
 *			_xZkqqHx_iIpIiCkLiMhAiCkKiClJiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iLeOjDkOiCmJjAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCHistDrawDoc::ExecDocRequest () const
{
	FCReqBase reqBaseTop = m_reqResult;
	reqBaseTop.m_drqRequest = ID_DREQ_NOP;
	return FFExecSpecDocRequest(&reqBaseTop, *m_pvDocRequest, L"-histdraw");
} // CFCHistDrawDoc::ExecDocRequest.

//----- 05.08.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqAppExit
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_APP_EXIT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiPeJjHlJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.11.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCHistDrawDoc::OnReqAppExit (FCReqBase& ret, FCReqLock& reqLock)
//{
////----- 05.08.12 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	// SaveModified_xZkqqHx_iKnGjAjEiCmFiCnAiCmBiCkJiCkJiCoHiCmIiCkCiCoGiCkEiBeBiPpAiMiPiCpAiDeOiDiKiDeBiClFiCmEiCkJiCoHiPeJjHlJiPiIjHjNiBeC_xHqqkZx_
////	if (g_pProject->IsProjectOpened() && g_pProject->GetIsUnknownFile())
////		g_pProject->SetIsUnknownFile(FALSE);
////	SetModifiedFlag(FALSE);
////----- 05.08.12 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	if (g_pProject->IsProjectOpened())
//	//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// [_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
//		InsertDocRequest(0, ID_DREQ_CLOSE_PROJECT);
//		if (GetIsDocumentOpened())
//		//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			// [_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
//			InsertDocRequest(0, ID_DREQ_CLOSE_HIDOCUMENT);
//		}
//		return FD_DRR_RETRY;	// _xZkqqHx_jDkPiClGiPiIjHjNiCpAiMhAjBlBiClHiCoJiBeC_xHqqkZx_
//	}
////----- 05.08.12 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//	FFGetMainWnd()->PostMessage(WM_COMMAND, ID_APP_EXIT, 0);
//	return FD_DRR_OK;
//} // CFCHistDrawDoc::OnReqAppExit.
//----- 05.08.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqSaveAndExit
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SAVE_AND_EXIT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jFnLjBlGiClFiCmEiDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiPeJjHlJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqSaveAndExit (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBjBhNjDpMiImKjChFiBeC_xHqqkZx_
	long lPos = 1;
	// [_xZkqqHx_jFnLjBlGiClFiCmEiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
	InsertDocRequest(lPos++, ID_DREQ_SAVE_AND_CLOSE_PROJECT);
	// _xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_CANCEL_xZkqqHx_iImIiKePiCmMiPoKiNiHiCmNiPeJjHlJiBeC_xHqqkZx_
	InsertDocRequest(	lPos++, 
						ID_DREQ_IF_NOT,
						FCReqBase::RETURN, IDCANCEL,
						FCReqBase::NONE);
		// _xZkqqHx_iDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiPeJjHlJiBeC_xHqqkZx_
		InsertDocRequest(lPos++, ID_DREQ_APP_EXIT);
	// _xZkqqHx_iPpAiMiPiOmAiNhDiPeJjCfLiBeC_xHqqkZx_
	InsertDocRequest(lPos++, ID_DREQ_END_IF);
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqSaveAndExit.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqSaveAndCloseProject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SAVE_AND_CLOSE_PROJECT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jFnLjBlGiClFiCmEiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqSaveAndCloseProject (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmIiCmHiCmMiPoKiNiHiBeC_xHqqkZx_
	// _xZkqqHx_jFfHiPiAiDgDiBfLiDiLiCpAjAnNjCoIiClHiCoJiClBiCmGiCmFiDfKiDgCiDfGiDiHiDjDiBiBiCePiCmGiCmFiCkLiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiBiBiCePiCmFiCmIiCkCiCmGiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmNiPiIjHjNiCmFiCkLiCmIiCkCiBeC_xHqqkZx_

	if (IsOleDocumentsOpened() ||
		g_pView->GetCurrentTool()->IsEditingText())
	{
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//		g_pView->PostMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
		g_pView->SwitchCurrentTool(ID_TOOL_SELECT, FALSE);
		return FD_DRR_LATER;	// _xZkqqHx_jDkPiClGiPiIjHjNiCpAiMhAjBlBiClHiCoJiPoKiNiHiBeC_xHqqkZx_
	}

	// _xZkqqHx_jFnEjCgMiBeC_xHqqkZx_
	long lReturn = IDYES;
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBjBhNjDpMiImKjChFiBeC_xHqqkZx_
	long lPos = 1;
	if (GetIsDocumentOpened())
	//----- _xZkqqHx_jFlGiPjBiCkKiKeKiCkJiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
	{
		if (g_pProject->GetIsUnknownFile())
		//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiJlMiCmMiDhEiDeAiDeDiDiLiCmMiPoKiNiH_xHqqkZx_ -----
		{
			if (m_pGate->GetRecordCount() != 1)
			//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCmJjFmPiNfIiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iDiNiDgCiDeOiCpAjBfDiCmEiJpAiPjMiBeCiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiClNiCnPiBeC_xHqqkZx_
				reqLock.Unlock(FCReqLock::ALL);
				// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmNiNfIjAfGiClDiCoKiCmEiCkCiCnMiClHiBeCjFnLjBlGiClFiCnMiClHiCkJiBeI_xHqqkZx_
				lReturn = FFMessageBox(	FormatResString(IDS_MSG_IS_SAVE_PROJECT,
														g_pProject->GetTitle().c_str()),
										NULL, MB_YESNOCANCEL);
				if (lReturn == IDYES)
				//----- YES _xZkqqHx_iDhLiDfOiDjDiCmMiPoKiNiH_xHqqkZx_ -----
				{
					// [_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFnLjBlGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
					InsertDocRequest(lPos++, ID_DREQ_SAVE_HIDOCUMENT);
					// [_xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiCmMiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
					InsertDocRequest(lPos++, ID_DREQ_DLG_SAVE_UNKNOWN_PROJECT_AS);
					// _xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_
					InsertDocRequest(	lPos++, 
										ID_DREQ_IF,
										FCReqBase::RETURN, IDOK,
										FCReqBase::NONE);
						// _xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiClHiCoJiBeCiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
						InsertDocRequest(lPos++, ID_DREQ_SAVE_UNKNOWN_PROJECT_AS);
						// [_xZkqqHx_jHjKjHpAjFlGiPjBiBeFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
						InsertDocRequest(lPos++, ID_DREQ_CLOSE_HIDOCUMENT_AND_PROJECT);
					// _xZkqqHx_iPpAiMiPiOmAiNhDiPeJjCfLiBeC_xHqqkZx_
					InsertDocRequest(lPos++, ID_DREQ_END_IF);
				} else
				if (lReturn == IDNO)
				//----- NO _xZkqqHx_iDhLiDfOiDjDiCmMiPoKiNiH_xHqqkZx_ -----
				{
					// [_xZkqqHx_jHjKjHpAjFlGiPjBiBeFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
					InsertDocRequest(lPos++, ID_DREQ_CLOSE_HIDOCUMENT_AND_PROJECT);
				} else
				//----- CANCEL_xZkqqHx_iDhLiDfOiDjDiCmMiPoKiNiH_xHqqkZx_ -----
				{
				}
			} else
			//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCmJjFmPiNfIiCkKiCmIiCkCiPoKiNiH_xHqqkZx_ -----
			{
				// [_xZkqqHx_jHjKjHpAjFlGiPjBiBeFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
				InsertDocRequest(lPos++, ID_DREQ_CLOSE_HIDOCUMENT_AND_PROJECT);
			}
		} else
		//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKjAlDiOkOiCmFiCkAiCoJiPoKiNiH_xHqqkZx_ -----
		if (IsModified())
		//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCmJiPeDjAlDiCkKjDpMiCmBiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfGiDiDiDgCiDgHiDfPiDeFiDjDiOjOiCpAiNgMjHlGiClFiCmEiBeBjFnLjBlGiClHiCoJiCkJiClFiCmIiCkCiCkJiCpAjGoCiCkCiNiHiCoNiClJiCmEiCkCiClNiCkKiBeB_xHqqkZx_
			// _xZkqqHx_iDfGiDiDiDgCiDgHiDfPiDeFiDjDiCmFiCmNjFnLjBlGiClHiCoJiOjOiKnEiCpAiPfMjFkKiCmGiCmBiCmEiCkNiCoKiCoJiCmMiCmFjGoCjBoIiCmIiCkCiCmGjElLjCgGiBeC_xHqqkZx_
			// _xZkqqHx_jGlDiPpAiMiPiCmFiOkJjDkOjFnLjBlGiClHiCoJiCoGiCkEiCmJiClFiClNiBeC_xHqqkZx_

//----- 06.02.26 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//			// _xZkqqHx_jFnLjBlGiClHiCoJiCkJiCmHiCkEiCkJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//			lReturn = IDNO;
//			if (g_pProject->IsQualifiedToModify(FFGetApp()->GetUserId()))
//			//----- _xZkqqHx_iPjBiCkLiNjOiCnNiCkKiLjGiJmCiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iDiNiDgCiDeOiCpAjBfDiCmEiJpAiPjMiBeCiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiClNiCnPiBeC_xHqqkZx_
//				reqLock.Unlock(FCReqLock::ALL);
//				// _xZkqqHx_jHjKjHpAjFlGiPjBiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmNiNfIjAfGiClDiCoKiCmEiCkCiCnMiClHiBeCjFnLjBlGiClFiCnMiClHiCkJiBeI_xHqqkZx_\r\n_xZkqqHx_jFnLjBlGiClFiCmIiCkCiPoKiNiHiCmNiOjPiJpBiCmMjFlGiPjBjDmHiNjOiCnNiCkKjChIiCkNiCmIiCoIiCnMiClHiBeC_xHqqkZx_
//				lReturn = FFMessageBox(FormatResString(IDS_MSG_IS_SAVE_HIDOCUMENT,
//													(const wchar_t*)g_pProject->GetHidocumentTitle(GetDocumentId(), TRUE)),
//									 NULL, MB_YESNOCANCEL);
//			}
//			if (lReturn == IDYES)
//			//----- YES _xZkqqHx_iDhLiDfOiDjDiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				// [_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFnLjBlGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
//				InsertDocRequest(lPos++, ID_DREQ_SAVE_HIDOCUMENT);
//				// [_xZkqqHx_jHjKjHpAjFlGiPjBiBeFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
//				InsertDocRequest(lPos++, ID_DREQ_CLOSE_HIDOCUMENT_AND_PROJECT);
//			} else
//			if (lReturn == IDNO)
//			//----- NO _xZkqqHx_iDhLiDfOiDjDiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				// [_xZkqqHx_jHjKjHpAjFlGiPjBiBeFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
//				InsertDocRequest(lPos++, ID_DREQ_CLOSE_HIDOCUMENT_AND_PROJECT);
//			} else
//			//----- CANCEL_xZkqqHx_iDhLiDfOiDjDiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//			}
//----- 06.02.26 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
			if (g_pProject->IsQualifiedToModify(FFGetApp()->GetUserId()))
			//----- _xZkqqHx_iPjBiCkLiNjOiCnNiCkKiLjGiJmCiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
			{
				// [_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFnLjBlGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
				InsertDocRequest(lPos++, ID_DREQ_SAVE_HIDOCUMENT);
			}
			// [_xZkqqHx_jHjKjHpAjFlGiPjBiBeFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
			InsertDocRequest(lPos++, ID_DREQ_CLOSE_HIDOCUMENT_AND_PROJECT);
//----- 06.02.26 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		} else
		//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCmJiPeDjAlDiCkKjDpMiCmBiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			// [_xZkqqHx_jHjKjHpAjFlGiPjBiBeFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
			InsertDocRequest(lPos++, ID_DREQ_CLOSE_HIDOCUMENT_AND_PROJECT);
		}
	} else
	//----- _xZkqqHx_jFlGiPjBiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// [_xZkqqHx_jHjKjHpAjFlGiPjBiBeFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
		InsertDocRequest(lPos++, ID_DREQ_CLOSE_HIDOCUMENT_AND_PROJECT);
	}
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePjFjMiLeBjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	// IDYES:_xZkqqHx_jFnLjBlG_xHqqkZx_ -> _xZkqqHx_iPeJjHlJ_xHqqkZx_ _xZkqqHx_iIlNiCkCiCmN_xHqqkZx_ _xZkqqHx_iPeDjAlDjGlDiClFiCmFiPeJjHlJ_xHqqkZx_
	// IDNO:_xZkqqHx_jGkCjFnLjBlG_xHqqkZx_ -> _xZkqqHx_iPeJjHlJ_xHqqkZx_
	// IDCANCEL:_xZkqqHx_iPeJjHlJiClFiCmIiCkCiBeC_xHqqkZx_
	ret.SetReturn(lReturn);
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqSaveAndCloseProject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqOpenProject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_OPEN_PROJECT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiKeKiCkNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	arg	:_xZkqqHx_iIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			ret	:_xZkqqHx_iMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	FD_DRR_OK:	_xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
 *			FD_DRR_LATER:	_xZkqqHx_iPiIjHjNiCpAiDhJiDjDiDgGiDeCiDjDiDePiBeC_xHqqkZx_
 *			FD_DRR_ERR	_xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.08.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqOpenProject (FCReqBase& ret, FCReqLock& reqLock)
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	FTDocReqResult result = BASE_CLASS::OnReqOpenProject(ret, reqLock);
	if (result != FD_DRR_OK) return result;
	if (g_pProject->IsProjectOpened() && g_pProject->GetIsUnknownFile())
	//----- _xZkqqHx_iIoKiOjOiDhEiDeAiDeDiDiLiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iPeDjFjMiPoOjFpBiCmNiDhGiDiNiDfKiDfI_xHqqkZx_ID(PID)_xZkqqHx_iCpAiDeMiBfLiCmJiDiMiDfHiDfIiDgHiDiKjDgPjIfOiClDiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iPeDjFjMiPoOjFpBiCkKjDkPiClG_xHqqkZx_PID_xZkqqHx_iCmFiKpJiCmJjDgPjIfOiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmNiBeBiClLiCoKiCpAiJmLiLpDiCmM_xHqqkZx_
		// PID_xZkqqHx_iCmJiInKjDkOiBeCjDkPiClG_xHqqkZx_PID_xZkqqHx_iCmIiCoHiBeBiNkBiOgHiCoNiCoKiCmEiCkCiCoJjDgPjIfOiCmFiCmNjHeMiCoIjDlOiCmIiCkC_xHqqkZx_
		// _xZkqqHx_iClNiCnPiBeBiInKjDkOiClFiCmEiCoAjGoCjBoIjGlDiCkCiBeC_xHqqkZx_
		::BackupRepairDocName();
		// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCmJiDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjDiCpAiLeMjIfOiBeCiDhEiDeAiDeDiDiLiPeDjFjMiCmJjEpFiCkGiCmEiBeC_xHqqkZx_
		::SaveRepairDocName(g_pProject->GetFilePath(), L"", L"");
	} else
	//----- _xZkqqHx_jCmKiPoNiCmMiDhGiDiNiDfHiDeGiDeOiDgHiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDiBiDjDiDgPiBfLiCkJiCmHiCkEiCkJjClCiCnHiCoJ_xHqqkZx_]
		InsertDocRequest(1, ID_DREQ_CHECK_IS_MEMBER_OF_PROJECT_USER);
	}
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqOpenProject.

//----- 06.02.01 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqCloseProject
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_CLOSE_PROJECT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	arg	:_xZkqqHx_iIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			ret	:_xZkqqHx_iMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	FD_DRR_OK:	_xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
// *			FD_DRR_LATER:	_xZkqqHx_iPiIjHjNiCpAiDhJiDjDiDgGiDeCiDjDiDePiBeC_xHqqkZx_
// *			FD_DRR_ERR	_xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.08.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCHistDrawDoc::OnReqCloseProject (FCReqBase& ret, FCReqLock& reqLock)
//{
//	if (g_pProject->IsProjectOpened() && g_pProject->GetIsUnknownFile())
//	//----- _xZkqqHx_iIoKiOjOiDhEiDeAiDeDiDiLiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCkJiCoHiDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjDiCmMiLeMjIfOiCpAiNoNiPjMiBeC_xHqqkZx_
//		::DeleteRepairDocName();
//	}
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	return BASE_CLASS::OnReqCloseProject(ret, reqLock);
//} // CFCHistDrawDoc::OnReqCloseProject.
//----- 06.02.01 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqOpenHidocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_OPEN_HIDOCUMENT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_jHjKjHpAjFlGiPjBiCpAiKeKiCkNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	arg	:_xZkqqHx_iIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			ret	:_xZkqqHx_iMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	FD_DRR_OK:	_xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
 *			FD_DRR_LATER:	_xZkqqHx_iPiIjHjNiCpAiDhJiDjDiDgGiDeCiDjDiDePiBeC_xHqqkZx_
 *			FD_DRR_ERR	_xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.03.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqOpenHidocument (FCReqBase& ret, FCReqLock& reqLock)
{
	ASSERT(g_pProject->IsProjectOpened());
	// _xZkqqHx_iKnEiIoBiCmBiClNjFlGiPjBiCpAiKeKiClBiCkEiCmGiClFiClNiCmGiCkLiBeBiNkBiCmMjFlGiPjBiCkKjFmCiClGiCmEiClFiCnMiCkEiCmMiCpA_xHqqkZx_
	// _xZkqqHx_jGgIiCkOiClNiCnPiBeBiClBiClBiCmFjFlGiPjBiCkKjBlGiNnNiClHiCoJiCkJiDgAiDeGiDgCiDeOiClHiCoJiBeC_xHqqkZx_
	if (g_pProject->GetDocumentRec(ret.GetHidocumentId()).GetIsInvalid())
	//----- _xZkqqHx_iOhHjCoIiClDiCoKiClNjHjKjHpAjFlGiPjBiCkKiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDiNiDgCiDeOiCpAjBfDiCmEiJpAiPjMiBeCiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiClNiCnPiBeC_xHqqkZx_
		reqLock.Unlock(FCReqLock::ALL);
		// _xZkqqHx_iBhFiOhHjCoIiClDiCoKiClNjHjKjHpAjFlGiPjBiCkKiMkJiCmCiCkJiCoIiCnMiClJiCpBiBeCiBhG_xHqqkZx_
		FFErrorBox(IDS_ERR_MSG_DOC_IS_NOT_FOUND);
		if (FCRecentList::Find(	NULL,
								NULL,
								g_pProject->GetFilePath(),
								FFFormatString(L"%d", ret.GetHidocumentId()),
								NULL,
								NULL,
								NULL) != -1)
		//----- _xZkqqHx_iNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiDiKiDfIiDgHiCmJjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiCmMiDiKiDfIiDgHiCkJiCoHjDgPjIfOiCpAiNoNiPjMiClFiCnMiClHiCkJiBeI_xHqqkZx_
			if (FFMessageBox(IDS_MSG_IS_REMOVE_RECENT_FILE, 0, MB_YESNO) == IDYES)
			//----- YES_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_jDkPiClGjHjKjHpAjFlGiPjBiCpAiKnMiCnOiClHiCnHiCmEiCpAiBeBiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiCkJiCoHiNoNiPjMiBeC_xHqqkZx_
				// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCkJiCoHiNoNiPjMiBeC_xHqqkZx_
				for (;;)
				{
					short nRecentIndex = FCRecentList::Find(NULL,
															NULL,
															g_pProject->GetFilePath(),
															FFFormatString(L"%d", ret.GetHidocumentId()),
															NULL,
															NULL,
															NULL);
					if (nRecentIndex == -1) break;
					FCRecentList::Del(nRecentIndex);
				}
			}
		}
		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiCmNjFfMiOkGiNmPiCnNiCmIiCmMiCmFiBeBiDeHiDiJiBfLiCkKjFfMiOkGiClDiCoKiCmIiCkCiCoGiCkE_xHqqkZx_
		// _xZkqqHx_iDeHiDiJiBfL_xHqqkZx_ID_xZkqqHx_iCpAiDiKiDfKiDgCiDgHiClFiCmEiCkIiCkNiBeC_xHqqkZx_
		FFResetDDError();
		// _xZkqqHx_iDeHiDiJiBfLiCpAjFnEiClHiBeCjHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAiNfIjAfGiClHiCoJjFeLjHhGiCkKiCkAiCoJiCmMiCmFiBeB_xHqqkZx_FD_DRR_CANCEL_xZkqqHx_iCpAjFnEiClFiCmEiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
		return FD_DRR_ERR;
	}
	if (IsClosableTemporaryDocument())
	//----- _xZkqqHx_iIoKiOjOjDeJiCmIjHjKjHpAjFlGiPjBiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmNiBeB_xHqqkZx_[_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
		if (GetIsDocumentOpened())
		{
			InsertDocRequest(0, ID_DREQ_CLOSE_HIDOCUMENT);
			return FD_DRR_RETRY;	// _xZkqqHx_jDkPiClGiPiIjHjNiCpAiMhAjBlBiClHiCoJiBeC_xHqqkZx_
		}
	}

	// _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkJiCoKiCmEiCkCiCoJiPoKiNiHiCpAiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
	if (GetIsDocumentOpened())
	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkJiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jDkPiClGjHjKjHpAjFlGiPjBiCkKiKeKiCkJiCoKiCmEiCkCiCoJiPoKiNiHiCmNiPeJjHlJiBeC_xHqqkZx_
		// CFCMolipDrawApp::InitInstance_xZkqqHx_iKnGjAjEjCiGiCmM_xHqqkZx_cmdInfo.CheckSameDocumentApp_xZkqqHx_iKnGjAjE_xHqqkZx_
		// _xZkqqHx_iCmMiMiLiJmKiBeBjDkPiClGjHjKjHpAjFlGiPjBiCkKiMkJiCmCiCkJiCmBiClNiPoKiNiHiCmNiBeB_xHqqkZx_OPEN_HIDOCUMENT_xZkqqHx_jHhGiLiBiCpA_xHqqkZx_
		// _xZkqqHx_jEkNiNhDiClFiCmEiCkNiCoJiCmMiCmFiBeBiClBiCoKiCpAjGlDiOiLiClHiCoJiClNiCnPiCmJiCoAiImIiJlKiCkKjFeLjHhGiBeC_xHqqkZx_
		if (GetDocumentId() == ret.GetHidocumentId())
			return FD_DRR_OK;

		// _xZkqqHx_jDkPiClGjFlGiPjBiDhEiDeAiDeDiDiLjGlMiCmMiDeFiDeCiDjDiDgIiDeFiCpAjCfEiClHjFeLjHhGiCmNiCmIiCkCiBeC_xHqqkZx_
		// _xZkqqHx_iMlLiNnNiBeBiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiDeMiDiFiBfLiCmMjAoGjDkKiCmJiCmN_xHqqkZx_[_xZkqqHx_jHjKjHpAjFlGiPjBiCpAiKeKiCkN_xHqqkZx_]_xZkqqHx_iCkKjBlGiNnNiClHiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iClLiCmMjBePiCmJ_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiKeKiCkN_xHqqkZx_]_xZkqqHx_iCpAjAnNjCoIiClFiCmEiBeBjFmKiCmI_xHqqkZx_EXE_xZkqqHx_iCmJiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpA_xHqqkZx_
		// _xZkqqHx_iIpIiCkLjDgOiClHiBeC_xHqqkZx_
		InsertDocRequest(0, ID_DREQ_OPEN_PROJECT,
							FCReqBase::PROJECT_PATH, g_pProject->GetFilePath().c_str(),
							FCReqBase::NONE);
		// _xZkqqHx_jFmKiCmI_xHqqkZx_EXE_xZkqqHx_iCpAiLeOjDkOiClFiCmEiBeBiClLiClPiCoHiCmFiDhGiDiNiDfHiDeGiDeOiDgHiBeFjHjKjHpAjFlGiPjBiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_
		ExecDocRequest();
		return FD_DRR_CANCEL;
	}

	//----- _xZkqqHx_iImIiNhOiBeBjHjKjHpAjFlGiPjBiCkKiKeKiCkJiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----

	// _xZkqqHx_iDhEiDeAiDeDiDiLiCkKjEgKjBlJiClFiCmEiCkCiCoJiCkJjClCiCnHiCoJiBeC_xHqqkZx_
	if (g_pFileServer->IsRecoveryRequired(g_pProject->GetFilePathH()))
	//----- _xZkqqHx_iPeDjFjMiNlHjFkKiDhEiDeAiDeDiDiLiCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iBhFiDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmNjEgKjBlJiClFiCmEiCkCiCnMiClHiBeCiPeDjFjMiDgDiBfLiDiLiCmFiPeDjFjMiClFiCmEiCkNiClOiClDiCkCiBeCiBhG_xHqqkZx_
		FFSetDDError(IDS_ERR_MSG_REPAIR_DAMAGED_FILE, g_pProject->GetFilePath().c_str());
		return FD_DRR_ERR;
	}

	// _xZkqqHx_iNmEjFgAiJoGiClHiCoJiCkJiBeIiDgGiDhEiDeIiDiLiDgHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
	const BOOL bIsRedraw = ret.IsNullIsRedraw() ? TRUE : ret.GetIsRedraw();

	ASSERT(!GetIsDocumentOpened());

	// _xZkqqHx_iDhEiDeAiDeDiDiLiCkKjBlGiNnNiClFiCmIiCkCiPoKiNiHiBeB_xHqqkZx_reqLock.Initialize_xZkqqHx_iCmNjHoBiKePiCpAjEkNjAlGiClHiCoJiCkKiBeB_xHqqkZx_
	// _xZkqqHx_iPoDiCmMiCnJiCkEiCmFjFlGiPjBiCkKjBlGiNnNiClHiCoJiClBiCmGiCpAiKgNjEeGiNmPiCnNiCmIiCmMiCmFjGoCjBoIiCmIiCkCiBeC_xHqqkZx_
	reqLock.Initialize(g_pProject->GetSubTableName(DWORD(ret.GetHidocumentId())));
	if (!reqLock.TryLock(FCReqLock::ALL & ~(FCReqLock::PROJECT_READ|FCReqLock::PROJECT_WRITE)))
	//----- _xZkqqHx_iDiNiDgCiDeOiCmJiOlIjEhDiClFiClNiPoKiNiH_xHqqkZx_ -----
	{
//----- 06.04.12 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		if (FFGetDDErrorCode() == IDS_ERR_MSG_FILE_LOCKED_BY_OTHERS ||
//			FFGetDDErrorCode() == IDS_ERR_MSG_FILE_UNLOCK_REQUESTED)
//			return FD_DRR_LATER;	// _xZkqqHx_jDkPiClGiPiIjHjNiCpAiClFiCmOiCoHiCkNiOjOiKnEiCpAiLpDiCkPiCmEiMhAjBlBiClHiCoJiBeC_xHqqkZx_
//		else
//			return FD_DRR_ERR;		// _xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
//----- 06.04.12 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_iDiNiDgCiDeOiOlIjEhDiOjOiCmMjDeLjAnIiCmIjGnPiCoIjCgMiCpAjFnEiClHiBeC_xHqqkZx_
		return GetLockFailReqResult();
//----- 06.04.12 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
	try
	{
		// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_
		*m_pGate = g_pProject->GetSubGroup(ret.GetHidocumentId());
		m_pGate->UpdateData(reqLock.m_autoLockCommandRead);
		// _xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_
		m_historyIndex = g_pProject->GetSubGroup(ret.GetHidocumentId());
		m_historyIndex.UpdateData(reqLock.m_autoLockSummaryRead);
		// _xZkqqHx_jHjKjHpAiPeJjCfLiLeMjIfOiDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_
		m_cmdTerminateFile = g_pProject->GetSubGroup(ret.GetHidocumentId());
		m_cmdTerminateFile.UpdateData(reqLock.m_autoLockTerminateRead);
		// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
		m_spotFile = g_pProject->GetSubGroup(ret.GetHidocumentId());
		m_spotFile.UpdateData(reqLock.m_autoLockSpotRead);
		// _xZkqqHx_jFkKiKpCiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
		m_forkFile = g_pProject->GetSubGroup(ret.GetHidocumentId());
		m_forkFile.UpdateData(reqLock.m_autoLockForkRead);

		// _xZkqqHx_iPeJjDfPiCpAjCfEiClHiBeCiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiCmNjHoBiKePiCpAjEkNjAlGiBeC_xHqqkZx_
		flint fliStartSessionIndex = m_cmdTerminateFile.SeeEndSessionIndex();
		flint fliSpotSessionIndex = fliStartSessionIndex;
		BYTE* pSpotStream = NULL;
		DWORD dwSpotStreamSize = 0;
		FC2Ref<BYTE*, DWORD>(pSpotStream, dwSpotStreamSize) = m_cmdTerminateFile.SeeEndSessionSpotStream();
		if (pSpotStream == NULL)
		//----- _xZkqqHx_iPeJjCfLiCmMiDfIiDhMiDgCiDgHiCkKjBlGiNnNiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			//----- _xZkqqHx_iNmFiKpBiCmMiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiOfKiPgP_xHqqkZx_ -----
			// _xZkqqHx_iNmFiKpBiCmMiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiOfKiPgPiBeC_xHqqkZx_
			flint fliDistToSpot = FLINT_MAX;
			FCSpotConstIterator iSpot = m_spotFile.FindNearestSpot(	fliDistToSpot,
																	fliStartSessionIndex);
			// _xZkqqHx_iMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiPeJjHlJiBeC_xHqqkZx_
			if (iSpot.GetIsInvalid())
			{
				// _xZkqqHx_iDhEiDeAiDeDiDiLiCkKjEgKjBlJiClFiCmEiCkCiCnMiClHiBeC_xHqqkZx_
				FFSetDDError(	IDS_ERR_FILE_DESTROIED,
									WString(g_pProject->GetTableName().GetTopDirPath()));
				AfxDebugBreak();
				return FD_DRR_FATAL_ERR;
			}
			fliSpotSessionIndex = iSpot.GetSessionIndex();
			FC2Ref<BYTE*, DWORD>(pSpotStream, dwSpotStreamSize) = iSpot.GetSpotStream();
		}
		//----- _xZkqqHx_iDfIiDhMiDgCiDgHiCpAjDmHiCnNiNjOiCnO_xHqqkZx_ -----
		DeleteContents();

		// FFImportSpotFile _xZkqqHx_iCmMiNmEjFgAiJoGiIpIjAjEiCmJ_xHqqkZx_bIsRedraw_xZkqqHx_iCmNiOhHjCoIiClFiCmIiCkCiBeC_xHqqkZx_
		// _xZkqqHx_iJlKiCmF_xHqqkZx_ MoveSessionTo _xZkqqHx_iCkKiCkAiCoJiCmMiCmFiBeBiNmEjFgAiJoGiCmN_xHqqkZx_ MoveSessionTo _xZkqqHx_iCmMiMoDiCmJ_xHqqkZx_
		// _xZkqqHx_iClHiCoJiCoGiCkEiCmJiClHiCoJiBeC_xHqqkZx_

//----- 06.03.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		if (!FFImportSpotFile(this, NULL, pSpotStream, dwSpotStreamSize, bIsRedraw))
//----- 06.03.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		BOOL bImportSucceed;
		if (!ret.IsNullIsUseLastCanvasStat() && ret.GetIsUseLastCanvasStat())
			bImportSucceed = FFImportSpotFile(	this,
												&m_canvasStatLast,
												pSpotStream,
												dwSpotStreamSize,
												FALSE);
		else
			bImportSucceed = FFImportSpotFile(	this,
												NULL,
												pSpotStream,
												dwSpotStreamSize,
												FALSE);
		if (!bImportSucceed)
//----- 06.03.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		//----- _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLjDmHiCnNiPgPiClFiCmJiOlIjEhDiClFiClNiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfIiDhMiDgCiDgHiDgGiBfLiDfOiCpAiJpAjFpKiBeC_xHqqkZx_
			delete[] pSpotStream;
			pSpotStream = NULL;
			// _xZkqqHx_iKpJiCmJjFlGiPjBiDhEiDeAiDeDiDiLiCpAiDiNiDgCiDeOiNmPiCnNiCmIiCmMiCmFiBeB_xHqqkZx_
			// _xZkqqHx_jCmKiPoNiBeBiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLjDmHiCnNiPgPiClFiCmJiOlIjEhDiClHiCoJiClBiCmGiCmNiCkAiCoIiCkGiCmIiCkCiBeC_xHqqkZx_
			AfxDebugBreak();
			return FD_DRR_FATAL_ERR;
		}
		// _xZkqqHx_iDfIiDhMiDgCiDgHiDgGiBfLiDfOiCpAiJpAjFpKiBeC_xHqqkZx_
		delete[] pSpotStream;
		pSpotStream = NULL;
		// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiImKjChFiCnMiCmFjHjKjHpAiDhEiDeAiDeDiDiLiCpAiDfGiBfLiDeOiBeC_xHqqkZx_
		m_pGate->SeekToSessionIndex(fliSpotSessionIndex);
		// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiOjOiKnEiBjFiDfKiDgCiDfGiDiHiDjDiDeDiDjDiDgGiDgCiDeOiDfIiCpAjAnNjCoIiBeC_xHqqkZx_
		m_pGate->SetupSessionTimeAndIndex();
		// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCpAiBeBiDfGiBfLiDeOiImKjChFiCkJiCoHiMlLiNnNiCmMiImKjChFiCnMiCmFiInKjDkOiBeC_xHqqkZx_
		m_pGate->MoveSessionTo(DWORDSet(), fliStartSessionIndex);
		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCpAiBeBiDfGiBfLiDeOiImKjChFiCkJiCoHiMlLiNnNiCmMiImKjChFiCnMiCmFiInKjDkOiBeC_xHqqkZx_
		m_historyIndex.SeekToSessionIndex(fliStartSessionIndex);

		// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpA_xHqqkZx_ FALSE _xZkqqHx_iCmFiPiJiKpKiJlLiBeC_xHqqkZx_
		SetModifiedFlag(FALSE);

//----- 06.04.06 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// _xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDfKiDgCiDfGiDiHiDjDiCmJiDiGiBfLiDfFiBfL_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
		m_bIsLogCommandUserId = g_pProject->GetDocumentRec(ret.GetHidocumentId()).GetIsLogCommandUserId();
//----- 06.04.06 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

		// _xZkqqHx_iKeKiCkCiCmEiCkCiCoJjHjKjHpAjFlGiPjB_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
		m_lDocId = ret.GetHidocumentId();

		// _xZkqqHx_jFlGiPjBiCmNiPjBiCkLiNjOiCnNiJmCjEfMiCpAjAnNjCoIiBeC_xHqqkZx_
		m_bIsReadOnly = FALSE;
		// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNjHjKjHpAjFlGiPjBiBhGiCmMiKmHjHjNiDeJiDhFiDfHiDeGiDeOiDgHiCmJjAnNjCoIiBeC_xHqqkZx_
		if (!g_pProject->GetIsUnknownFile())
		{
			WString wstrHidocId;
			wstrHidocId.Format(L"%d", ret.GetHidocumentId());
			FCRecentList::Add(	g_pProject->GetHidocumentTitle(ret.GetHidocumentId(), TRUE),
								g_pProject->GetHidocumentTitle(ret.GetHidocumentId(), FALSE),
								g_pProject->GetFilePath(),
								wstrHidocId,
								g_pProject->GetTitle(),
								g_pProject->GetDocumentRec(ret.GetHidocumentId()).GetDocTitle(),
								g_pProject->GetDocumentRec(ret.GetHidocumentId()).GetVersion());
		}
		// _xZkqqHx_iDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCmMiDfOiDeDiDgHiDiLiCpAjFmPiNfIiBeC_xHqqkZx_
		InsertDocRequest(1, ID_DREQ_SET_TITLE);

//----- 06.03.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// _xZkqqHx_iBhFiDhGiDiNiDfHiDeGiDeOiDgHiCmJiDiGiBfLiDfFiBfLjDgPjIfOiClDiCoKiCmEiCkCiCnMiClJiCpBiBhGiCmMiDfPiDeDiDeBiDiNiDePiCkK_xHqqkZx_
		// _xZkqqHx_jFfMiOkGiClDiCoKiClNiPoKiNiHiBeBiJlKiCkK_xHqqkZx_ PostRgnRedraw(TRUE) _xZkqqHx_iClOiCmGiNmEjFgAiJoGiCmJ_xHqqkZx_
		// _xZkqqHx_iOlIjEhDiClHiCoJiBeC_xHqqkZx_
		if (bIsRedraw)
			g_pView->SendRgnRedraw(TRUE);	// _xZkqqHx_jBfDiJoGjGmKiNmEjFgAiJoGiBeC_xHqqkZx_
//----- 06.03.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		// AfterLoadDocument_xZkqqHx_iKnGjAjEiCmNjFeLjHhGiCmIiCkCiBeC_xHqqkZx_FFImportSpotFile_xZkqqHx_iCmMiJjMjCoKiCmFiOmAiNhDiNmPiCnNiBeC_xHqqkZx_

//----- 06.03.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		// _xZkqqHx_iMoDiPiIjHjNiBeC_xHqqkZx_
//		AfterLoadDocument(bIsRedraw);
//----- 06.03.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

		// Flush_xZkqqHx_jHhAiCmMiDfOiDeDiDhNiBfLjAnNjCoIiBeC_xHqqkZx_
		(void)FFGetMainWnd()->GetWnd()->KillTimer(FDTIMER_FRAME_FLUSH);
		(void)FFGetMainWnd()->GetWnd()->SetTimer(FDTIMER_FRAME_FLUSH, FD_INTERVAL_FRAME_FLUSH, NULL);

//----- 06.01.04 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		// _xZkqqHx_iMlLiNnNiDeJiBfLiDhGiDjDiClFiCmEiCkCiCoJiDhEiDeAiDeDiDiLiCpAiDfEiBfLiDgPiCmMiPgEjHhGiDeMiBfLiDhGiDhEiDeAiDeDiDiLiCmJiOhHjCoIiClHiCoJiBeC_xHqqkZx_
//		NotifyImportantFileAtomForCache();
//----- 06.01.04 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	} catch (CException* e)
	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
	{
		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
		FFSetDDErrorCodeMessage(FFGetErrorCode(e), FFGetErrorMessage(e));
		e->Delete();
		return FD_DRR_FATAL_ERR;
	}
	// _xZkqqHx_jFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiKnEiCmNiDiNiDgCiDeOiCpAiDeMiBfLiDhGiClHiCoJiBeC_xHqqkZx_
	m_KeepLockForDocument.Append(reqLock.m_autoLockCommandWrite);
	m_KeepLockForDocument.Append(reqLock.m_autoLockSummaryWrite);
	m_KeepLockForDocument.Append(reqLock.m_autoLockTerminateWrite);
	m_KeepLockForDocument.Append(reqLock.m_autoLockSpotWrite);
	// READ_xZkqqHx_iDiNiDgCiDeOiCmMiDeMiBfLiDhGiCoAjFeLjHhGiBeC_xHqqkZx_
	m_KeepLockForDocument.Append(reqLock.m_autoLockCommandRead);
	m_KeepLockForDocument.Append(reqLock.m_autoLockSummaryRead);
	m_KeepLockForDocument.Append(reqLock.m_autoLockTerminateRead);
	m_KeepLockForDocument.Append(reqLock.m_autoLockSpotRead);

	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqOpenHidocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqCloseHidocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_CLOSE_HIDOCUMENT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFmCiClGiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	arg	:_xZkqqHx_iIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			ret	:_xZkqqHx_iMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	FD_DRR_OK:	_xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
 *			FD_DRR_LATER:	_xZkqqHx_iPiIjHjNiCpAiDhJiDjDiDgGiDeCiDjDiDePiBeC_xHqqkZx_
 *			FD_DRR_ERR	_xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.03.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqCloseHidocument (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_jHjKjHpAjFlGiPjBiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (!GetIsDocumentOpened()) return FD_DRR_OK;

//----- 06.04.09 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjFmPjAjEiCmJiDePiDiNiBfLiDgPiDiLiCpAjElNiJgGiBeC_xHqqkZx_
	// DeleteContents _xZkqqHx_iCmFiMmEiCpBiCmFiCkCiClNiCkKiBeB_xHqqkZx_DeleteContents _xZkqqHx_iCmN_xHqqkZx_
	// OpenHidocument_xZkqqHx_iCmMiCmGiCkLiCoAiOmAiNhDiClDiCoKiCoJiClNiCnPiBeBjFlGiPjBiCkKjFmCiClGiCmE_xHqqkZx_
	// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmMiIoGiCkKjFmPiNfIiClDiCoKiClNiMoDiCmMiPoOjFpBiCkKiLeMjIfOiClDiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
	m_canvasStatLast.UpdateData();
//----- 06.04.09 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// OnReqCheckLock_xZkqqHx_iKnGjAjEiCmNiMmEiCnBiPgPiClFiCmEiCmNiCmIiCoHiCmIiCkCiBeCiDhEiDeAiDeDiDiLiCkKiNfIjAfGiClDiCoKiCmEiCkCiClNiPoKiNiHiBeB_xHqqkZx_
	// OnReqCheckLock_xZkqqHx_iCmF_xHqqkZx_UPDATE_HIDOCUMENT _xZkqqHx_iCkKjEkNiNhDiClDiCoKiBeB_xHqqkZx_UpdateHidocument_xZkqqHx_iKnGjAjEiCmFiCmNiBeB_xHqqkZx_
	// CLOSE_HIDOCUMENT + OPEN_HIDOCUMENT_xZkqqHx_iCkKjEkNiNhDiClDiCoKiBeFiBeFiBeFiBeFiBeAiClBiCmMiMeKiCoIjFnEiClFiCmGiCmIiCoJiBeC_xHqqkZx_
	// _xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFmCiClGiCoJiClOiCkPiCmIiCmMiCmFiBeB_xHqqkZx_OnReqCheckLock_xZkqqHx_iKnGjAjEiCmNjFhDjHhGiBeC_xHqqkZx_

	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAiJpAiPjMiBeCiDiKiDhJiDeBiLeMjIfOiCoAiNoNiPjMiClDiCoKiCoJiBeC_xHqqkZx_
	SetModifiedFlag(FALSE);

	// _xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDiNiDgCiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
	// _xZkqqHx_iDiNiDgCiDeOiCmMiDeBiDgHiDiAiCoAiJpAiPjMiBeCiClBiCoKiCpAiClFiCmIiCkCiCmGiBeB_xHqqkZx_
	// _xZkqqHx_iOjPiCmMiDeJiBfLiDhGiDjDiCpAjBlBiCkPiCmEiNhDiCmBiClNiPoKiNiHiCmJiBeBiDiNiDgCiDeOiCmJ_xHqqkZx_
	// _xZkqqHx_iNkBiCmMiDhGiDiNiDfHiDeGiDeOiDgHiCmMiDeBiDgHiDiAiCkKiOgDiCmBiCmEiClFiCnMiCkEiBeC_xHqqkZx_
	reqLock.ClearHidocumentLock();

	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiImIiKePiCmMiDiNiDgCiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
	// reqLock.ClearHidocumentLock()_xZkqqHx_iCmMiMoDiCmJiOmAiNhDiClFiCmIiCkCiCmGiBeB_xHqqkZx_
	// reqLock_xZkqqHx_jCiGiCmMiBeB_xHqqkZx_m_lFirstLockCount _xZkqqHx_iCkKiClIiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
	m_KeepLockForDocument.Clear();

	// _xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDfKiDgCiDfGiDiHiDjDiCmJiDiGiBfLiDfFiBfL_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
	m_bIsLogCommandUserId = FALSE;

	// _xZkqqHx_jFlGiPjBiCpAjFmCiClGiCoJiBeC_xHqqkZx_
	OnNewDocument();

	// _xZkqqHx_iNmEjFgAiJoGiClHiCoJiCkJiBeIiDgGiDhEiDeIiDiLiDgHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
	const BOOL bIsRedraw = ret.IsNullIsRedraw() ? TRUE : ret.GetIsRedraw();

	// _xZkqqHx_iDhCiDiFiBfLiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
	if (bIsRedraw)
		g_pView->PostRgnRedraw(TRUE);

	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqCloseHidocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqDlgSaveUnknownProjectAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_DLG_SAVE_UNKNOWN_PROJECT_AS]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAiCmCiCkPiCmEjFnLjBlGiCmMiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	arg	:_xZkqqHx_iIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			ret	:_xZkqqHx_iMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	FD_DRR_OK:	_xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
 *			FD_DRR_LATER:	_xZkqqHx_iPiIjHjNiCpAiDhJiDjDiDgGiDeCiDjDiDePiBeC_xHqqkZx_
 *			FD_DRR_ERR	_xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.08.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqDlgSaveUnknownProjectAs (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (!g_pProject->IsProjectOpened())
		return FD_DRR_OK;
	// _xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmFiCmNiCmIiCkPiCoKiCmOjFjMiLeBiBeC_xHqqkZx_
	if (!g_pProject->GetIsUnknownFile())
		return FD_DRR_OK;

//----- 06.01.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	FTDocReqResult result = OnReqCheckLock(reqLock, FCReqLock::PROJECT_READ);
//	if (result != FD_DRR_OK) return result;
//	// _xZkqqHx_iDiNiDgCiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
//	reqLock.Unlock(FCReqLock::PROJECT_READ);
//----- 06.01.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiNoMjAkMjHhAiCmMiDfPiDeDiDeBiDiNiDePiBeC_xHqqkZx_
	CFCDlgProjectProperty newdlg(CFCDlgProjectProperty::SAVE);
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhGiDiNiDhAiDgFiDeCiDfPiDeDiDeBiDiNiDePiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	newdlg.Initialize(*g_pProject, FFGetApp()->GetUserId());
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	newdlg.m_guidCreatorUserId = FFGetApp()->GetUserId();
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDiGiBfLiDfFjGlMiBeC_xHqqkZx_
	newdlg.m_wstrCreatorUserName = FFGetApp()->GetUserName();
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfIiCmMiPoKiNiHiCmNiBeBiPoDiImKiCmMiDgGiDeCiDiMiDeOiDgHiDiKiCpAiOoGjDlOiBeC_xHqqkZx_
	WString wstrDirPath = g_pFileServer->GetCurrentDirectory();
	if (!wstrDirPath.IsEmpty())
		newdlg.m_wstrDirPath = wstrDirPath;

	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHjAfGiLeLiNoMjAkMiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiBeC_xHqqkZx_
//----- 06.01.25 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiNiDgCiDeOiCpAjBfDiCmEiJpAiPjMiBeCiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiClNiCnPiBeC_xHqqkZx_
	reqLock.Unlock(FCReqLock::ALL);
//----- 06.01.25 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	long lReturn = newdlg.DoModal();
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePjFjMiLeBjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	ret.SetReturn(lReturn);

	if (lReturn == IDOK)
	{
		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiKnGiClHiCoJiIpIjAjEiCpAjFnEiClHiBeC_xHqqkZx_
		ret.SetProjectPath(newdlg.m_wstrFilePath.c_str());		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfIiBeC_xHqqkZx_
		ret.SetProjectTitle(newdlg.m_wstrTitle.c_str());		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
		ret.SetProjectComment(newdlg.m_wstrComment.c_str());	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
		if (newdlg.m_bIsRegisterCreatorUserId)
		//----- _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAjDgPjIfOiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			ret.SetProjectUserId(newdlg.m_guidCreatorUserId);				// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiNoMiOnCiCmMiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
		} else
		//----- _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAjDgPjIfOiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			ret.SetProjectUserId(GUID_NULL);				// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiNoMiOnCiCmMiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
		}
		ret.SetProjectIsAllowToJoinUsersGroup(newdlg.m_bIsAllowToJoinUsersGroup);	// _xZkqqHx_jAfGiLeLiDiGiBfLiDfFiCmMiOkJiMmIjDgPjIfOiCpAiLjGiJmCiClHiCoJiBeI_xHqqkZx_
		ret.SetProjectMemberUserList(newdlg.GetMemberUserListString());				// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDiGiBfLiDfFiCmMjBfDiDiBiDjDiDgPiBeC_xHqqkZx_
	}
	return FD_DRR_OK;	// _xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
} // CFCHistDrawDoc::OnReqDlgSaveUnknownProjectAs.

//----- 06.02.01 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqSaveUnknownProjectAs
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SAVE_UNKNOWN_PROJECT_AS]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	arg	:_xZkqqHx_iIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			ret	:_xZkqqHx_iMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	FD_DRR_OK:	_xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
// *			FD_DRR_LATER:	_xZkqqHx_iPiIjHjNiCpAiDhJiDjDiDgGiDeCiDjDiDePiBeC_xHqqkZx_
// *			FD_DRR_ERR	_xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	_xZkqqHx_iMlLiNnNiKeKiCkCiCmEiCkCiCoJiDhGiDiNiDfHiDeGiDeOiDgHiCpAiBeBiPiKjBkOiClHiCoJjHjKjHpAjFlGiPjBiClCiCmGjBfDiCmEiOhHjCoIiClDiCoKiClN_xHqqkZx_
// *			_xZkqqHx_jFmKiCmMiDhEiDeIiDiLiDfPiCnGiInKjDkOiClHiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_jDkPiOjOiCmJiBeBiKeKiCkCiCmEiCkCiCoJiDhGiDiNiDfHiDeGiDeOiDgHiCmNjAfGiClFiCkCiDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLiCnG_xHqqkZx_
// *			_xZkqqHx_jFmPiNfIiBeCjHjKjHpAjFlGiPjBiCpAiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmNiBeBjHjKjHpAjFlGiPjBiCoAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_iBhJiOoIiPiHiBhK_xHqqkZx_
// *			_xZkqqHx_iCfAiBeEjHjKjHpAjFlGiPjBiCpAiDhEiDiJiDgCiDfGiDiFiBeFjFnLjBlGiClHiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_iCfBiBeEjHjKjHpAjFlGiPjBiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmMjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDgAiDeGiDgCiDeOiCmGiDiNiDgCiDeOiBeC_xHqqkZx_
// *			_xZkqqHx_iCfCiBeEiDhGiDiNiDfHiDeGiDeOiDgHiImIiJlKiCpAjBfDiCmEiDfCiDhDiBfLiClHiCoJiBeC_xHqqkZx_
// *				_xZkqqHx_iCfAiBeEiPiKjHeMiMkAiDhEiDeAiDeDiDiLiCpAjBfDiCmEiDiNiDgCiDeOiBeC_xHqqkZx_
// *				_xZkqqHx_iCfBiBeEiDhGiDiNiDfHiDeGiDeOiDgHiImIiJlKiCpAiDfCiDhDiBfLiBeC_xHqqkZx_
// *				_xZkqqHx_iCfCiBeEiPiKjHeMiMkAiDhEiDeAiDeDiDiLiCpAiDeBiDjDiDiNiDgCiDeOiBeC_xHqqkZx_
// *			_xZkqqHx_iCfDiBeEjHjKjHpAjFlGiPjBiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmMjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDiNiDgCiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
// *			_xZkqqHx_iCfEiBeEiDhGiDiNiDfHiDeGiDeOiDgHiCmJiBeBiDfCiDhDiBfLjAoGiDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
// *			_xZkqqHx_iCfFiBeEjAfGiClFiCkCjHjKjHpAjFlGiPjBiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmMjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDgAiDeGiDgCiDeOiCmGiDiNiDgCiDeOiBeC_xHqqkZx_
// *			_xZkqqHx_iCfGiBeEiDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLiCmMiIoKiOjOjDeJiDhEiDeAiDeDiDiLiPoOjFpBiCpAjGjFiPmBiClFiBeBjFnLjBlGiBeC_xHqqkZx_
// *			_xZkqqHx_iCfHiBeEjHjKjHpAiDhEiDeAiDeDiDiLiBgJjHjKjHpAiPeJjCfLiLeMjIfOiDhEiDeAiDeDiDiLiBeBjHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiBeB_xHqqkZx_
// *				_xZkqqHx_jHjKjHpAiDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiBgKiCpAjFmCiClGiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_iCfIiBeEjAfGiClFiCkCjHjKjHpAiDhEiDeAiDeDiDiLiBgJjHjKjHpAiPeJjCfLiLeMjIfOiDhEiDeAiDeDiDiLiBeBjHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiBeB_xHqqkZx_
// *				_xZkqqHx_jHjKjHpAiDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiBgKiCpAiKeKiCkNiBeC_xHqqkZx_
// *			10_xZkqqHx_iBeEiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiCnGjDgPjIfOiBeC_xHqqkZx_
// *			11_xZkqqHx_iBeEjHjKjHpAjFlGiPjBiPjBiCkLiPgPiClFiImIiKePiCmMjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDiNiDgCiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
// *			12_xZkqqHx_iBeEiDfOiDeDiDgHiDiLjFmPiNfIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jHfMiCnPiBeB_xHqqkZx_ID_DREQ_SAVE_HIDOCUMENT _xZkqqHx_iCpAiOmAiNhDiClFiCmEiCkIiCkNiCnJiCkEiCkKjGfNiCnMiClFiCkCiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jCmKiPoNiCmMiDhGiDiNiDfHiDeGiDeOiDgHiCmFiCkAiCmBiCmEiCoAiBeBjFmKjGlMjFnLjBlGiCmNjDkPiClGjFpLjGeAiCmFiJmCjEfMiClOiCkKiBeB_xHqqkZx_
// *			_xZkqqHx_jFmKjGlMjFnLjBlGiCmNiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCkKiLjAjBoFiCmIiPoKiNiHiBeBjClHiCkCiOjOiKnEiCkKiCkJiCkJiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_jBlNiCkNiCmMiDhEiDeAiDeDiDiLiDiNiDgCiDeOiCpAjClHiOjOiKnEiDeMiBfLiDhGiClHiCoJjFeLjHhGiCkKiCkAiCoJiCmMiCmFiBeB_xHqqkZx_
// *			_xZkqqHx_jGfNiCnMiClFiCkNiCmIiCkCiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.08.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCHistDrawDoc::OnReqSaveUnknownProjectAs (FCReqBase& ret, FCReqLock& reqLock)
//{
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiKeKiCkCiCmEiCkCiCmIiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
//	if (!g_pProject->IsProjectOpened())
//		return FD_DRR_OK;
//	// _xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmFiCmNiCmIiCkPiCoKiCmOjFjMiLeBiBeC_xHqqkZx_
//	if (!g_pProject->GetIsUnknownFile())
//		return FD_DRR_OK;
//
//	// _xZkqqHx_iImIiJlKiCmMiPiIjHjNiCpAiBeB_xHqqkZx_g_pFileServer->FlushAll _xZkqqHx_iCpAiOjNiCmCiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiPiIjHjN_xHqqkZx_
//	// _xZkqqHx_iCmMjDkKjBfDiCmEiCmJjBhNjDpMiClHiCoJiBeC_xHqqkZx_
//	// _xZkqqHx_jGkCiDhEiDiJiDgCiDfGiDiFiCmMiPoKiNiHiCmNiBeBjHjKjHpAjFlGiPjBiCmMiDhEiDiJiDgCiDfGiDiFiCpAiOmAiNhDiBeC_xHqqkZx_
//	if (OnReqCheckFlush()) return FD_DRR_RETRY;
//
//	// _xZkqqHx_iClBiClBiCmFiBeB_xHqqkZx_
//	// if (IsModified()) { InsertDocRequest(0, ID_DREQ_SAVE_HIDOCUMENT); return RETRY; }
//	// _xZkqqHx_iCpAiOmAiNhDiClFiCmEiCmNiCmIiCoHiCmIiCkCiBeCiPjBiCkLiNjOiCnNiMkAiMmAiCkKjGlDiCkCiPpDjBnEiCmF_xHqqkZx_
//	// ID_DREQ_SAVE_HIDOCUMENT _xZkqqHx_iCpAiOmAiNhDiClHiCoJiCmGiBeBiJlNiCoAiClJiClI_xHqqkZx_
//	// _xZkqqHx_jAlDiPoNjFjMiLeBiClHiCoJiCmMiCmFiBeBjGlDiMmAiCmJ_xHqqkZx_ RETRY _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
//
//	// _xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFkBiOmKiClFiClNiMoDiBeBiMlDiCmMiPpDjBnEiCmGjDkPiClGiPpDjBnEiCmJiClHiCoJiClNiCnPiBeB_xHqqkZx_
//	// _xZkqqHx_jFkBiOmKjAoGiCmMjFlGiPjBiCpAiNmEiCnBiKeKiCkNiNoMiLmGiCpAiNhDiCkEiBeC_xHqqkZx_
//	// _xZkqqHx_iClBiCmMiClNiCnPiBeBjFkBiOmKjBePiCmJiBeBiMlLiNnNiCmMjDoAjFjEiPpDjBnEiCpAiDhEiDeAiDeDiDiLiCmMiNmFjAfGiCmM_xHqqkZx_
//	// _xZkqqHx_iPpDjBnEiCmJiClFiCmEiCkIiCkNjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
//
////----- 06.01.25 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	if (GetIsDocumentOpened())
////	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
////	{
////		// _xZkqqHx_jBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDgAiDeGiDgCiDeOiCmGiDiNiDgCiDeOiBeC_xHqqkZx_
////		FTDocReqResult result = OnReqCheckLock(	reqLock,
////												FCReqLock::ALL_READ);
////		if (result != FD_DRR_OK) return result;
////	} else
////	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
////	{
////		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDgAiDeGiDgCiDeOiCmGiDiNiDgCiDeOiBeC_xHqqkZx_
////		FTDocReqResult result = OnReqCheckLock(	reqLock,
////												FCReqLock::PROJECT_READ);
////		if (result != FD_DRR_OK) return result;
////	}
////----- 06.01.25 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	if (GetIsDocumentOpened())
//	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
//	{
//		// _xZkqqHx_jBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDgAiDeGiDgCiDeOiCmGiDiNiDgCiDeOiBeC_xHqqkZx_
//		FTDocReqResult result = OnReqCheckLock(	reqLock,
//												FCReqLock::SPOT_READ);
//		if (result != FD_DRR_OK) return result;
//	}
////----- 06.01.25 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//
//	// _xZkqqHx_iIoKiOjOiDhGiDiNiDfHiDeGiDeOiDgHiCmMiDgGiDeCiDiMiDeOiDgHiDiKiCpAiLeMjIfOiBeCiNmFiMoDiCmJiNoNiPjMiClHiCoJiClNiCnPiBeC_xHqqkZx_
//	const WString wstrTempDirPath = g_pProject->GetFilePath();
//
//	//----- _xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiClCiCmGiDfCiDhDiBfL_xHqqkZx_ -----
//
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiCmNiCnMiClIjBfDiCmEiDiNiDgCiDeOiClDiCoKiCmEiCkJiCoHiBeBiDfCiDhDiBfLiClDiCoKiCoJiBeC_xHqqkZx_
//	// FFHiCopyDirectory_xZkqqHx_iCmNiBeBiJlMjBhKiDhEiDeAiDeDiDiLiCpAiOgHiCoNiCmIiCkCiCmMiCmFiBeBiDhEiDiJiDgCiDfGiDiFiCmMjFeLjHhGiCmNiCmIiCkCiBeC_xHqqkZx_
//	if (!g_pFileServer->CopyTopGroup(g_pProject->GetFilePathH(), HString(ret.GetProjectPath())))
//	{
//		// _xZkqqHx_iJlMiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiCmIiCmMiCmFiBeBiDfCiDhDiBfLiMlDiCoAiDfCiDhDiBfLjAoGiCoA_xHqqkZx_
//		// _xZkqqHx_iDiNiDgCiDeOiCmJiOlIjEhDiClHiCoJiClBiCmGiCmNjHeMiCoIjDlOiCmIiCkCiBeC_xHqqkZx_
//		// _xZkqqHx_iClBiCmMiClNiCnPiBeBiDfCiDhDiBfLiCkKiOlIjEhDiClFiClNiPoKiNiHiCmNjGlDiPpAiMiPiCmJiDeHiDiJiBfLiCpAjFnEiClHiBeC_xHqqkZx_
//		return FD_DRR_ERR;
//	}
//
//	// _xZkqqHx_iDiNiDgCiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
//	reqLock.ClearAllLock();
//	// _xZkqqHx_jFlGiPjBiCmMiPjBiCkLiNjOiCnNiDiNiDgCiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
//	m_KeepLockForDocument.clear();
//
////----- 06.01.20 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJjAfGiClFiCkCiDhEiDeAiDeDiDiLjGlMiCpAjAnNjCoIiBeC_xHqqkZx_
////	g_pProject->SetFilePath(ret.GetProjectPath());
////
////	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiNoMiOnCiCmMiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiBeC_xHqqkZx_
////	g_pProject->SetUserId(ret.GetProjectUserId());
////	// _xZkqqHx_jAfGiLeLiDiGiBfLiDfFiCmMiOkJiMmIjDgPjIfOiCpAiLjGiJmCiClHiCoJiBeI_xHqqkZx_
////	g_pProject->SetIsAllowToJoinUsersGroup(ret.GetProjectIsAllowToJoinUsersGroup());
////	// _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeBiDiGiBfLiDfFjGlMiCmMiDgOiDgCiDfGiDiFiDgFiBfLiDhFiDiLiBeC_xHqqkZx_
////	g_pProject->SetMemberUserListString(ret.GetProjectMemberUserList());
////
////	// reqLock_xZkqqHx_iCpAiBeBjAfGiClFiCkCiDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfIiCmFiPiJiKpKiJlLiBeC_xHqqkZx_
////	InitReqLock(reqLock);
////
////	// _xZkqqHx_iImIiNhOiCmMiDiNiDgCiDeOiCmFiBeB_xHqqkZx_OnReqCheckLock_xZkqqHx_iKnGjAjEiCmNiOgHiCkGiCmIiCkCiBeC_xHqqkZx_
////	// OnReqCheckLock_xZkqqHx_jCiGiCmFiBeBiNfIjAfGiDeKiDeFiDjDiDfOiCmMiDgAiDeGiDgCiDeOiCpAiNhDiCkEiCkKiBeB_xHqqkZx_
////	// m_pGate_xZkqqHx_iCmIiCmHiBeBiDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClFiCmBiCmPiCmIiClFiCmMiDeOiDiJiDfIiCmFiCmNiBeB_xHqqkZx_
////	// _xZkqqHx_iNfIjAfGiDeKiDeFiDjDiDfOiCmMiDgAiDeGiDgCiDeOiCpAjDoAjFjEiCmMiDhEiDeAiDeDiDiLiDgOiDjDiDgIiDiLiCmJiKoOiCmDiCkCiCmE_xHqqkZx_
////	// _xZkqqHx_iMjPiNpFiClHiCoJiClNiCnPiBeC_xHqqkZx_
////	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDiNiDgCiDeOiBeC_xHqqkZx_
////	if (!reqLock.m_autoLockProjectRead.TryLock() ||
////		!reqLock.m_autoLockProjectWrite.TryLock())
////	//-----	_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLiCkKiDiNiDgCiDeOiCmFiCkLiCmIiCkCiPoKiNiH_xHqqkZx_ -----
////	{
////		// _xZkqqHx_iClBiClBiCmFiCmMiDeHiDiJiBfLiCmNjChGjGlNjDeJiBeCiNoMjAkMiClFiClNiCmOiCkJiCoIiCmMiDhGiDiNiDfHiDeGiDeOiDgHiCkK_xHqqkZx_
////		// _xZkqqHx_iKeKiCkPiCmIiCkCiCmGiCkCiCkEiClBiCmGiCmNjGmFjBlNiCmJiCkAiCoIiCkGiCmIiCkCiClBiCmGiClOiCkKiBeC_xHqqkZx_
////		// _xZkqqHx_iLkNjAkHiPeJjHlJiBeC_xHqqkZx_
////		AfxDebugBreak();
////		return FD_DRR_FATAL_ERR;
////	}
////
////	if (GetIsDocumentOpened())
////	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
////	{
////		// _xZkqqHx_jBfDiCmEiCmMiDhEiDeAiDeDiDiLiCpAiDgAiDeGiDgCiDeOiBjFiDiNiDgCiDeOiBeC_xHqqkZx_
////		// _xZkqqHx_iClBiClBiCmFiCmMiPiIjHjNiCmFjHjKjHpAjFlGiPjBiCmMiNfIjAfGiCkKjDpMiCoJiCmGiDhNiDfJiDeDiCkKiBeBiClLiCoKiCmNjGlDiCkCiClOiCoLiCkEiBeC_xHqqkZx_
////		if (!reqLock.TryLock(FCReqLock::ALL & ~(FCReqLock::PROJECT_READ|FCReqLock::PROJECT_WRITE)))
////		{
////			// _xZkqqHx_iClBiClBiCmFiCmMiDeHiDiJiBfLiCmNjChGjGlNjDeJiBeCiNoMjAkMiClFiClNiCmOiCkJiCoIiCmMiDhGiDiNiDfHiDeGiDeOiDgHiCkK_xHqqkZx_
////			// _xZkqqHx_iKeKiCkPiCmIiCkCiCmGiCkCiCkEiClBiCmGiCmNjGmFjBlNiCmJiCkAiCoIiCkGiCmIiCkCiClBiCmGiClOiCkKiBeC_xHqqkZx_
////			// _xZkqqHx_iLkNjAkHiPeJjHlJiBeC_xHqqkZx_
////			AfxDebugBreak();
////			return FD_DRR_FATAL_ERR;
////		}
////		// _xZkqqHx_iDiNiDgCiDeOiBeFiDeBiDjDiDiNiDgCiDeOiPpDjBnEiCmMjFmPiNfIiCpAjHhNjAkHiClHiCoJiBeC_xHqqkZx_
////		m_KeepLockForDocument.push_back(reqLock.m_autoLockCommandWrite);
////		m_KeepLockForDocument.push_back(reqLock.m_autoLockSummaryWrite);
////		m_KeepLockForDocument.push_back(reqLock.m_autoLockTerminateWrite);
////		m_KeepLockForDocument.push_back(reqLock.m_autoLockSpotWrite);
////	}
////
////	// _xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmFiCmNiCmIiCkCiCoGiCkEiCmJjAnNjCoIiBeC_xHqqkZx_
////	g_pProject->SetIsUnknownFile(FALSE);
////// 06.01.09 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//////	(void)g_pProject->UpdateFile(reqLock.m_autoLockProjectWrite);
////
////	if (GetIsDocumentOpened())
////	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
////	{
////		// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiImKjChFiPoOjFpBiCpAiLeMjIfOiBeC_xHqqkZx_
//////----- 06.01.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//////		const flint fliCmdPtr = GetCommandFilePtr();
//////		const flint fliIdxPtr = GetIndexFilePtr();
//////----- 06.01.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
////		const flint fliSessionIdx = GetNextSessionIndex();
////
////		// _xZkqqHx_jHjKjHpAiPeJjCfLiLeMjIfOiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
////		m_cmdTerminateFile.Close();
////		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
////		m_historyIndex.Close();
////		// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
////		m_pGate->Close();
////
////		// _xZkqqHx_jHjKjHpAjFkKiKpCiDgFiBfLiDhFiDiLiBeBiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCmNiBeBiOmAiDhEiDeAiDeDiDiLiCpAiKeKiCkCiCmE_xHqqkZx_
////		// _xZkqqHx_iCkCiCmIiCkCiCmMiCmFiBeBiPpDjBnEiCpAjFmPiNfIiClHiCoJjFeLjHhGiCmNiCmIiCkCiBeC_xHqqkZx_
////
////		// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_
////		m_pGate->OpenExisting(*g_pProject, m_lDocId);
////		// _xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_
////		m_historyIndex.OpenExisting(*g_pProject, m_lDocId);
////		// _xZkqqHx_jHjKjHpAiPeJjCfLiLeMjIfOiDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_
////		m_cmdTerminateFile.OpenExisting(*g_pProject, m_lDocId);
////		// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAiDiKiDfKiDgCiDgHiClHiCoJiBeC_xHqqkZx_
////		m_pGate->ResetTableModifiedIdentifier();
////		m_historyIndex.ResetTableModifiedIdentifier();
////		m_cmdTerminateFile.ResetTableModifiedIdentifier();
////		// _xZkqqHx_iDhEiDeAiDeDiDiLiImKjChFiCnMiCmFjHjKjHpAiDhEiDeAiDeDiDiLiCpAiDfGiBfLiDeOiBeC_xHqqkZx_
////		m_pGate->FileSeek(fliCmdPtr, FILE_BEGIN);
////		// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiOjOiKnEiBjFiDfKiDgCiDfGiDiHiDjDiDeDiDjDiDgGiDgCiDeOiDfIiCpAjAnNjCoIiBeC_xHqqkZx_
////		m_pGate->SetupSessionTimeAndIndex();
////
////		// _xZkqqHx_iDhEiDeAiDeDiDiLiImKjChFiCnMiCmFjHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCpAiDfGiBfLiDeOiBeC_xHqqkZx_
////		m_historyIndex.FileSeek(fliIdxPtr, FILE_BEGIN);
////
////		// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNjHjKjHpAjFlGiPjBiBhGiCmMiKmHjHjNiDeJiDhFiDfHiDeGiDeOiDgHiCmJjAnNjCoIiBeC_xHqqkZx_
////		WString wstrHidocId;
////		wstrHidocId.Format(L"%d", m_lDocId);
////		FCRecentList::Add(	g_pProject->GetHidocumentTitle(m_lDocId, TRUE),
////							g_pProject->GetHidocumentTitle(m_lDocId, FALSE),
////							g_pProject->GetFilePath(),
////							wstrHidocId,
////							g_pProject->GetDocumentRec(m_lDocId).GetDocTitle(),
////							g_pProject->GetDocumentRec(m_lDocId).GetVersion());
////	}
////
//////----- 05.08.16 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
////	// _xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiImIiJlKiCpAiClHiCnHiCmEiNoNiPjMiBeC_xHqqkZx_
////	// FFHiCopyDirectory_xZkqqHx_iCmNjFkIjHjNiJlMjBhKiDhEiDeAiDeDiDiLiCpAjFkBiOmKiClHiCoJiCmMiCmFiBeBiClBiClBiCmF_xHqqkZx_
////	// _xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiCpAiNoNiPjMiClFiCmEiCoAjBoFiPoEjFhGiBeC_xHqqkZx_
////ID_DREQ_DELETE_UNKNOWN_PROJECT_xZkqqHx_iCmJiBeC_xHqqkZx_
////	g_pFileServer->DeleteTopGroup(HString(wstrTempDirPath));
////	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCkJiCoHiDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjDiCmMiLeMjIfOiCpAiNoNiPjMiBeC_xHqqkZx_
////	DeleteRepairDocName();
//////----- 05.08.16 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
////
////	// _xZkqqHx_iDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCmMiDfOiDeDiDgHiDiLiCpAjFmPiNfIiBeC_xHqqkZx_
////	SetTitle(NULL);
//////----- 06.01.04 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//////	// _xZkqqHx_iMlLiNnNiDeJiBfLiDhGiDjDiClFiCmEiCkCiCoJiDhEiDeAiDeDiDiLiCpAiDfEiBfLiDgPiCmMiPgEjHhGiDeMiBfLiDhGiDhEiDeAiDeDiDiLiCmJiOhHjCoIiClHiCoJiBeC_xHqqkZx_
//////	NotifyImportantFileAtomForCache();
//////----- 06.01.04 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
////	// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiBeC_xHqqkZx_
////	InsertDocRequest(1, ID_DREQ_FLUSH_ALL);
////----- 06.01.20 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJjAfGiClFiCkCiDgFiBfLiDhFiDiLjGlMiCpAjAnNjCoIiBeCjDoAjFjEiCmMiPiJiKpKiJlLiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//	g_pProject->SetTable(g_pFileServer->GetTopGroup(HString(ret.GetProjectPath())));
//	DWORD dwLockType;
//	if (GetIsDocumentOpened())
//	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
//	{
//		// _xZkqqHx_iDfCiDhNiDjDiDgIiDgFiBfLiDhFiDiLiCmJjAfGiClFiCkCiDgFiBfLiDhFiDiLjGlMiCpAjAnNjCoIiBeCjDoAjFjEiCmMiPiJiKpKiJlLiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//		m_pGate->SetTable(g_pProject->GetSubTableName(GetDocumentId(), FDHI_COMMAND_TABLE_ID));
//		// _xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiCmJjAfGiClFiCkCiDgFiBfLiDhFiDiLjGlMiCpAjAnNjCoIiBeCjDoAjFjEiCmMiPiJiKpKiJlLiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//		m_historyIndex.SetTable(g_pProject->GetSubTableName(GetDocumentId(), FDHI_SUMMARY_TABLE_ID));
//		// _xZkqqHx_jHjKjHpAiPeJjCfLiLeMjIfOiDgFiBfLiDhFiDiLiCmJjAfGiClFiCkCiDgFiBfLiDhFiDiLjGlMiCpAjAnNjCoIiBeCjDoAjFjEiCmMiPiJiKpKiJlLiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//		m_cmdTerminateFile.SetTable(g_pProject->GetSubTableName(GetDocumentId(), FDHI_TERMINATE_TABLE_ID));
//		// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCmJjAfGiClFiCkCiDgFiBfLiDhFiDiLjGlMiCpAjAnNjCoIiBeCjDoAjFjEiCmMiPiJiKpKiJlLiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//		m_spotFile.SetTable(g_pProject->GetSubTableName(GetDocumentId(), FDHI_SPOT_TABLE_ID));
//		// _xZkqqHx_jFkKiKpCiDgFiBfLiDhFiDiLiCmJjAfGiClFiCkCiDgFiBfLiDhFiDiLjGlMiCpAjAnNjCoIiBeCjDoAjFjEiCmMiPiJiKpKiJlLiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//		m_forkFile.SetTable(g_pProject->GetSubTableName(GetDocumentId(), FDHI_FORK_TABLE_ID));
//		// _xZkqqHx_jBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDgAiDeGiDgCiDeOiCmGiDiNiDgCiDeOiBeC_xHqqkZx_
//		dwLockType = FCReqLock::ALL;
//	} else
//	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
//	{
//		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDgAiDeGiDgCiDeOiCmGiDiNiDgCiDeOiBeC_xHqqkZx_
//		dwLockType = FCReqLock::PROJECT_READ|FCReqLock::PROJECT_WRITE;
//	}
//	// reqLock_xZkqqHx_iCpAiBeBjAfGiClFiCkCiDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfIiCmFiPiJiKpKiJlLiBeC_xHqqkZx_
//	InitReqLock(reqLock);
//	// _xZkqqHx_iJlMiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiClFiClNiCoAiCmMiCmIiCmMiCmFiBeBiDfCiDhDiBfLjAoGiCmM_xHqqkZx_
//	// _xZkqqHx_iDiNiDgCiDeOiCmJiOlIjEhDiClHiCoJiClBiCmGiCmNjHeMiCoIjDlOiCmIiCkCiBeC_xHqqkZx_
//	// _xZkqqHx_iClBiCmMiClNiCnPiBeBiDfCiDhDiBfLiCkKiOlIjEhDiClFiClNiPoKiNiHiCmNjGlDiPpAiMiPiCmJiDeHiDiJiBfLiCpAjFnEiClHiBeC_xHqqkZx_
//	if (OnReqCheckLock(reqLock, dwLockType) != FD_DRR_OK)
//	{
//		// _xZkqqHx_iLkNjAkHiPeJjHlJiBeC_xHqqkZx_
//		AfxDebugBreak();
//		return FD_DRR_FATAL_ERR;
//	}
//
//	if (GetIsDocumentOpened())
//	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
//	{
//		// _xZkqqHx_iDiNiDgCiDeOiBeFiDeBiDjDiDiNiDgCiDeOiPpDjBnEiCmMjFmPiNfIiCpAjHhNjAkHiClHiCoJiBeC_xHqqkZx_
//		m_KeepLockForDocument.push_back(reqLock.m_autoLockCommandWrite);
//		m_KeepLockForDocument.push_back(reqLock.m_autoLockSummaryWrite);
//		m_KeepLockForDocument.push_back(reqLock.m_autoLockTerminateWrite);
//		m_KeepLockForDocument.push_back(reqLock.m_autoLockSpotWrite);
//	}
//
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiNoMiOnCiCmMiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiBeC_xHqqkZx_
//	g_pProject->SetUserId(ret.GetProjectUserId());
//	// _xZkqqHx_jAfGiLeLiDiGiBfLiDfFiCmMiOkJiMmIjDgPjIfOiCpAiLjGiJmCiClHiCoJiBeI_xHqqkZx_
//	g_pProject->SetIsAllowToJoinUsersGroup(ret.GetProjectIsAllowToJoinUsersGroup());
//	// _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeBiDiGiBfLiDfFjGlMiCmMiDgOiDgCiDfGiDiFiDgFiBfLiDhFiDiLiBeC_xHqqkZx_
//	g_pProject->SetMemberUserListString(ret.GetProjectMemberUserList());
//	// _xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmFiCmNiCmIiCkCiCoGiCkEiCmJjAnNjCoIiBeC_xHqqkZx_
//	g_pProject->SetIsUnknownFile(FALSE);
//
//	if (GetIsDocumentOpened())
//	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ ------
//	{
//		// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNjHjKjHpAjFlGiPjBiBhGiCmMiKmHjHjNiDeJiDhFiDfHiDeGiDeOiDgHiCmJjAnNjCoIiBeC_xHqqkZx_
//		WString wstrHidocId;
//		wstrHidocId.Format(L"%d", GetDocumentId());
//		FCRecentList::Add(	g_pProject->GetHidocumentTitle(GetDocumentId(), TRUE),
//							g_pProject->GetHidocumentTitle(GetDocumentId(), FALSE),
//							g_pProject->GetFilePath(),
//							wstrHidocId,
//							g_pProject->GetDocumentRec(GetDocumentId()).GetDocTitle(),
//							g_pProject->GetDocumentRec(GetDocumentId()).GetVersion());
//	}
//
//	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCkJiCoHiDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjDiCmMiLeMjIfOiCpAiNoNiPjMiBeC_xHqqkZx_
//	DeleteRepairDocName();
////----- 06.01.24 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	// _xZkqqHx_iDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCmMiDfOiDeDiDgHiDiLiCpAjFmPiNfIiBeC_xHqqkZx_
////	SetTitle(NULL);
////----- 06.01.24 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCmMiDfOiDeDiDgHiDiLiCpAjFmPiNfIiBeC_xHqqkZx_
//	InsertDocRequest(1, ID_DREQ_SET_TITLE);
////----- 06.01.24 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//
////----- 06.01.04 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////	// _xZkqqHx_iMlLiNnNiDeJiBfLiDhGiDjDiClFiCmEiCkCiCoJiDhEiDeAiDeDiDiLiCpAiDfEiBfLiDgPiCmMiPgEjHhGiDeMiBfLiDhGiDhEiDeAiDeDiDiLiCmJiOhHjCoIiClHiCoJiBeC_xHqqkZx_
////	NotifyImportantFileAtomForCache();
////----- 06.01.04 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiBeC_xHqqkZx_
//	InsertDocRequest(1, ID_DREQ_FLUSH_ALL);
//	// _xZkqqHx_iMmDiCkCiDhGiDiNiDfHiDeGiDeOiDgHiImIiJlKiCmMiDgGiDeCiDiMiDeOiDgHiDiKiCpAiNoNiPjMiBeC_xHqqkZx_
//	InsertDocRequest(2,
//					ID_DREQ_DELETE_UNKNOWN_PROJECT,
//					FCReqBase::PROJECT_PATH, wstrTempDirPath.c_str(),
//					FCReqBase::NONE);
////----- 06.01.20 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//	return FD_DRR_OK;
//} // CFCHistDrawDoc::OnReqSaveUnknownProjectAs.
//----- 06.02.01 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqSaveUnknownProjectAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SAVE_UNKNOWN_PROJECT_AS]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	arg	:_xZkqqHx_iIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			ret	:_xZkqqHx_iMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	FD_DRR_OK:	_xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
 *			FD_DRR_LATER:	_xZkqqHx_iPiIjHjNiCpAiDhJiDjDiDgGiDeCiDjDiDePiBeC_xHqqkZx_
 *			FD_DRR_ERR	_xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	_xZkqqHx_iMlLiNnNiKeKiCkCiCmEiCkCiCoJiDhGiDiNiDfHiDeGiDeOiDgHiCpAiBeBiPiKjBkOiClHiCoJjHjKjHpAjFlGiPjBiClCiCmGjBfDiCmEiOhHjCoIiClDiCoKiClN_xHqqkZx_
 *			_xZkqqHx_jFmKiCmMiDhEiDeIiDiLiDfPiCnGiInKjDkOiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jDkPiOjOiCmJiBeBiKeKiCkCiCmEiCkCiCoJiDhGiDiNiDfHiDeGiDeOiDgHiCmNjAfGiClFiCkCiDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLiCnG_xHqqkZx_
 *			_xZkqqHx_jFmPiNfIiBeCjHjKjHpAjFlGiPjBiCpAiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmNiBeBjHjKjHpAjFlGiPjBiCoAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iBhJiOoIiPiHiBhK_xHqqkZx_
 *			_xZkqqHx_iCfAiBeEjHjKjHpAjFlGiPjBiCpAiDhEiDiJiDgCiDfGiDiFiBeFjFnLjBlGiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iCfBiBeEjHjKjHpAjFlGiPjBiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmMjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDgAiDeGiDgCiDeOiCmGiDiNiDgCiDeOiBeC_xHqqkZx_
 *			_xZkqqHx_iCfCiBeEiDhGiDiNiDfHiDeGiDeOiDgHiImIiJlKiCpAjBfDiCmEiDfCiDhDiBfLiClHiCoJiBeC_xHqqkZx_
 *				_xZkqqHx_iCfAiBeEiPiKjHeMiMkAiDhEiDeAiDeDiDiLiCpAjBfDiCmEiDiNiDgCiDeOiBeC_xHqqkZx_
 *				_xZkqqHx_iCfBiBeEiDhGiDiNiDfHiDeGiDeOiDgHiImIiJlKiCpAiDfCiDhDiBfLiBeC_xHqqkZx_
 *				_xZkqqHx_iCfCiBeEiPiKjHeMiMkAiDhEiDeAiDeDiDiLiCpAiDeBiDjDiDiNiDgCiDeOiBeC_xHqqkZx_
 *			_xZkqqHx_iCfDiBeEjHjKjHpAjFlGiPjBiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmMjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDiNiDgCiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
 *			_xZkqqHx_iCfEiBeEiDhGiDiNiDfHiDeGiDeOiDgHiCmJiBeBiDfCiDhDiBfLjAoGiDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
 *			_xZkqqHx_iCfFiBeEjAfGiClFiCkCjHjKjHpAjFlGiPjBiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmMjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDgAiDeGiDgCiDeOiCmGiDiNiDgCiDeOiBeC_xHqqkZx_
 *			_xZkqqHx_iCfGiBeEiDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLiCmMiIoKiOjOjDeJiDhEiDeAiDeDiDiLiPoOjFpBiCpAjGjFiPmBiClFiBeBjFnLjBlGiBeC_xHqqkZx_
 *			_xZkqqHx_iCfHiBeEjHjKjHpAiDhEiDeAiDeDiDiLiBgJjHjKjHpAiPeJjCfLiLeMjIfOiDhEiDeAiDeDiDiLiBeBjHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiBeB_xHqqkZx_
 *				_xZkqqHx_jHjKjHpAiDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiBgKiCpAjFmCiClGiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iCfIiBeEjAfGiClFiCkCjHjKjHpAiDhEiDeAiDeDiDiLiBgJjHjKjHpAiPeJjCfLiLeMjIfOiDhEiDeAiDeDiDiLiBeBjHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiBeB_xHqqkZx_
 *				_xZkqqHx_jHjKjHpAiDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiBgKiCpAiKeKiCkNiBeC_xHqqkZx_
 *			10_xZkqqHx_iBeEiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiCnGjDgPjIfOiBeC_xHqqkZx_
 *			11_xZkqqHx_iBeEjHjKjHpAjFlGiPjBiPjBiCkLiPgPiClFiImIiKePiCmMjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiDiNiDgCiDeOiCpAiJpAiPjMiBeC_xHqqkZx_
 *			12_xZkqqHx_iBeEiDfOiDeDiDgHiDiLjFmPiNfIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jHfMiCnPiBeB_xHqqkZx_ID_DREQ_SAVE_HIDOCUMENT _xZkqqHx_iCpAiOmAiNhDiClFiCmEiCkIiCkNiCnJiCkEiCkKjGfNiCnMiClFiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jCmKiPoNiCmMiDhGiDiNiDfHiDeGiDeOiDgHiCmFiCkAiCmBiCmEiCoAiBeBjFmKjGlMjFnLjBlGiCmNjDkPiClGjFpLjGeAiCmFiJmCjEfMiClOiCkKiBeB_xHqqkZx_
 *			_xZkqqHx_jFmKjGlMjFnLjBlGiCmNiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCkKiLjAjBoFiCmIiPoKiNiHiBeBjClHiCkCiOjOiKnEiCkKiCkJiCkJiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jBlNiCkNiCmMiDhEiDeAiDeDiDiLiDiNiDgCiDeOiCpAjClHiOjOiKnEiDeMiBfLiDhGiClHiCoJjFeLjHhGiCkKiCkAiCoJiCmMiCmFiBeB_xHqqkZx_
 *			_xZkqqHx_jGfNiCnMiClFiCkNiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqSaveUnknownProjectAs (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiKeKiCkCiCmEiCkCiCmIiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (!g_pProject->IsProjectOpened())
		return FD_DRR_OK;
	// _xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmFiCmNiCmIiCkPiCoKiCmOjFjMiLeBiBeC_xHqqkZx_
	if (!g_pProject->GetIsUnknownFile())
		return FD_DRR_OK;

	// _xZkqqHx_iImIiJlKiCmMiPiIjHjNiCpAiBeB_xHqqkZx_g_pFileServer->FlushAll _xZkqqHx_iCpAiOjNiCmCiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiPiIjHjN_xHqqkZx_
	// _xZkqqHx_iCmMjDkKjBfDiCmEiCmJjBhNjDpMiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_jGkCiDhEiDiJiDgCiDfGiDiFiCmMiPoKiNiHiCmNiBeBjHjKjHpAjFlGiPjBiCmMiDhEiDiJiDgCiDfGiDiFiCpAiOmAiNhDiBeC_xHqqkZx_
	if (OnReqCheckFlush()) return FD_DRR_RETRY;

	// _xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiBeC_xHqqkZx_
	DWORDSet stSelectObjectId;
	long lPos = 1;

//----- 06.03.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCkKjHeMiCoJiPoKiNiHiCmMiCnNiNmEjFgAiJoGiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMjHhGiLiBiOmAiNhDjBePiCmJiDhGiDiNiDfHiDeGiDeOiDgHjFnLjBlGiDfPiDeDiDeBiDiNiDePiCkKjFfMiOkGiClDiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDfKiDeKiDjDiDgIiDiCiDgKiDfOiBfLiPoDiCmFiOmAiNhDiClFiClNiPoKiNiHiBeBiClBiCmMiDfPiDeDiDeBiDiNiDePjHmMiIoGiCmMiNmEjFgAiJoGiCkK_xHqqkZx_
	// ID_DREQ_CLOSE_HIDOCUMENT _xZkqqHx_iCmG_xHqqkZx_ ID_DREQ_OPEN_HIDOCUMENT _xZkqqHx_iCmM_xHqqkZx_
	// _xZkqqHx_iKnEiCmJjDpMiCmBiCmEiClFiCnMiCkCiBeBiDfGiBfLiDgHiCmMjGlDiCkCjEhHiMgJiCmMiCnNiCpAiNmEjFgAiJoGiClFiCmEiClFiCnMiCkEiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCoKiCpAjGgIiCkOiClNiCnPiBeBiDiKiBfLiDfHiDiHiDjDiCkKjBlGiNnNiClHiCoJiPoKiNiHiCmMiCnNiNmEjFgAiJoGiClHiCoJiCoGiCkEiCmJiLkNjAkHiClHiCoJiBeC_xHqqkZx_
	InsertDocRequest(	lPos++, ID_DREQ_RGN_REDRAW,
						FCReqBase::RGN_REDRAW, RGN_REDRAW::IF_RGN_EXIST,	// _xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCkKjBlGiNnNiClHiCoJiPoKiNiHiCmMiCnNiNmEjFgAiJoGiBeC_xHqqkZx_
						FCReqBase::NONE);
//----- 06.03.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	if (GetIsDocumentOpened())
	//----- _xZkqqHx_jFlGiPjBiCpAiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiCpAiOoGjDlOiBeC_xHqqkZx_
		g_pView->GetSelectObjectId(stSelectObjectId);
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFmCiClGiCoJ_xHqqkZx_]
		InsertDocRequest(	lPos++, ID_DREQ_CLOSE_HIDOCUMENT,
							FCReqBase::IS_REDRAW, FALSE,
							FCReqBase::NONE);
	}
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]
	InsertDocRequest(lPos++, ID_DREQ_CLOSE_PROJECT);

	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiNoMjAkMiBeC_xHqqkZx_
	InsertDocRequest(	lPos++, ID_DREQ_CREATE_PROJECT,
						FCReqBase::PROJECT_PATH,
							ret.GetProjectPath(),
						FCReqBase::PROJECT_TITLE,
							g_pProject->GetTitle().c_str(),
						FCReqBase::PROJECT_USER_ID,
							g_pProject->GetUserId(),
						FCReqBase::PROJECT_IS_ALLOW_TO_JOIN_USERS_GROUP,
							g_pProject->GetIsAllowToJoinUsersGroup(),
						FCReqBase::PROJECT_DATE,
							g_pProject->GetDate(),
						FCReqBase::PROJECT_COMMENT,
							g_pProject->GetComment().c_str(),
						FCReqBase::PROJECT_MEMBER_USER_LIST,
							g_pProject->GetMemberUserListString().c_str(),
						FCReqBase::PROJECT_LIMITED_USER_LIST,
							g_pProject->GetLimitedUserListString().c_str(),
						FCReqBase::NONE);
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiKeKiCkNiBeC_xHqqkZx_
	InsertDocRequest(	lPos++, ID_DREQ_OPEN_PROJECT,
						FCReqBase::PROJECT_PATH,
						ret.GetProjectPath(),
						FCReqBase::NONE);

	// _xZkqqHx_jHjKjHpAjFlGiPjBiCpAiDeDiDjDiDhMiBfLiDgHiClHiCoJiBeC_xHqqkZx_
	longSet stDocId;
	stDocId.insert(0);
	InsertDocRequest(	lPos++, ID_DREQ_IMPORT_HIDOCUMENT,
						FCReqBase::PROJECT_PATH,
						g_pProject->GetFilePath().c_str(),
						FCReqBase::HIDOCUMENT_ID_SET,
						&stDocId,
						FCReqBase::NONE);

	if (GetIsDocumentOpened())
	//----- _xZkqqHx_jFlGiPjBiCpAiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jHjKjHpAjFlGiPjBiCpAiKeKiCkN_xHqqkZx_]
		InsertDocRequest(	lPos++, ID_DREQ_OPEN_HIDOCUMENT,
							FCReqBase::HIDOCUMENT_ID, GetDocumentId(),
							FCReqBase::IS_USE_LAST_CANVAS_STAT, TRUE,
							FCReqBase::IS_REDRAW, FALSE,
							FCReqBase::NONE);

		// _xZkqqHx_jFjEjFgJiCpAjBeJjBpAiBeCjBeJjBpAiDhNiBfLiDeOiCmNjFgAiJoGiClFiCmIiCkCiBeC_xHqqkZx_
		InsertDocRequest(	lPos++, ID_DREQ_SELECT_OBJECT,
							FCReqBase::OBJECT_ID_SET, &stSelectObjectId,
							FCReqBase::IS_SELECT_OBJECT, TRUE,
							FCReqBase::SCROLL_TO_FRAME, SCROLL_TO_FRAME::NONE,
							FCReqBase::IS_DRAW_SELECT_MARK, FALSE,
							FCReqBase::NONE);
	}

	// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiBeC_xHqqkZx_
	InsertDocRequest(lPos++, ID_DREQ_FLUSH_ALL);
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqSaveUnknownProjectAs.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqSaveHidocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SAVE_HIDOCUMENT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFnLjBlGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	arg	:_xZkqqHx_iIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			ret	:_xZkqqHx_iMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	FD_DRR_OK:	_xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
 *			FD_DRR_LATER:	_xZkqqHx_iPiIjHjNiCpAiDhJiDjDiDgGiDeCiDjDiDePiBeC_xHqqkZx_
 *			FD_DRR_ERR	_xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiPjBiCkLiNjOiCnOiMkAiMmAiCkKjGlDiCkCiPoKiNiHiBeBiDeHiDiJiBfLiCpAjEkNjAlGiClDiClJiClIiBeB_xHqqkZx_
 *			_xZkqqHx_jAlDiPoNjCgMiCpAjFnEiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iClLiCkEiClFiCmIiCkCiCmGiBeBiPjBiCkLiNjOiCnNiMkAiMmAiCkKjGlDiCkCiPpDjBnEiCmFiCmNiBeBiPjBiCkLiNjOiCnMiCmIiCkNiCmEiCoA_xHqqkZx_
 *			_xZkqqHx_iCmFiCkLiCoJiCmNiClIiCmMiPiIjHjNiCkKjCoCiOhOiClFiCmEiClFiCnMiCkEiBgJjHoBiBeGjFlGiPjBiCpAjFmCiClGiCoJ_xHqqkZx_ _xZkqqHx_iCmIiCmHiBgK_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jHjKjHpAjFlGiPjBiCpAiDfKiBfLiDhFiClFiBeBjBlMiCmMiDeBiDhGiDiKiCmFjHjKjHpAjFlGiPjBiCpAjDmHiCnNiNjOiCnPiCoJiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFmCiClGiCoJiClBiCmGiCmNiClFiCmIiCkCiBeC_xHqqkZx_
 *			<mdrwpos file="D:\src\DynamicDraw\_xZkqqHx_jHjKjHpAjFlGiPjBiLkEjHeMiOgEjHgM_xHqqkZx_.mdrw" sheet="1" cposx="192" cposy="729"/>
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.08.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqSaveHidocument (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_iImIiJlKiCmMiPiIjHjNiCpAiBeB_xHqqkZx_g_pFileServer->FlushAll _xZkqqHx_iCpAiOjNiCmCiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiPiIjHjN_xHqqkZx_
	// _xZkqqHx_iCmMjDkKjBfDiCmEiCmJjBhNjDpMiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_jGkCiDhEiDiJiDgCiDfGiDiFiCmMiPoKiNiHiCmNiBeBjHjKjHpAjFlGiPjBiCmMiDhEiDiJiDgCiDfGiDiFiCpAiOmAiNhDiBeC_xHqqkZx_
	if (OnReqCheckFlush()) return FD_DRR_RETRY;

	// _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCmIiCkCiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmMiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (!GetIsDocumentOpened() || IsReadOnly()) return FD_DRR_OK;
	// _xZkqqHx_iPeDjAlDiCkKjDpMiCmBiCmEiCkCiCmIiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (!IsModified()) return FD_DRR_OK;

	//----- _xZkqqHx_iPeDjAlDiCkKjDpMiCmBiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----

	//----- _xZkqqHx_iImIiNhOiCmNiDhEiDiJiDgCiDfGiDiFiClDiCoKiClNiPpDjBnE_xHqqkZx_ -----

	//--------------------------------------------------------------------------------
	// _xZkqqHx_jHjKjHpAjFlGiPjBiCmMiBeBiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiPiIjHjNiCmNiBeBjAoCjBmOiCmJjFeLjHhGiCmGiCkCiCkEjGpDiCmFiCmNiCmIiCkCiBeCiClBiClBiCmFiBeBiPeJjHlJiOjOiCmMiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpA_xHqqkZx_
	// _xZkqqHx_iNoMjAkMiClHiCoJiClBiCmGiCmJiCoGiCmBiCmEiBeBiOjPiJpBiCmMiLeOjDkOiCkKiBeBiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiOgHiCmBiCmEjBiBiCkNiOmAiNhDiCmFiCkLiCoJiBeC_xHqqkZx_
	//--------------------------------------------------------------------------------

	TRACE(_T("CFCHistDrawDoc::SaveHistory 2\n"));

	// _xZkqqHx_jHjKjHpAjFlGiPjBiBeBjHjKjHpAjFkKiKpCiDgFiBfLiDhFiDiLiCpA_xHqqkZx_EXCLUSIVE & READ_xZkqqHx_iCmFiDiNiDgCiDeOiBeC_xHqqkZx_
	// _xZkqqHx_jBlMiCmMiDeBiDhGiDiKiCkJiCoHiCmMjDmHiCnNiNjOiCnNiCoAiLnGiOhOiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDfIiDhMiDgCiDgHiCmM_xHqqkZx_WriteLock _xZkqqHx_iCmNiPoNiCmJjAnNjCoIiClDiCoKiCmEiCkCiCoJiClNiCnPiBeBiClBiClBiCmFiCmN_xHqqkZx_
	// _xZkqqHx_jAnNjCoIiClFiCmIiCkCiBeCiClBiClBiCmFjAnNjCoIiClHiCoJiCmGiBeBiDiNiDgCiDeOiCmMiJpAiPjMiCkK_xHqqkZx_
	// _xZkqqHx_jBePiMoDiClFiCmE_xHqqkZx_FCLockVar::m_lFirstLockCount _xZkqqHx_iCmJiClIiCoKiCkKjAlGiClGiCoJiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
//----- 06.01.25 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	FTDocReqResult result = OnReqCheckLock(	reqLock,
//											FCReqLock::PROJECT_READ |
//											FCReqLock::SPOT_READ |
//											FCReqLock::FORK_READ |
//											FCReqLock::TERMINATE_READ|
//											FCReqLock::FORK_WRITE|
//											FCReqLock::TERMINATE_WRITE);
//----- 06.01.25 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	FTDocReqResult result = OnReqCheckLock(	reqLock,
											FCReqLock::SPOT_READ |
											FCReqLock::FORK_WRITE|
											FCReqLock::TERMINATE_WRITE);
//----- 06.01.25 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	if (result != FD_DRR_OK) return result;

//----- 05.10.24 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiPeDjAlDiCmMiMkAiMmAiCpAiDgAiDeGiDgCiDeOiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iPeDjAlDiMkAiMmAiCkKjGlDiCkCiPoKiNiHiCmNiBeBjAlDiPoNiPeJjHlJiClHiCoJiBeC_xHqqkZx_<_xZkqqHx_jCiNiInD_xHqqkZx_>_xZkqqHx_iCpAiOfBiPmGiBeC_xHqqkZx_
	if (!g_pProject->IsQualifiedToModify(FFGetApp()->GetUserId()))
		return FD_DRR_OK;
//----- 05.10.24 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 06.01.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAjAkOjHjNiClHiCoJiBeCjAlDiOkOiImIiKePiCmMiDfIiDhMiDgCiDgHiCmNjGjFiPmBiBeC_xHqqkZx_
//	longSet stDelSpotAtom;
//	if (m_spotFile.GetReduceSpotFile(stDelSpotAtom) != 0)
//	//----- _xZkqqHx_jGjFiPmBiClHiCnHiCkLiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNoNiPjMiBeC_xHqqkZx_
//		longSet::const_iterator iLv;
//		for (iLv = stDelSpotAtom.begin(); iLv != stDelSpotAtom.end(); iLv++)
//		{
//			FCDbWriteLock writeLockVar(*iLv);
//			// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiDiNiDgCiDeOiBeCiOlIjEhDiClHiCoJiCmGjChGjGlNjDeJiCmIiDeHiDiJiBfLiCmFiDeBiDhGiDiKjCoCiOhOiBeC_xHqqkZx_
//			if (!writeLockVar.TryLock())
//			{
//				AfxDebugBreak();
//				return FD_DRR_FATAL_ERR;
//			}
//			g_pFileServer->DeleteFile(*iLv, NULL, NULL);
//		}
//		// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCmMjDgPjIfOiCpAjGjFiPmBiBeC_xHqqkZx_
//		m_spotFile.RemoveSpot(stDelSpotAtom);
//	}
//----- 06.01.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiDhEiDeAiDeDiDiLiImKjChFiCmJiDfIiDhMiDgCiDgHiCkKiCkAiCoJiCkJiBeC_xHqqkZx_
	if (!m_spotFile.IsThereSpot(GetNextSessionIndex()))
	//----- _xZkqqHx_jGlDiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iPeJjDfPiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiDfKiBfLiDhFiClHiCoJiBeC_xHqqkZx_
		BYTE* pSpotStream = NULL;
		DWORD dwSpotStreamSize = 0;
		FC2Ref<BYTE*, DWORD>(pSpotStream, dwSpotStreamSize) = FFExportSpotFile(this);

		//----- _xZkqqHx_jHjKjHpAiPeJjCfLiLeMjIfOiCmJiDfIiDhMiDgCiDgHiCpAjDgPjIfOiClHiCoJ_xHqqkZx_ -----
		m_cmdTerminateFile.UpdateEndSessionIndex(GetNextSessionIndex(), pSpotStream, dwSpotStreamSize);
		// _xZkqqHx_jHmMiIoGiCpAiJpAjFpKiBeC_xHqqkZx_
		::free(pSpotStream);
		pSpotStream = NULL;
	}
	//--------------------------------------------------------------------------------
	// _xZkqqHx_jHjKjHpAjFkKiKpCiDgFiBfLiDhFiDiLjCiGiCmMiBeBiJlMjAnNjFkKiKpCiPoOjFpBiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiPiIjHjNiCmNiBeBjAoCjBmOiCmJjFeLjHhGiCmGiCkCiCkEjGpDiCmFiCmNiCmIiCkCiCkKiBeBiClBiCmMiPiIjHjNiCpAiNhDiCkEiClBiCmGiCmJiCoGiCmBiCmEiBeB_xHqqkZx_
	// _xZkqqHx_iJlMjAnNjFkKiKpCiPoOjFpBiCkKiBeBjChOjAmPiClHiCoJiCmMiCpAjGgIiCkOiClBiCmGiCkKiCmFiCkLiCoJiBeC_xHqqkZx_
	//--------------------------------------------------------------------------------

	// _xZkqqHx_iJlMjAnNiCmMjFkKiKpCiCpAjAkOjHjNiClHiCoJiBeC_xHqqkZx_
	m_forkFile.RemoveAllTempFork();
//----- 06.01.26 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////----- 05.08.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iJlMjAnNiCmMiOjOiKnEiDiJiDhIiDiLiCpAjAkOjHjNiClHiCoJiBeC_xHqqkZx_
//	m_forkFile.RemoveAllTempTimeLabel();
////----- 05.08.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 06.01.26 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 06.01.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiDfKiBfLiDhFiBeC_xHqqkZx_
//	m_spotFile.UpdateFile(reqLock.m_autoLockSpotWrite);
//	// _xZkqqHx_jFkKiKpCiDhEiDeAiDeDiDiLiCpAiDfKiBfLiDhFiBeC_xHqqkZx_
//	m_forkFile.UpdateFile(reqLock.m_autoLockForkWrite);
//----- 06.01.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAiJpAiPjMiBeC_xHqqkZx_
	SetModifiedFlag(FALSE);
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiImIiJlKiCmMiDgGiDeCiDiMiDeOiDgHiDiKiCpAjDkPiKpKiDhEiDiJiDgCiDfGiDiFiBeC_xHqqkZx_
	InsertDocRequest(1, ID_DREQ_FLUSH_ALL);

	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqSaveHidocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqReplaceHidocumentProperty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_REPLACE_HIDOCUMENT_PROPERTY]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDhGiDiNiDhAiDgFiDeCiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.04.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqReplaceHidocumentProperty (FCReqBase& ret, FCReqLock& reqLock)
{
	FTDocReqResult result = BASE_CLASS::OnReqReplaceHidocumentProperty(ret, reqLock);
	if (result == FD_DRR_OK)
	//----- _xZkqqHx_jAlDiPoNiCmJiPiIjHjNiCkKiCmIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDfKiDgCiDfGiDiHiDjDiCmJiDiGiBfLiDfFiBfL_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
		m_bIsLogCommandUserId = g_pProject->GetDocumentRec(GetDocumentId()).GetIsLogCommandUserId();
	}
	return result;
} // CFCHistDrawDoc::OnReqReplaceHidocumentProperty.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqMoveHistoryBackward
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_MOVE_HISTORY_BACKWARD]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jHjKjHpAiImKjChFiCpAiMoDjFpLiCnGiCfAiCmCiInKjDkOiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	<mdrwpos file="D:\src\DynamicDraw\_xZkqqHx_jHjKjHpAjFlGiPjBiLkEjHeMiOgEjHgM_xHqqkZx_.mdrw" sheet="1" cposx="325" cposy="145"/>
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqMoveHistoryBackward (FCReqBase& ret, FCReqLock& reqLock)
{
//----- 06.01.17 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCmMjAfLiClDiCkKiCePiCmFiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiBeC_xHqqkZx_
//	if (GetSessionDepth() != 0)
//	{
//		AfxDebugBreak();
//		return FD_DRR_FATAL_ERR;
//	}
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKiCePiCmFiCmIiCkCiPoKiNiHiCmNiBeBiDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmMiImKjChFiCpAjGnPiClHiClOiCkPiBeC_xHqqkZx_
//	// _xZkqqHx_jGnPiClJiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	if (m_pGate->IsPositionInCmdBuffer(m_pGate->GetFilePosition() - 1))
//	//----- _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmJiBeBjGnPiClJiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//		FTDocReqResult result = BASE_CLASS::OnReqMoveHistoryBackward(ret, reqLock);
//		if (result != FD_DRR_OK) return result;
//		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCoAjHjKjHpAiDhEiDeAiDeDiDiLiCmJiJoPiCoNiClJiCmEiInKjDkOiBeC_xHqqkZx_
//		m_historyIndex.SeekToSessionIndex(GetNextSessionIndex());
//	} else
//	//----- _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmJiBeBjGnPiClJiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKjGlDiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		FTDocReqResult result = OnReqCheckLock(	reqLock,
//												FCReqLock::COMMAND_READ |
//												FCReqLock::SUMMARY_READ |
//												FCReqLock::FORK_READ |
//												FCReqLock::FORK_WRITE |
//												FCReqLock::TERMINATE_READ);
//		if (result != FD_DRR_OK) return result;
//
//		//----- _xZkqqHx_jHjKjHpAjFkKiKpCiImKjChFiCoGiCoIiCoAiImIjBePiCmJjGnPiCoLiCkEiCmGiClFiCmEiCkCiCoJiCkJiDgAiDeGiDgCiDeO_xHqqkZx_ -----
//		const fliLatestSessionIndex = m_forkFile.GetLatestForkOrLabel();
//		// _xZkqqHx_jHjKjHpAjFkKiKpCiCkKjBlGiNnNiClHiCoJiPoKiNiHiBeC_xHqqkZx_
//		// _xZkqqHx_iNmFiMoDiCmMjFkKiKpCiImKjChFiCpAjEoEiKhCiBeC_xHqqkZx_
//		if (fliLatestSessionIndex == flint(-1) ||
//			fliLatestSessionIndex < GetNextSessionIndex())
//		//----- Undo_xZkqqHx_iCkKiJmCjEfMiCmIiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_jHjKjHpAjFkKiKpCiDgFiBfLiDhFiDiLiCmMiDiNiDgCiDeOiCkKiJpAjFpKiClDiCoKiCmIiCkCiCoGiCkEiCmJjHhNjAkHiClHiCoJiBeC_xHqqkZx_
//			// _xZkqqHx_jHjKjHpAjFkKiKpCiDgFiBfLiDhFiDiLiCmNiBeBiOjPiCmM_xHqqkZx_Flush_xZkqqHx_iCnMiCmFiDiNiDgCiDeOiClFiCmBiCmPiCmIiClFiBeC_xHqqkZx_
//			// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCmMiPjBiCkLiNjOiCnNiCpAiClHiCoJiCnMiCmFiCmNiBeB_xHqqkZx_HistoryViewer_xZkqqHx_iCkJiCoH_xHqqkZx_
//			// _xZkqqHx_jHjKjHpAjFkKiKpCiCpAiNoMjAkMiClHiCoJiCmMiCpAiLnGiClGiCoJiClNiCnPiBeC_xHqqkZx_
//			// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiCkKiPeJjHlJiClHiCoJiCnMiCmFiCmMiDiNiDgCiDeOiBeC_xHqqkZx_
//			g_pFileServer->KeepWriteLockForFlush(reqLock.m_autoLockForkWrite.GetTableName());
//
//			// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//			BASE_CLASS::OnReqMoveHistoryBackward(ret, reqLock);
//			// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCoAjHjKjHpAiDhEiDeAiDeDiDiLiCmJiJoPiCoNiClJiCmEiInKjDkOiBeC_xHqqkZx_
//			m_historyIndex.SeekToSessionIndex(GetNextSessionIndex());
//			// _xZkqqHx_iDfCiDhNiDjDiDgIiInKjDkOiMoDiCmMiImKjChFiCpAiBeBjHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmMiPeJjCfLiCmGiClFiCmEiLeMjIfOiBeC_xHqqkZx_
//			m_cmdTerminateFile.UpdateEndSessionIndex(GetNextSessionIndex());
//			// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
//			SetModifiedFlag(TRUE);
//		} else
//		//----- Undo_xZkqqHx_iCkKjFhDiJmCjEfMiCmIiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiDhAiDgMiDiLiCpAjFfMiOkGiBeC_xHqqkZx_
//			// _xZkqqHx_jHjKjHpAiCmMjFkKiKpCiImKjChFiCoGiCoIiImIjBePiCmJjHjKjHpAiCpAjGnPiClHiClBiCmGiCmNiCmFiCkLiCnMiClJiCpBiBeC_xHqqkZx_
//			FFShowMsgPanel(IDS_MSG_NOT_UNDO_OVER_FORK);
//		}
//	}
//	return FD_DRR_OK;
//----- 06.01.17 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCmMjAfLiClDiCkKiCePiCmFiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiBeC_xHqqkZx_
	if (GetSessionDepth() != 0)
	{
		AfxDebugBreak();
		return FD_DRR_FATAL_ERR;
	}
	//----- _xZkqqHx_jHjKjHpAjFkKiKpCiImKjChFiCoGiCoIiCoAiImIjBePiCmJjGnPiCoLiCkEiCmGiClFiCmEiCkCiCoJiCkJiDgAiDeGiDgCiDeO_xHqqkZx_ -----
	const fliLatestSessionIndex = m_forkFile.GetLatestForkOrLabel();
	// _xZkqqHx_jHjKjHpAjFkKiKpCiCkKjBlGiNnNiClHiCoJiPoKiNiHiBeC_xHqqkZx_
	// _xZkqqHx_iNmFiMoDiCmMjFkKiKpCiImKjChFiCpAjEoEiKhCiBeC_xHqqkZx_
	if (fliLatestSessionIndex == flint(-1) ||
		fliLatestSessionIndex < GetNextSessionIndex())
	//----- Undo_xZkqqHx_iCkKiJmCjEfMiCmIiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jBePiJpBiCmMiDhEiDiJiDgCiDfGiDiFiCmFjFnLjBlGiClDiCoKiClNiOjOiCmMiDfCiDhNiDjDiDgIiPeJjCfLiImKjChFiBeC_xHqqkZx_
		const flint fliFlushedSessionIndex = m_cmdTerminateFile.SeeLastFlushedEndSessionIndex();
		if (GetNextSessionIndex() == fliFlushedSessionIndex)
		//----- _xZkqqHx_jBePiJpBiCmMiDhEiDiJiDgCiDfGiDiFiOjOiCoGiCoIiCoAiJnPiLiOiCmJjBgLiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// FORK_xZkqqHx_iCpA_xHqqkZx_WRITE_xZkqqHx_iDiNiDgCiDeOiClHiCoJiBeC_xHqqkZx_
			FTDocReqResult result = OnReqCheckLock(	reqLock,
													FCReqLock::FORK_WRITE);
			if (result != FD_DRR_OK) return result;

			// _xZkqqHx_jHjKjHpAjFkKiKpCiDgFiBfLiDhFiDiLiCmMiDiNiDgCiDeOiCkKiJpAjFpKiClDiCoKiCmIiCkCiCoGiCkEiCmJjHhNjAkHiClHiCoJiBeC_xHqqkZx_
			// _xZkqqHx_jHjKjHpAjFkKiKpCiDgFiBfLiDhFiDiLiCmNiBeBiOjPiCmM_xHqqkZx_Flush_xZkqqHx_iCnMiCmFiDiNiDgCiDeOiClFiCmBiCmPiCmIiClFiBeC_xHqqkZx_
			// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCmMiPjBiCkLiNjOiCnNiCpAiClHiCoJiCnMiCmFiCmNiBeB_xHqqkZx_HistoryViewer_xZkqqHx_iCkJiCoH_xHqqkZx_
			// _xZkqqHx_jHjKjHpAjFkKiKpCiCpAiNoMjAkMiClHiCoJiCmMiCpAiLnGiClGiCoJiClNiCnPiBeC_xHqqkZx_
			// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiCkKiPeJjHlJiClHiCoJiCnMiCmFiCmMiDiNiDgCiDeOiBeC_xHqqkZx_
			g_pFileServer->KeepWriteLockForFlush(reqLock.m_autoLockForkWrite.GetTableName());
		}
		// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
		BASE_CLASS::OnReqMoveHistoryBackward(ret, reqLock);
		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCoAjHjKjHpAiDhEiDeAiDeDiDiLiCmJiJoPiCoNiClJiCmEiInKjDkOiBeC_xHqqkZx_
		m_historyIndex.SeekToSessionIndex(GetNextSessionIndex());
		// _xZkqqHx_iDfCiDhNiDjDiDgIiInKjDkOiMoDiCmMiImKjChFiCpAiBeBjHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmMiPeJjCfLiCmGiClFiCmEiLeMjIfOiBeC_xHqqkZx_
		m_cmdTerminateFile.UpdateEndSessionIndex(GetNextSessionIndex(), NULL, 0);
		// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
		SetModifiedFlag(TRUE);
	} else
	//----- Undo_xZkqqHx_iCkKjFhDiJmCjEfMiCmIiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiDhAiDgMiDiLiCpAjFfMiOkGiBeC_xHqqkZx_
		// _xZkqqHx_jHjKjHpAiCmMjFkKiKpCiImKjChFiCoGiCoIiImIjBePiCmJjHjKjHpAiCpAjGnPiClHiClBiCmGiCmNiCmFiCkLiCnMiClJiCpBiBeC_xHqqkZx_
		FFShowMsgPanel(IDS_MSG_NOT_UNDO_OVER_FORK);
	}
	return FD_DRR_OK;
//----- 06.01.17 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCHistDrawDoc::OnReqMoveHistoryBackward.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqMoveHistoryForward
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_MOVE_HISTORY_FORWARD]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jHjKjHpAiImKjChFiCpAjBePjFpLiCnGiCfAiCmCiInKjDkOiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqMoveHistoryForward (FCReqBase& ret, FCReqLock& reqLock)
{
//----- 06.01.17 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCmMjAfLiClDiCkKiCePiCmFiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiBeC_xHqqkZx_
//	if (GetSessionDepth() != 0)
//	{
//		AfxDebugBreak();
//		return FD_DRR_FATAL_ERR;
//	}
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKiCePiCmFiCmIiCkCiPoKiNiHiCmNiBeBiDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmMiImKjChFiCpAjAgJiCnPiCoJiClOiCkPiBeC_xHqqkZx_
//	// _xZkqqHx_jAgJiCnPiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKiCkAiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	if (GetSessionDepth() == 0 &&
//		m_pGate->IsPositionInCmdBuffer(m_pGate->GetFilePosition() + 1))
//	//----- _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmJiBeBjAgJiCnPiCoKiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//		FTDocReqResult result = BASE_CLASS::OnReqMoveHistoryForward(ret, reqLock);
//		if (result != FD_DRR_OK) return result;
//		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCoAjHjKjHpAiDhEiDeAiDeDiDiLiCmJiJoPiCoNiClJiCmEiInKjDkOiBeC_xHqqkZx_
//		m_historyIndex.SeekToSessionIndex(GetNextSessionIndex());
//	} else
//	//----- _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCmJiBeBjAgJiCnPiCoKiCoJiClOiCkPiCmMiDgPiDgCiDhEiDeAiCkKjGlDiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		FTDocReqResult result = OnReqCheckLock(	reqLock,
//												FCReqLock::COMMAND_READ |
//												FCReqLock::SUMMARY_READ |
//												FCReqLock::TERMINATE_READ);
//		if (result != FD_DRR_OK) return result;
//
//		// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//		BASE_CLASS::OnReqMoveHistoryForward(ret, reqLock);
//		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCoAjHjKjHpAiDhEiDeAiDeDiDiLiCmJiJoPiCoNiClJiCmEiInKjDkOiBeC_xHqqkZx_
//		m_historyIndex.SeekToSessionIndex(GetNextSessionIndex());
//		// _xZkqqHx_iDfCiDhNiDjDiDgIiInKjDkOiMoDiCmMiImKjChFiCpAjHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmMiPeJjCfLiCmGiClFiCmEiLeMjIfOiBeC_xHqqkZx_
//		m_cmdTerminateFile.UpdateEndSessionIndex(GetNextSessionIndex());
//		// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
//		SetModifiedFlag(TRUE);
//	}
//	return FD_DRR_OK;
//----- 06.01.17 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCmMjAfLiClDiCkKiCePiCmFiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiBeC_xHqqkZx_
	if (GetSessionDepth() != 0)
	{
		AfxDebugBreak();
		return FD_DRR_FATAL_ERR;
	}

//----- 06.01.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	FTDocReqResult result = OnReqCheckLock(	reqLock,
//											FCReqLock::COMMAND_READ |
//											FCReqLock::SUMMARY_READ |
//											FCReqLock::TERMINATE_READ);
//	if (result != FD_DRR_OK) return result;
//----- 06.01.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnReqMoveHistoryForward(ret, reqLock);
	// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCoAjHjKjHpAiDhEiDeAiDeDiDiLiCmJiJoPiCoNiClJiCmEiInKjDkOiBeC_xHqqkZx_
	m_historyIndex.SeekToSessionIndex(GetNextSessionIndex());
	// _xZkqqHx_iDfCiDhNiDjDiDgIiInKjDkOiMoDiCmMiImKjChFiCpAjHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmMiPeJjCfLiCmGiClFiCmEiLeMjIfOiBeC_xHqqkZx_
	m_cmdTerminateFile.UpdateEndSessionIndex(GetNextSessionIndex(), NULL, 0);
	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
	SetModifiedFlag(TRUE);

	return FD_DRR_OK;
//----- 06.01.17 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCHistDrawDoc::OnReqMoveHistoryForward.

//----- 06.03.17 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqPushCurrentToDsm
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_PUSH_CURRENT_TO_DSM]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iMlLiNnNiCmMjHjKjHpAiImKjChFiCpAiLeMjIfOiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.07.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCHistDrawDoc::OnReqPushCurrentToDsm (FCReqBase& ret, FCReqLock& reqLock)
//{
//	// CFCHistDocumentTmpl _xZkqqHx_iCmJ_xHqqkZx_ ID_DREQ_PUSH_CURRENT_TO_DSM _xZkqqHx_iCpA_xHqqkZx_
//	// _xZkqqHx_jAmPiCnOiPiIjHjNiCkKiCkAiCoJiClNiCnPiBeBiClBiCmMiLpDiCmMiKnGjAjEiCpAjHhAiInDiBeC_xHqqkZx_
//	// _xZkqqHx_iJlNiCoAiPiIjHjNiClFiCmIiCkCiBeCiDeHiDiJiBfLiCoAjFfMiOkGiClFiCmIiCkCiBeC_xHqqkZx_
//	return FD_DRR_OK;
//} // CFCHistDrawDoc::OnReqPushCurrentToDsm.
//----- 06.03.17 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 06.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqSendCmdBufferToFile
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SEND_CMD_BUFFER_TO_FILE]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCpAiDhEiDeAiDeDiDiLiCnGiPjBiCkLiPgPiClHiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iClBiCmMjClMiMoDiCmJiCmNiBeBjFeLiClI_xHqqkZx_ ID_DREQ_FLUSH_ALL _xZkqqHx_iCkKiMmEiCmOiCoKiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
// *			_xZkqqHx_iCmIiClKiCmIiCoHiBeBiDfIiDhMiDgCiDgHiNoNiPjMjClMiMoDiCmJiCmIiCmJiCkJjBiAiNoMiCkKiCkAiCmBiClNiPoKiNiHiBeBjGkCiDhEiDiJiDgCiDfGiDiFiCmM_xHqqkZx_
// *			_xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNmEjDhIiNoMjAkMiClHiCoJiPiIjHjNiCkKjDpMiCmBiCmEiClFiCnMiCkCiBeBiDeHiDiJiBfLiCkKjEkNjAlG_xHqqkZx_
// *			_xZkqqHx_iClHiCoJiClNiCnPiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.08.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCHistDrawDoc::OnReqSendCmdBufferToFile (FCReqBase& ret, FCReqLock& reqLock)
//{
//	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDgMiDfIiDgHiCmMjAfLiClDiCkK_xHqqkZx_0_xZkqqHx_iImIiKePiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
//	if (GetSessionDepth() != 0) return FD_DRR_OK;
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKiLpDiClOiCmBiClNiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
//	if (m_pGate->IsCmdBufferEmpty()) return FD_DRR_OK;
//	// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFjCiGiCmMiPoKiNiHiCmNjDkPiClGiPiIjHjNiCpAiMhAjBlBiClHiCoJiBeC_xHqqkZx_
//	if (g_pFileServer->IsFlushing()) return FD_DRR_LATER;
//
//	// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCmNiBeBiPoNiCmJiDiNiDgCiDeOiClDiCoKiCmEiCkCiCoJiClNiCnPiBeB_xHqqkZx_
//	// _xZkqqHx_iClBiClBiCmFiDiNiDgCiDeOiClHiCoJjFeLjHhGiCmNiCmIiCkCiBeC_xHqqkZx_
//
//	if (m_pGate->IsBufferedFileOverwrited())
//	{
//		flint fliBeginFilePtr = m_pGate->GetLowestModifiedFilePoint();
//		// _xZkqqHx_jHjKjHpAiImKjChFiCoGiCoIiMoDjFpLiBgJjHjKjHpAiImKjChFiCpAiKnMiCnMiCmIiCkCiBgKiCmMiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
//		longSet stDelSpotAtom;
//		if (m_spotFile.GetDeleteSpotFileAfterFilePtr(stDelSpotAtom, fliBeginFilePtr, FALSE) != 0)
//		{
//			longSet::const_iterator iLv;
//			for (iLv = stDelSpotAtom.begin(); iLv != stDelSpotAtom.end(); iLv++)
//			{
//				// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiDiNiDgCiDeOiBeCiOlIjEhDiClHiCoJiCmGjChGjGlNjDeJiCmIiDeHiDiJiBfLiCmFiDeBiDhGiDiKjCoCiOhOiBeC_xHqqkZx_
//				FCDbWriteLock writeLockVar(*iLv);
//				if (!writeLockVar.TryLock())
//				{
//					AfxDebugBreak();
//					return FD_DRR_FATAL_ERR;
//				}
//				// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiNoNiPjMiBeC_xHqqkZx_
//				g_pFileServer->DeleteFile(*iLv, NULL, NULL);
//			}
//			// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCmMjDgPjIfOiCpAjGjFiPmBiBeC_xHqqkZx_
//			m_spotFile.RemoveSpot(stDelSpotAtom);
//			// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiDfKiBfLiDhFiBeC_xHqqkZx_
//			m_spotFile.UpdateFile(reqLock.m_autoLockSpotWrite);
//			// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCmNiPoNiCmJ_xHqqkZx_W_xZkqqHx_iDiNiDgCiDeOiClDiCoKiCmEiCkCiCoJiCmMiCmFiBeB_xHqqkZx_
//			// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFjBnCiClPiDiNiDgCiDeOiCmJjDgPjIfOiClHiCoJjFeLjHhGiCmNiCmIiCkCiBeC_xHqqkZx_
//		}
//	}
//	// _xZkqqHx_iDgPiDgCiDhEiDeAiCpAiDhEiDeAiDeDiDiLiCnGjDfNjBjHiBeC_xHqqkZx_
//	m_pGate->SendCmdBufferToFile();
//	// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmMiDgPiDgCiDhEiDeAjDoAjHgFiCpAiDhEiDeAiDeDiDiLiCnGjDfNjBjHiBeCjDkPiOjOiCmJiBeB_xHqqkZx_
//	// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmMiMlLiNnNiImKjChFiCpAiBeBiDhEiDeAiDeDiDiLjGjGjCfLiCmJiClHiCoJiBeC_xHqqkZx_
//	m_historyIndex.SendCmdBufferToFile();
//	// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmMiPeJjCfLiCpAiNfIjAfGiBeC_xHqqkZx_
//	m_cmdTerminateFile.UpdateEndSessionIndex(GetNextSessionIndex());
//	return FD_DRR_OK;
//} // CFCHistDrawDoc::OnReqSendCmdBufferToFile.
//----- 06.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqSaveSpotFile
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SAVE_SPOT_FILE]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAjFnLjBlGiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iClBiCmMjClMiMoDiCmJiCmNiBeBjFeLiClI_xHqqkZx_ ID_DREQ_FLUSH_ALL _xZkqqHx_iCkKiMmEiCmOiCoKiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
 *			_xZkqqHx_iCmIiClKiCmIiCoHiBeBiDfIiDhMiDgCiDgHiNoMjAkMjClMiMoDiCmJ_xHqqkZx_ Undo _xZkqqHx_iCkKiCkAiCmBiClNiPoKiNiHiBeBjGkCiDhEiDiJiDgCiDfGiDiFiCmM_xHqqkZx_
 *			_xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNoNiPjMiClHiCoJiPiIjHjNiCkKjDpMiCmBiCmEiClFiCnMiCkCiBeBiDeHiDiJiBfLiCkKjEkNjAlG_xHqqkZx_
 *			_xZkqqHx_iClHiCoJiClNiCnPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.08.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqSaveSpotFile (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiNmPiCnNiCmMiDgAiDeGiDgCiDeOiBgJ_xHqqkZx_OnReqCheckFlush_xZkqqHx_iKnGjAjEiBgKiCmNiOmAiNhDiClFiCmIiCkCiBeC_xHqqkZx_
	// SessionEnd _xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiCkKiBeBjClMjBePiCmJiDhEiDiJiDgCiDfGiDiFiBeBiDfIiDhMiDgCiDgHjFnLjBlGiMoDiCmJ_xHqqkZx_
	// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiCpAiOmAiNhDiClDiClJiCoJiCmGiBeBiDfKiDgCiDfGiDiHiDjDjFnLjBlGiPiIjHjNiCmJiOjOiKnEiCkKiCkJiCkJiCmBiCmEiClFiCnMiCkEiClNiCnPiBeC_xHqqkZx_

	FTDocReqResult result = OnReqCheckLock(	reqLock,
											FCReqLock::SPOT_WRITE);
	if (result != FD_DRR_OK) return result;

	// _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKiLpDiCmFiCkAiCoJiClBiCmGiCkKiPgEjHhGiBeC_xHqqkZx_
	// _xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCkKjHeMiCoJiPpDjBnEiCmNiBeBiCnMiClOiJlMjBhKiDhEiDeAiDeDiDiLiCnG_xHqqkZx_
	// _xZkqqHx_iDgGiBfLiDfOiCkKjDfNjBjHiClDiCoKiCmEiCkCiCmIiCkCiPpDjBnEiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiPpDjBnEiCmFiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNoMjAkMiClFiCmEiClFiCnMiCkEiCmGiBeB_xHqqkZx_
	// _xZkqqHx_jHoBiCkGiCmOiJlMjBhKiDhEiDeAiDeDiDiLiCpAiDhEiDiJiDgCiDfGiDiFiClFiClNiPoKiNiHiBeB_xHqqkZx_
	// _xZkqqHx_jFkIjHjNiDhEiDeAiDeDiDiLiCmJiCmNiBeBjGkCiClOiLeMjIfOiClDiCoKiCmEiCkCiCmIiCkCjHjKjHpAiImKjChFiCmM_xHqqkZx_
	// _xZkqqHx_iDfIiDhMiDgCiDgHiCkKiNoMjAkMiClDiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_

	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDgMiDfIiDgHiCmMjAfLiClDiCkK_xHqqkZx_0_xZkqqHx_iImIiKePiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
	if (GetSessionDepth() != 0)
		return FD_DRR_OK;
	// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFjCiGiCmMiPoKiNiHiCmNjDkPiClGiPiIjHjNiCpAiMhAjBlBiClHiCoJiBeC_xHqqkZx_
	if (g_pFileServer->IsFlushing())
		return FD_DRR_LATER;

	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiDhEiDeAiDeDiDiLiImKjChFiCmJiDfIiDhMiDgCiDgHiCkAiCoJiCkJiBeC_xHqqkZx_
	if (m_spotFile.IsThereSpot(GetNextSessionIndex()))
		return FD_DRR_OK;

	//----- _xZkqqHx_jGlDiCkCiPoKiNiH_xHqqkZx_ -----

	//----- _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiImKjChFiCmJiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNoMjAkM_xHqqkZx_ -----

	// _xZkqqHx_iPeJjDfPiDfIiDhMiDgCiDgHiCpAiDfKiBfLiDhFiClHiCoJiBeC_xHqqkZx_
	BYTE* pSpotStream = NULL;
	DWORD dwSpotStreamSize = 0;
	FC2Ref<BYTE*, DWORD>(pSpotStream, dwSpotStreamSize) = FFExportSpotFile(this);
	m_spotFile.AppendSpot(	GetNextSessionIndex(),
							pSpotStream,
							dwSpotStreamSize);
	// _xZkqqHx_jHmMiIoGiCpAiJpAjFpKiBeC_xHqqkZx_
	::free(pSpotStream);
	pSpotStream = NULL;

	// [ID_DREQ_SAVE_SPOT_FILE]_xZkqqHx_iCmMjClMiMoDiCmJiCmNiBeBjFeLiClI_xHqqkZx_ [ID_DREQ_FLUSH_ALL]
	// _xZkqqHx_iCkKiMmEiCmOiCoKiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
	// _xZkqqHx_iCmIiClKiCmIiCoHiBeBiDfIiDhMiDgCiDgHiNoMjAkMjClMiMoDiCmJ_xHqqkZx_ Undo _xZkqqHx_iCkKiCkAiCmBiClNiPoKiNiHiBeBjGkCiDhEiDiJiDgCiDfGiDiFiCmM_xHqqkZx_
	// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiNoNiPjMiClHiCoJiPiIjHjNiCkKjDpMiCmBiCmEiClFiCnMiCkCiBeBiDeHiDiJiBfLiCkKjEkNjAlG_xHqqkZx_
	// _xZkqqHx_iClHiCoJiClNiCnPiBeC_xHqqkZx_
	// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiBeC_xHqqkZx_
	InsertDocRequest(1, ID_DREQ_FLUSH_ALL);
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqSaveSpotFile.

//----- 05.10.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqCheckJoinProjectUser
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_CHECK_JOIN_PROJECT_USER]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiOfBiJmBiCmMjFeLjHhGjAkLiCpAiDgAiDeGiDgCiDeOiClFiBeBjFeLjHhGiCmIiCoHiOfBiJmBiOoIjBlBiCkLiCpAjAgJiCnPiCoJ_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCHistDrawDoc::OnReqCheckJoinProjectUser (FCReqBase& ret, FCReqLock& reqLock)
//{
//	// _xZkqqHx_iKgNjEeGiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiCkJiBeI_xHqqkZx_
//	BOOL bIsShowConfirmDialog = TRUE;
//	if (!ret.IsNullIsShowConfirmDialog() &&
//		!ret.GetIsShowConfirmDialog())
//		bIsShowConfirmDialog = FALSE;
//
//	long lPos = 1;
//	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDiBiDjDiDgPiBfLiCkJiCmHiCkEiCkJjClCiCnHiCoJ_xHqqkZx_]
//	InsertDocRequest(lPos++, ID_DREQ_CHECK_IS_MEMBER_OF_PROJECT_USER);
//	// _xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_
//	InsertDocRequest(lPos++, ID_DREQ_IF,
//							 FCReqBase::RETURN, FALSE,
//							 FCReqBase::NONE);
//	if (bIsShowConfirmDialog)
//	//----- _xZkqqHx_iKgNjEeGiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiOfBiJmBiClHiCoJiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiBeC_xHqqkZx_
//		InsertDocRequest(lPos++, ID_DREQ_DLG_JOIN_PROJECT_USER);
//		// _xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_
//		InsertDocRequest(lPos++, ID_DREQ_IF,
//								 FCReqBase::RETURN, IDYES,
//								 FCReqBase::NONE);
//			// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiOfBiJmBiClHiCoJiBeBiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
//			InsertDocRequest(lPos++, ID_DREQ_JOIN_PROJECT_USER);
//		// _xZkqqHx_iPpAiMiPiOmAiNhDiPeJjCfLiBeC_xHqqkZx_
//		InsertDocRequest(lPos++, ID_DREQ_END_IF);
//	} else
//	//----- _xZkqqHx_iKgNjEeGiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiOfBiJmBiClHiCoJiBeBiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
//		InsertDocRequest(lPos++, ID_DREQ_JOIN_PROJECT_USER);
//	}
//	// _xZkqqHx_iPpAiMiPiOmAiNhDiPeJjCfLiBeC_xHqqkZx_
//	InsertDocRequest(lPos++, ID_DREQ_END_IF);
//
//	return FD_DRR_OK;
//} // CFCHistDrawDoc::OnReqCheckJoinProjectUser.
//----- 05.10.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.10.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqDlgJoinProjectUser
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_DLG_JOIN_PROJECT_USER]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiOfBiJmBiClHiCoJiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCHistDrawDoc::OnReqDlgJoinProjectUser (FCReqBase& ret, FCReqLock& reqLock)
//{
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
//	FTDocReqResult result = OnReqCheckLock(reqLock, FCReqLock::PROJECT_READ);
//	if (result != FD_DRR_OK) return result;
//	// _xZkqqHx_iDiBiDjDiDgPiBfLiOjBiKgJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	HPCProject::Qualification qualification = g_pProject->CheckQualification(FFGetApp()->GetUserId());
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDiNiDgCiDeOiCpAiKeKjFpKiBeC_xHqqkZx_
//	reqLock.Unlock(FCReqLock::PROJECT_READ);
//	switch (qualification)
//	{
//	case HPCProject::NOT_MEMBER:
//	  {
//		// _xZkqqHx_iDiGiBfLiDfFjGlMiBeBiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
//		WString wstrUserName;
//		WString wstrUserId;
//		if (FFGetApp()->GetUserId() != GUID_NULL)
//		//----- _xZkqqHx_jCmKiPoNiCmMiDiGiBfLiDfFiBfLiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			wstrUserName = FFGetApp()->GetUserName();
//			wstrUserId = FFGuidToExString(FFGetApp()->GetUserId());
//		} else
//		//----- GUEST_xZkqqHx_iDiGiBfLiDfFiBfLiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			wstrUserName.LoadString(IDS_GUEST);
//		}
//		// _xZkqqHx_iMlLiNnNiKeKiCkCiCmEiCkCiCoJiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFnCiPfHiClHiCoJiCmJiCmNiBeBiDiGiBfLiDfFjDgPjIfOiCkKjFeLjHhGiCmFiClHiBeC_xHqqkZx_\r\n_xZkqqHx_iDiGiBfLiDfFiPoOjFpB_xHqqkZx_\r\n_xZkqqHx_jGlMjBeP_xHqqkZx_: %s\r\nID: %s\r\n_xZkqqHx_iCpAiDhGiDiNiDfHiDeGiDeOiDgHiCmJjDgPjIfOiClFiCnMiClHiCkJiBeI_xHqqkZx_
//		long lReturn = FFMessageBox(FormatResString(IDS_MSG_IS_JOIN_PROJECT,
//													wstrUserName.c_str(),
//													wstrUserId.c_str()),
//									NULL, MB_YESNO);
//		// _xZkqqHx_jFjMiLeBjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
//		ret.SetReturn(lReturn);
//		break;
//	  }
//	case HPCProject::MEMBER_USER:
//		// _xZkqqHx_iDiGiBfLiDfFiBfL_xHqqkZx_\r\n%s\r\n_xZkqqHx_iCmNiKpJiCmJiDhGiDiNiDfHiDeGiDeOiDgHiCmJjDgPjIfOiClDiCoKiCmEiCkCiCnMiClHiBeC_xHqqkZx_
//		FFMessageBox(FormatResString(IDS_MSG_PROJECT_MEMBER_ALREADY,
//									FFGetFormedUserId(FFGetApp()->GetUserId(), FFGetApp()->GetUserName()).c_str()));
//		// _xZkqqHx_jFjMiLeBjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
//		ret.SetReturn(IDNO);
//		break;
//	case HPCProject::LIMITED_USER:
//		// _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ %s _xZkqqHx_iCmNiDhGiDiNiDfHiDeGiDeOiDgHiCnGiCmMiPjBiCkLiNjOiCnNiCkKiLnGiOhOiClDiCoKiCmEiCkCiCnMiClHiBeC_xHqqkZx_
//		FFMessageBox(FormatResString(IDS_MSG_NOT_ARROWED_TO_WRITE_PROJECT,
//									FFGetFormedUserId(FFGetApp()->GetUserId(), FFGetApp()->GetUserName()).c_str()));
//		// _xZkqqHx_jFjMiLeBjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
//		ret.SetReturn(IDNO);
//		break;
//	}
//	return FD_DRR_OK;
//} // CFCHistDrawDoc::OnReqDlgJoinProjectUser.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqJoinProjectUser
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_JOIN_PROJECT_USER]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiOfBiJmBiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCHistDrawDoc::OnReqJoinProjectUser (FCReqBase& ret, FCReqLock& reqLock)
//{
//	// _xZkqqHx_iImIiJlKiCmMiPiIjHjNiCpAiBeB_xHqqkZx_g_pFileServer->FlushAll _xZkqqHx_iCpAiOjNiCmCiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiPiIjHjN_xHqqkZx_
//	// _xZkqqHx_iCmMjDkKjBfDiCmEiCmJjBhNjDpMiClHiCoJiBeC_xHqqkZx_
//	// _xZkqqHx_jGkCiDhEiDiJiDgCiDfGiDiFiCmMiPoKiNiHiCmNiBeBjHjKjHpAjFlGiPjBiCmMiDhEiDiJiDgCiDfGiDiFiCpAiOmAiNhDiBeC_xHqqkZx_
//	if (OnReqCheckFlush()) return FD_DRR_RETRY;
//
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
//	FTDocReqResult result = OnReqCheckLock(reqLock, FCReqLock::PROJECT_READ |
//													FCReqLock::PROJECT_WRITE);
//	if (result != FD_DRR_OK) return result;
//
//	// _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCkKiKpJiCmJiDhGiDiNiDfHiDeGiDeOiDgHiCmJjDgPjIfOiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
//	if (g_pProject->IsMemberOfUsersGroup(FFGetApp()->GetUserId()))
//		return FD_DRR_OK;
//
//	// _xZkqqHx_iIoKiOjOjDeJiCmIiDhGiDiNiDfHiDeGiDeOiDgHiCmMiPoKiNiHiCmNiBeBjAfGiLeLiDiGiBfLiDfFiCmMiOfBiJmBiCkKiLnGiOhOiClDiCoKiCmEiCkCiCmEiCoA_xHqqkZx_
//	// _xZkqqHx_jDgPjIfOiClDiClJiCoJiBeCiIoKiOjOjDeJiCmIiDhGiDiNiDfHiDeGiDeOiDgHiCmNjBlMiCmMiDiGiBfLiDfFiCkKjBiAiNoMiClHiCoJiClBiCmGiCmN_xHqqkZx_
//	// _xZkqqHx_jHeMiCoIjDlOiCmIiCkCiClNiCnPiBeC_xHqqkZx_
//
//	if (!g_pProject->GetIsUnknownFile() &&
//		!g_pProject->GetIsAllowToJoinUsersGroup())
//	//----- _xZkqqHx_iIoKiOjOjDeJiCmIiDhGiDiNiDfHiDeGiDeOiDgHiCmFiCmNiCmIiCkNiBeBiKiOiCmCiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCmMiDhGiDiNiDfHiDeGiDeOiDgHjDgPjIfOiCkKiLnGiOhOiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMjAnNjCoIiCmJiCoGiCoIiBeBjAfGiLeLiDiGiBfLiDfFiCmMiOkJiMmIjDgPjIfOiCkKiLnGiOhOiClDiCoKiCmEiCkCiCnMiClHiBeC_xHqqkZx_
//		FFSetDDError(IDS_MSG_PROJECT_INHIBIT_JOIN_USER);
//		return FD_DRR_ERR;
//	}
//
//	// _xZkqqHx_iDiGiBfLiDfFjDgPjIfOiBeC_xHqqkZx_
//	g_pProject->JoinUsersGroup(FFGetApp()->GetUserId(), FFGetApp()->GetUserName());
//	(void)g_pProject->UpdateFile(reqLock.m_autoLockProjectWrite);
//	// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiBeC_xHqqkZx_
//	InsertDocRequest(1, ID_DREQ_FLUSH_ALL);
//	return FD_DRR_OK;
//} // CFCHistDrawDoc::OnReqJoinProjectUser.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqCheckIsMemberOfProjectUser
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_CHECK_IS_MEMBER_OF_PROJECT_USER]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDiBiDjDiDgPiBfLiCkJiCmHiCkEiCkJjClCiCnHiCoJ_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.10.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCHistDrawDoc::OnReqCheckIsMemberOfProjectUser (FCReqBase& ret, FCReqLock& reqLock)
//{
//	// _xZkqqHx_jGnPiCoIjCgMiCePiBeGiDiBiDjDiDgPiBfLiCmFiCmNiCmIiCkCiBeC_xHqqkZx_
//	// _xZkqqHx_jGnPiCoIjCgMiCfAiBeGiDiBiDjDiDgPiBfLiCmFiCkAiCoIjAkHiMmAiDiGiBfLiDfFiCmFiCmNiCmIiCkCiBeC_xHqqkZx_
//	// _xZkqqHx_jGnPiCoIjCgMiCfBiBeGiDiBiDjDiDgPiBfLiCmFiCkAiCoIjAkHiMmAiDiGiBfLiDfFiCmFiCoAiCkAiCoJiBeC_xHqqkZx_
//
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
//	FTDocReqResult result = OnReqCheckLock(reqLock, FCReqLock::PROJECT_READ);
//	if (result != FD_DRR_OK) return result;
//	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAjFfMiOkGiClHiCoJiCkJiBeI_xHqqkZx_
//	BOOL bIsShowMessage = TRUE;
//	if (!ret.IsNullIsShowMessage())
//		bIsShowMessage = ret.GetIsShowMessage();
//
//	// _xZkqqHx_iDiBiDjDiDgPiBfLiOjBiKgJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//	HPCProject::Qualification qualification = g_pProject->CheckQualification(FFGetApp()->GetUserId());
//	// _xZkqqHx_jFjMiLeBjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
//	ret.SetReturn(long(qualification));
//
//	if (bIsShowMessage)
//	//----- _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAjFfMiOkGiClHiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDiNiDgCiDeOiCpAiKeKjFpKiBeCiDfPiDeDiDeBiDiNiDePjFfMiOkGiPpDjBnEiCmMiCnMiCnM_xHqqkZx_
//		// _xZkqqHx_jFpKjChFiClDiCoKiCoJiPoKiNiHiCoAiCkAiCoIiCkGiCoJiClNiCnPiBeC_xHqqkZx_
//		reqLock.Unlock(FCReqLock::PROJECT_READ);
//		switch (qualification)
//		{
//		case HPCProject::NOT_MEMBER:
//			// _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ %s _xZkqqHx_iCmNiDhGiDiNiDfHiDeGiDeOiDgHiCmJjDgPjIfOiClDiCoKiCmEiCkCiCnMiClJiCpBiBeC_xHqqkZx_
//			FFMessageBox(FormatResString(IDS_MSG_NOT_PROJECT_MEMBER,
//									FFGetFormedUserId(FFGetApp()->GetUserId(), FFGetApp()->GetUserName()).c_str()));
//			break;
//		case HPCProject::LIMITED_USER:
//			// _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ %s _xZkqqHx_iCmNiDhGiDiNiDfHiDeGiDeOiDgHiCnGiCmMiPjBiCkLiNjOiCnNiCkKiLnGiOhOiClDiCoKiCmEiCkCiCnMiClHiBeC_xHqqkZx_
//			FFMessageBox(FormatResString(IDS_MSG_NOT_ARROWED_TO_WRITE_PROJECT,
//										FFGetFormedUserId(FFGetApp()->GetUserId(), FFGetApp()->GetUserName()).c_str()));
//			break;
//		}
//	}
//	return FD_DRR_OK;
//} // CFCHistDrawDoc::OnReqCheckIsMemberOfProjectUser.
//----- 05.10.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqMoveHistoryUntilSession
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_MOVE_HISTORY_UNTIL_SESSION]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jHjKjHpAiCpAiOhHjCoIiCmMiDfKiDgCiDfGiDiHiDjDiCnMiCmFiInKjDkOiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.10.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqMoveHistoryUntilSession (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAiDeOiDiKiDgCiDeOiClFiClNiPoKiNiHiBeBiClBiClBiCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
	// HistoricDraw_xZkqqHx_iCmMiPoKiNiHiCmNiBeBiJlNiCoAiPiIjHjNiClFiCmIiCkCiBeC_xHqqkZx_
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqMoveHistoryUntilSession.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqScrollToLabel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SCROLL_TO_LABEL]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iOhHjCoIiCmMiDiJiDhIiDiLiCkKjCiGjAfDiNmAjFfHiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.04.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqScrollToLabel (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDiJiDhIiDiLiCpAiDeOiDiKiDgCiDeOiClFiClNiPoKiNiHiBeBiClBiClBiCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
	// HistoricDraw_xZkqqHx_iCmMiPoKiNiHiCmNiBeBiJlNiCoAiPiIjHjNiClFiCmIiCkCiBeC_xHqqkZx_
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqScrollToLabel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqScrollToTimeLabel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SCROLL_TO_TIME_LABEL]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iOhHjCoIiCmMiOjOiKnEiDiJiDhIiDiLiCkKjCiGjAfDiNmAjFfHiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.04.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqScrollToTimeLabel (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiOjOiKnEiDiJiDhIiDiLiCpAiDeOiDiKiDgCiDeOiClFiClNiPoKiNiHiBeBiClBiClBiCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
	// HistoricDraw_xZkqqHx_iCmMiPoKiNiHiCmNiBeBiJlNiCoAiPiIjHjNiClFiCmIiCkCiBeC_xHqqkZx_
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqScrollToTimeLabel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqScrollToSpot
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SCROLL_TO_SPOT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jBiAiNoMiImKjChFiCnGiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqScrollToSpot (FCReqBase& ret, FCReqLock& reqLock)
{
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqScrollToSpot.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnReqDeleteUnknownProject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_DELETE_UNKNOWN_PROJECT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	arg	:_xZkqqHx_iIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			ret	:_xZkqqHx_iMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	FD_DRR_OK:	_xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
 *			FD_DRR_LATER:	_xZkqqHx_iPiIjHjNiCpAiDhJiDjDiDgGiDeCiDjDiDePiBeC_xHqqkZx_
 *			FD_DRR_ERR	_xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.01.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCHistDrawDoc::OnReqDeleteUnknownProject (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_jGkCiDhEiDiJiDgCiDfGiDiFiCmMiPoKiNiHiCmNiBeBjHjKjHpAjFlGiPjBiCmMiDhEiDiJiDgCiDfGiDiFiCpAiOmAiNhDiBeC_xHqqkZx_
	if (OnReqCheckFlush()) return FD_DRR_RETRY;
//----- 06.02.01 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCkJiCoHiDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjDiCmMiLeMjIfOiCpAiNoNiPjMiBeC_xHqqkZx_
	::DeleteRepairDocName();
//----- 06.02.01 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iIpIjAjEiCmN_xHqqkZx_ UNKNOWN_PROJECT_PATH _xZkqqHx_iCmFiOhHjCoIiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
	// _xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDhGiDiNiDfHiDeGiDeOiDgHiCpAiKeKiCkNiBhGiCpAiOmAiNhDiClHiCoJiCmGiBeBiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClFiCmE_xHqqkZx_
	// _xZkqqHx_iCkJiCoHiBeB_xHqqkZx_OPEN_PROJECT_xZkqqHx_jHhGiLiBiCkKjEkNiNhDiClDiCoKiCoJiCkKiBeBiClBiCmMiOjOiBeBjAfGiLeLiNoMjAkMjFlGiPjBiCpA_xHqqkZx_
	// _xZkqqHx_iNoNiPjMiClHiCoJjHhGiLiBiCkKiKnEiCmJjBhNjDpMiClDiCoKiCmEiBeBiClLiClBiCmF_xHqqkZx_PROJECT_PATH_xZkqqHx_iCkKjAnNjCoIiClDiCoKiCmE_xHqqkZx_
	// _xZkqqHx_iClFiCnMiCkEiPoKiNiHiCkKiCkAiCoJiClNiCnPiBeC_xHqqkZx_
	// _xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiImIiJlKiCpAiClHiCnHiCmEiNoNiPjMiBeC_xHqqkZx_
	g_pFileServer->DeleteTopGroup(ret.GetUnknownProjectPath());
	return FD_DRR_OK;
} // CFCHistDrawDoc::OnReqDeleteUnknownProject.

//----- 05.08.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::RepairHistoryFile
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCmMiDgAiDeGiDgCiDeOiCmGiPeDjAlDiCpAiNhDiCkEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	tcpHistFile	:_xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiDhEiDiLiDhAiDfIjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.04.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::RepairHistoryFile (FCHiProject& project, long lDocId)
//{
//#if 0
////	AfxDebugBreak();
//	// _xZkqqHx_iKgHjCkDiOhBjGlDiClFiDhEiDiLiDhAiDfIiDhEiDeAiDeDiDiLjGlMiCpAiOoGjDlOiBeC_xHqqkZx_
//	WString wstrFileNoExt = project.GetDocumentPath(lDocId, L"");
//	try
//	{
//		// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCpAiKeKiCkNjBePiCmJjAfGiLeLiNoMjAkMiCmFiNoMiCoHiCoKiClNjBkOjAkLiCpAiPmBiLiOiClHiCoJiInHiCmJ_xHqqkZx_DeleteContents_xZkqqHx_iCpAiOmAiNhDiBeC_xHqqkZx_
//		OnNewDocument();
//		// _xZkqqHx_iDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLiCePiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		ImportFile(wstrFileNoExt + L".mdwk", NULL);
//		// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnNiDiCiBfLiDgIiCmFjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		m_pGate->OpenRead(project, lDocId);
//		// SetupSessionTimeAndIndex _xZkqqHx_iCmNiOmAiNhDiClFiCmIiCkCiBeCiClBiClBiCmFjHiOiClPiClNiCoHiPeDjFjMjFhDiJmCjEfMiCmGiCmIiCoJiClNiCnPiBeC_xHqqkZx_
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiOoGjDlOiBeC_xHqqkZx_
//	    WString wstrMsg;
//	    FFGetErrorMessage(wstrMsg, e);
//		e->Delete();
//		// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairMessage(wstrMsg);
//		// _xZkqqHx_iPeDjFjMiPiIjHjNjCoCiOhOjHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairFilePtr(flint(-2));
//		return;
//	}
//
//	// _xZkqqHx_iPeDjFjMiCmMjHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiImKjChFiCpAiOoGjDlOiBeC_xHqqkZx_
//	flint fliHistEnd = ::LoadRepairFilePtr();
//	if (fliHistEnd == flint(-1)) fliHistEnd = m_pGate->GetFileLength();
//	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAjAgJiCnPiCoJiBeC_xHqqkZx_
//	flint fliHistPtr = GetCommandFilePtr();
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiCmNjAlDiPoNiCkJiBeI_xHqqkZx_
//	BOOL bIsRegal = FALSE;
//	try
//	{
//		while (!bIsRegal && fliHistPtr < fliHistEnd)
//		{
//			if (m_pGate->SeeCmdNext() == FD_CMD_TERMINATOR)
//			//----- _xZkqqHx_iOjPiCmMiDfKiDgCiDfGiDiHiDjDiCmMiNmFiPiJiCmMiDfCiDhNiDjDiDgIiCkKiPeJjCfLiDfCiDhNiDjDiDgIiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iPeJjCfLiDfCiDhNiDjDiDgIiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
//				FTGateCmd cmd;
//				m_pGate->SkipCmd(cmd, DWORDSet(), FALSE);
//				bIsRegal = TRUE;
//			} else
//			{
//				// _xZkqqHx_iCfAiDfKiDgCiDfGiDiHiDjDjAgJiCnPiCoJiBeC_xHqqkZx_
//				m_pGate->MoveSessionNext(DWORDSet());
//			}
//			// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiImKjChFiCpAiOoGjDlOiBeC_xHqqkZx_
//			fliHistPtr = GetCommandFilePtr();
//			// _xZkqqHx_iPeDjFjMiCmMjHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiImKjChFiCpAjAnNjCoIiBeCiClBiClBiCnMiCmFiCmN_xHqqkZx_Redo_xZkqqHx_iCmFiCkLiClNiBeC_xHqqkZx_
//			::SaveRepairFilePtr(fliHistPtr);
//			// Redo_xZkqqHx_iCmMiDfCiDhNiDjDiDgIiCmFjAnNjCoIiClDiCoKiCoJiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiJpAiPjMiClHiCoJiBeCiNmFiMoDiCmJiCnMiCmGiCnPiCmEjFgAiJoGiBeC_xHqqkZx_
//			g_pView->ClearRgn();
//		}
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCkK_xHqqkZx_Redo_xZkqqHx_iCmMiOlIjEhDiCmFiClBiClBiCmJiCkNiCoJiDgOiDfJiBeC_xHqqkZx_
//		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiOoGjDlOiBeC_xHqqkZx_
//	    WString wstrMsg;
//	    FFGetErrorMessage(wstrMsg, e);
//		e->Delete();
//		// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairMessage(wstrMsg);
//		// _xZkqqHx_iPeDjFjMiPiIjHjNiCpAiMhAjBlBiClHiCoJiClNiCnPiBeBjCoCiOhOjHhGiLiBiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//		return;
//	}
//
//	try
//	{
//		if (bIsRegal && fliHistPtr == m_pGate->GetFileLength())
//		//----- _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCmMiPeJjCfLiDfCiDhNiDjDiDgIiCnMiCmFjBjHiCoJiClBiCmGiCkKiPgPjHiIiClNiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//			m_pGate->Close();
//			// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//			// IDS_MSG_NO_ERROR_FILE = "_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmJiInJiPoNiCmNiCkAiCoIiCnMiClJiCpBiCmFiClFiClN_xHqqkZx_"
//			::SaveRepairMessage(FormatResString(IDS_MSG_NO_ERROR_FILE,
//												(const wchar_t*)(wstrFileNoExt + FDHI_COMMAND_TABLE_ID)));
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDfIiDfOiDgCiDeOiCkJiCoHiBeBiDfOiBfLiDfBiDgCiDgHiCpAiPjMiLiOiBeC_xHqqkZx_
//			::PopRepairFileStack();
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
//			::DeleteRepairFilePtr();
//		} else
//		{
//			// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAiCkCiCmBiClNiCpBjFmCiClGiCoJiBeC_xHqqkZx_
//			m_pGate->Close();
//			// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAjDmHiCnNiPjBiCkLiDiCiBfLiDgIiCmFjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//			m_pGate->OpenExisting(project, lDocId);
//			// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCmMiDfEiDeDiDfJiCpAjAnNjCoIiBeC_xHqqkZx_
//			m_pGate->SetHistoryLength(fliHistPtr);
////----- 03.10.09 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////			// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAiDhEiDiJiDgCiDfGiDiFiBeC_xHqqkZx_
////			m_pGate->FlushHistory();
////----- 03.10.09 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//			// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//// 02.04.17 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////			m_pGate->Close(fliHistPtr);
//			m_pGate->Close();
//			// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//			// IDS_MSG_COMPLETE_REPAIR_FILE = "_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCpAiPeDjFjMiClFiCmEjFnLjBlGiClFiCnMiClFiClN_xHqqkZx_"
//			::SaveRepairMessage(FormatResString(IDS_MSG_COMPLETE_REPAIR_FILE,
//												(const wchar_t*)(wstrFileNoExt + FDHI_COMMAND_TABLE_ID)));
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDfIiDfOiDgCiDeOiCkJiCoHiBeBiDfOiBfLiDfBiDgCiDgHiCpAiPjMiLiOiBeC_xHqqkZx_
//			::PopRepairFileStack();
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
//			::DeleteRepairFilePtr();
//		}
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiOoGjDlOiBeC_xHqqkZx_
//	    WString wstrMsg;
//	    FFGetErrorMessage(wstrMsg, e);
//		e->Delete();
//		// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairMessage(wstrMsg);
//		// _xZkqqHx_iPeDjFjMiPiIjHjNjCoCiOhOjHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairFilePtr(flint(-2));
//		return;
//	}
//#endif//0
//} // CFCHistDrawDoc::RepairHistoryFile.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::RepairHistoryIndex
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiCmMiDgAiDeGiDgCiDeOiCmGiPeDjAlDiCpAiNhDiCkEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	tcpIdxFile	:_xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiDhEiDiLiDhAiDfIjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.04.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::RepairHistoryIndex (FCHiProject& project, long lDocId)
//{
//#if 0
//	// _xZkqqHx_iKgHjCkDiOhBjGlDiClFiDhEiDiLiDhAiDfIiDhEiDeAiDeDiDiLjGlMiCpAiOoGjDlOiBeC_xHqqkZx_
//	WString wstrFileNoExt = project.GetDocumentPath(lDocId, L"");
//	flint fliHistPtrEnd = 0;
//	flint fliSessionIdx = 0;
//	try
//	{
//		FCHiCommandTable gate;
//		// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnNiDiCiBfLiDgIiCmFjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		gate.OpenRead(project, lDocId);
//		// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAiNmFiMoDiCnMiCmFjBjHiCoJiBeC_xHqqkZx_
//		fliHistPtrEnd = gate.FileSeek(0, FILE_END);
//		FDSECTIME fdst;
//		gate.SeeSessionTimeAndIndex(fdst, fliSessionIdx);
//		gate.Close();
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiOoGjDlOiBeC_xHqqkZx_
//	    WString wstrMsg;
//	    FFGetErrorMessage(wstrMsg, e);
//		// _xZkqqHx_jHoBiKePiCpAiNoNiPjMiBeC_xHqqkZx_
//		e->Delete();
//		// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairMessage(wstrMsg);
//		// _xZkqqHx_iPeDjFjMiPiIjHjNjCoCiOhOjHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairFilePtr(flint(-2));
//		// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
//		::DeleteRepairFilePtr();
//		return;
//	}
//	FCHiSummaryTable historyIndex;
//	try
//	{
//		// _xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeCiDeHiDiJiBfLiOjOiCmN_xHqqkZx_CFileException_xZkqqHx_iBeC_xHqqkZx_
//		historyIndex.OpenRead(project, lDocId);
//	} catch (CFileException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		if (e->m_cause == CFileException::fileNotFound)
//		//----- _xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCkKjBlGiNnNiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//		{
//			//----- _xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCpAjAfGiLeLiCmJiNoMjAkMiClHiCoJ_xHqqkZx_ -----
//			// _xZkqqHx_jHoBiKePiCpAiNoNiPjMiBeC_xHqqkZx_
//			e->Delete();
//			// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
//			FCHiSummaryTable historyIndexNew;
//			historyIndexNew.OpenCreate(wstrFileNoExt + FDHI_SUMMARY_TABLE_ID,
//										FFGetCurrentSecTime());
//			historyIndexNew.Close();
//			FCHiTerminateTable cmdTermFile;
//			cmdTermFile.OpenCreate(wstrFileNoExt + FDHI_TERMINATE_TABLE_ID,
//										fliSessionIdx, fliHistPtrEnd);
//			cmdTermFile.Close();
//			// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//			// IDS_MSG_CREATE_INDEX_FILE = "_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCpAjAfGiLeLiCmJiNoMjAkMiClFiCnMiClFiClN_xHqqkZx_"
//			::SaveRepairMessage(FormatResString(IDS_MSG_CREATE_INDEX_FILE,
//												(const wchar_t*)(wstrFileNoExt + FDHI_SUMMARY_TABLE_ID)));
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDfIiDfOiDgCiDeOiCkJiCoHiBeBiDfOiBfLiDfBiDgCiDgHiCpAiPjMiLiOiBeC_xHqqkZx_
//			::PopRepairFileStack();
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
//			::DeleteRepairFilePtr();
//		} else
//		//----- _xZkqqHx_iClLiCmMjBlMiCmMiDeHiDiJiBfLiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiOoGjDlOiBeC_xHqqkZx_
//		    WString wstrMsg;
//		    FFGetErrorMessage(wstrMsg, e);
//			// _xZkqqHx_jHoBiKePiCpAiNoNiPjMiBeC_xHqqkZx_
//			e->Delete();
//			// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//			::SaveRepairMessage(wstrMsg);
//			// _xZkqqHx_iPeDjFjMiPiIjHjNjCoCiOhOjHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
//			::SaveRepairFilePtr(flint(-2));
//		}
//		return;
//	}
//	try
//	{
//		// _xZkqqHx_iPeDjFjMiCmMiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiImKjChFiCpAiOoGjDlOiBeC_xHqqkZx_
//		DWORD dwIdxEnd = (DWORD)::LoadRepairFilePtr();
//		// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAjAgJiCnPiCoJiBeC_xHqqkZx_
//		DWORD dwIdxPtr = historyIndex.GetPosition();
//		while (dwIdxPtr < dwIdxEnd)
//		{
//			// _xZkqqHx_iCfAiDeDiDjDiDgGiDgCiDeOiDfIiMoDjFpLiCnGiInKjDkOiBeCiDhEiDeAiDeDiDiLiCmMiPeJiCoNiCoIiCmIiCoHiPeJjHlJiBeC_xHqqkZx_
//			if (!historyIndex.MoveSession(+1)) break;
//			// _xZkqqHx_iMlLiNnNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiImKjChFiCpAiOoGjDlOiBeC_xHqqkZx_
//			dwIdxPtr = historyIndex.GetPosition();
//			// _xZkqqHx_iPeDjFjMiCmMiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiImKjChFiCpAjAnNjCoIiBeCiClBiClBiCnMiCmFiCmN_xHqqkZx_Redo_xZkqqHx_iCmFiCkLiClNiBeC_xHqqkZx_
//			::SaveRepairFilePtr(flint(dwIdxPtr));
//		}
//		if (dwIdxPtr == historyIndex.GetLength())
////		if (dwIdxPtr == historyIndex.GetEndPosition())
//		//----- _xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmMjGjGjCfLiCnMiCmFjAlDiPoNiCmJjBjHiCoJiClBiCmGiCkKiPgPjHiIiClNiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//			historyIndex.Close();
//			// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//			// IDS_MSG_NO_ERROR_FILE = "_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmJiInJiPoNiCmNiCkAiCoIiCnMiClJiCpBiCmFiClFiClN_xHqqkZx_"
//			::SaveRepairMessage(FormatResString(IDS_MSG_NO_ERROR_FILE,
//												(const wchar_t*)(wstrFileNoExt + FDHI_SUMMARY_TABLE_ID)));
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDfIiDfOiDgCiDeOiCkJiCoHiBeBiDfOiBfLiDfBiDgCiDgHiCpAiPjMiLiOiBeC_xHqqkZx_
//			::PopRepairFileStack();
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
//			::DeleteRepairFilePtr();
//			return;
//		}
//		// _xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiCpAiCkCiCmBiClNiCpBjFmCiClGiCoJiBeC_xHqqkZx_
//		historyIndex.Close();
//		// _xZkqqHx_iDfEiDhNiDiKiBfLiDgFiBfLiDhFiDiLiCpAiPjBiCkLiNjOiCnNiJmCiCmFiNmEiCnBiKeKiCkNiBeC_xHqqkZx_
//		historyIndex.OpenExisting(project, lDocId);
//		// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCmMjClHiClDiCpAjAnNjCoIiBeC_xHqqkZx_
//		historyIndex.SetLength(dwIdxPtr);
//		historyIndex.Close();
//		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiCmMiPeJjCfLiCpAiNfIjAfGiBeC_xHqqkZx_
//		FCHiTerminateTable cmdTermFile;
//		cmdTermFile.OpenCreate(wstrFileNoExt + FDHI_TERMINATE_TABLE_ID,
//									fliSessionIdx, fliHistPtrEnd);
//		cmdTermFile.Close();
//
//		// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//		// IDS_MSG_COMPLETE_REPAIR_FILE = "_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCpAiPeDjFjMiClFiCmEjFnLjBlGiClFiCnMiClFiClN_xHqqkZx_"
//		::SaveRepairMessage(FormatResString(IDS_MSG_COMPLETE_REPAIR_FILE,
//											(const wchar_t*)(wstrFileNoExt + FDHI_SUMMARY_TABLE_ID)));
//		// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDfIiDfOiDgCiDeOiCkJiCoHiBeBiDfOiBfLiDfBiDgCiDgHiCpAiPjMiLiOiBeC_xHqqkZx_
//		::PopRepairFileStack();
//		// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
//		::DeleteRepairFilePtr();
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCmM_xHqqkZx_Redo_xZkqqHx_iCmMiOlIjEhDiCmFiClBiClBiCmJiCkNiCoJiDgOiDfJiBeC_xHqqkZx_
//		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiOoGjDlOiBeC_xHqqkZx_
//	    WString wstrMsg;
//	    FFGetErrorMessage(wstrMsg, e);
//		e->Delete();
//		// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairMessage(wstrMsg);
//		// _xZkqqHx_iPeDjFjMiPiIjHjNiCpAiMhAjBlBiClHiCoJiClNiCnPiBeBjCoCiOhOjHhGiLiBiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//		return;
//	}
//#endif//0
//} // CFCHistDrawDoc::RepairHistoryIndex.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::RepairFork
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFkKiKpCiDhEiDeAiDeDiDiLiCmMiDgAiDeGiDgCiDeOiCmGiPeDjAlDiCpAiNhDiCkEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	tcpFork	:_xZkqqHx_jFkKiKpCiDhEiDeAiDeDiDiLiDhEiDiLiDhAiDfIjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.04.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::RepairFork (FCHiProject& project, long lDocId)
//{
//#if 0
//// 03.09.28 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////	flint fliHistPtrEnd;
//	flint fliSessionIdx;
//	try
//	{
//		// _xZkqqHx_jHjKjHpAiPeJjCfLiImKjChFiCpAiOoGjDlOiBeC_xHqqkZx_
//// 03.09.28 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////		flint fliSessionIdx;
////----- 04.08.09 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////		flint fliCmdEndPtr;
////		flint fliIdxEndPtr;
////----- 04.08.09 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//		FCHiTerminateTable cmdTermFile;
//		cmdTermFile.OpenRead(project, lDocId);
//// 04.08.09 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////		cmdTermFile.SeeEnd(fliSessionIdx, fliCmdEndPtr, fliIdxEndPtr);
//		fliSessionIdx = cmdTermFile.SeeEndSessionIndex();
//		cmdTermFile.Close();
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiOoGjDlOiBeC_xHqqkZx_
//	    WString wstrMsg;
//	    FFGetErrorMessage(wstrMsg, e);
//		// _xZkqqHx_jHoBiKePiCpAiNoNiPjMiBeC_xHqqkZx_
//		e->Delete();
//		// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairMessage(wstrMsg);
//		// _xZkqqHx_iPeDjFjMiPiIjHjNjCoCiOhOjHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
//		::SaveRepairFilePtr(flint(-2));
//		// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
//		::DeleteRepairFilePtr();
//		return;
//	}
//	FCHiForkTable forkFile;
//	// _xZkqqHx_jFkKiKpCiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	forkFile.SetProjectAndDid(project, lDocId);
//
//	//----- _xZkqqHx_jHjKjHpAjFkKiKpCiImKjChFiCoGiCoIiCoAiImIjBePiCmJjGnPiCoLiCkEiCmGiClFiCmEiCkCiCoJiCkJiDgAiDeGiDgCiDeO_xHqqkZx_ -----
////----- 04.06.18 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	const FCIdxToForkInfoMmap& fileRec = forkFile.GetForkList();
////	if (0 < fileRec.size())
////	// _xZkqqHx_jHjKjHpAjFkKiKpCiCkKjBlGiNnNiClHiCoJiPoKiNiHiBeC_xHqqkZx_
////	{
////		// _xZkqqHx_iNmFiMoDiCmMjFkKiKpCiImKjChFiCpAjEoEiKhCiBeC_xHqqkZx_
////		if (fliSessionIdx <= (*fileRec.rbegin()).first)
////		{
////			// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
////			// IDS_ERR_MSG_FORK_OVER_HIST "_xZkqqHx_jFkKiKpCiDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmJiLeMjIfOiClDiCoKiCmEiCkCiCoJjFkKiKpCiImKjChFiCkK_xHqqkZx_...
////			::SaveRepairMessage(FormatResString(IDS_ERR_MSG_FORK_OVER_HIST,
////												forkFile.GetFilePath()));
////			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDfIiDfOiDgCiDeOiCkJiCoHiBeBiDfOiBfLiDfBiDgCiDgHiCpAiPjMiLiOiBeC_xHqqkZx_
////			::PopRepairFileStack();
////			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
////			::DeleteRepairFilePtr();
////			return;
////		}
////	}
////----- 04.06.18 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	const fliLatestSessionIndex = forkFile.GetLatestForkOrLabel();
//	if (fliLatestSessionIndex != flint(-1))
//	// _xZkqqHx_jHjKjHpAjFkKiKpCiCkKjBlGiNnNiClHiCoJiPoKiNiHiBeC_xHqqkZx_
//	{
//		// _xZkqqHx_iNmFiMoDiCmMjFkKiKpCiImKjChFiCpAjEoEiKhCiBeC_xHqqkZx_
//		if (fliSessionIdx <= fliLatestSessionIndex)
//		{
//			// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//			// IDS_ERR_MSG_FORK_OVER_HIST "_xZkqqHx_jFkKiKpCiDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmJiLeMjIfOiClDiCoKiCmEiCkCiCoJjFkKiKpCiImKjChFiCkK_xHqqkZx_...
//			::SaveRepairMessage(FormatResString(IDS_ERR_MSG_FORK_OVER_HIST,
//												forkFile.GetFilePath()));
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDfIiDfOiDgCiDeOiCkJiCoHiBeBiDfOiBfLiDfBiDgCiDgHiCpAiPjMiLiOiBeC_xHqqkZx_
//			::PopRepairFileStack();
//			// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
//			::DeleteRepairFilePtr();
//			return;
//		}
//	}
////----- 04.06.18 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//
//	// _xZkqqHx_jFnEjAeNiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//	// IDS_MSG_COMPLETE_REPAIR_FILE = "_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCpAiPeDjFjMiClFiCmEjFnLjBlGiClFiCnMiClFiClN_xHqqkZx_"
//	::SaveRepairMessage(FormatResString(IDS_MSG_COMPLETE_REPAIR_FILE,
//										forkFile.GetFilePath()));
//	// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDfIiDfOiDgCiDeOiCkJiCoHiBeBiDfOiBfLiDfBiDgCiDgHiCpAiPjMiLiOiBeC_xHqqkZx_
//	::PopRepairFileStack();
//	// _xZkqqHx_iPeDjFjMiDhEiDeAiDeDiDiLiDhMiDeDiDjDiDfOiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
//	::DeleteRepairFilePtr();
//#endif//0
//} // CFCHistDrawDoc::RepairFork.
//----- 05.08.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::RegisterLabelObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDiJiDhIiDiLjFlGiOjKjHpBiCpAiKmHjHjNiDgFiBfLiDhFiDiLiCmJjDgPjIfOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwObjId	:_xZkqqHx_iDiJiDhIiDiLjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			_xZkqqHx_iDiJiDhIiDiLjFlGiOjKjHpBiCkKiNoNiPjMiClDiCoKiCoJiPoKiNiH_xHqqkZx_
 *				wcpLabelDelete	:_xZkqqHx_iDiJiDhIiDiLjFlGiOjKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *				wcpLabelCreate	:NULL_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			_xZkqqHx_iDiJiDhIiDiLjFlGiOjKjHpBiCkKiNoMjAkMiClDiCoKiCoJiPoKiNiH_xHqqkZx_
 *				wcpLabelDelete	:NULL_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *				wcpLabelCreate	:_xZkqqHx_iDiJiDhIiDiLjFlGiOjKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *			_xZkqqHx_iDiJiDhIiDiLjFlGiOjKjHpBiCkKjFmPiNfIiClDiCoKiCoJiPoKiNiH_xHqqkZx_
 *				wcpLabelDelete	:_xZkqqHx_jFmPiNfIjBePiDiJiDhIiDiLjFlGiOjKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *				wcpLabelCreate	:_xZkqqHx_jFmPiNfIiMoDiDiJiDhIiDiLjFlGiOjKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iKmHjHjNiDgFiBfLiDhFiDiLiCnGiCmMjDgPjIfOiCmNiBeBjDkPiIoKiDfKiDgCiDfGiDiHiDjDiCmFjDkPiClGjFjEjFgJiCmJiInJiCmIiCoJ_xHqqkZx_
 *			_xZkqqHx_iPiIjHjNiCkKiClDiCoKiCoJiPoKiNiHiCpAjBhKjCoIiClFiCmEiBeBiDhNiBfLiDfHiClDiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDhNiBfLiDfHiClDiCoKiCoJiDiLiBfLiDiLiCmNiBeBiImIiJlKiBeC_xHqqkZx_
 *
 *	---------------------------------------------------------------------
 *	[NONE] ->	[CREATE] : insert to create list.
 *				[DELETE] : insert to delete list.
 *				[MODIFY] : insert to modify list.
 *	---------------------------------------------------------------------
 *	[CREATE] ->	[CREATE] : error.
 *				[DELETE] : erase from create list.
 *				[MODIFY] : replace new label.
 *	---------------------------------------------------------------------
 *	[DELETE] ->	[CREATE] : erase from delete list and insert to modify list.
 *				[DELETE] : error.
 *				[MODIFY] : error.
 *	---------------------------------------------------------------------
 *	[MODIFY] ->	[CREATE] : error.
 *				[DELETE] : erase from modify list.
 *				[MODIFY] : replace new label.
 *	---------------------------------------------------------------------
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::RegisterLabelObj (	DWORD dwObjId,
										const wchar_t* wcpLabelDelete,
										const wchar_t* wcpLabelCreate)
{
	// _xZkqqHx_iLpDjFlGiOjKiCmIiCoHiCmOiBeB_xHqqkZx_NULL_xZkqqHx_iCmJjFmPiNfIiBeC_xHqqkZx_
	// _xZkqqHx_iDiJiDhIiDiLjFlGiOjKjHpBiCmNjHjKjHpAiCmJjDgPjIfOiClDiCoKiCoJiCmMiCmFiBeBiLpDjFlGiOjKiCmFiCkAiCoJiCmGiCkCiCkEiCmMiCmN_xHqqkZx_
	// _xZkqqHx_iNoNiPjMiClDiCoKiClNiCmGjDkPiClGiClBiCmGiBeC_xHqqkZx_
	if (wcpLabelDelete != NULL && wcpLabelDelete == L'\0')
		wcpLabelDelete = NULL;
	if (wcpLabelCreate != NULL && wcpLabelCreate == L'\0')
		wcpLabelCreate = NULL;

	// _xZkqqHx_iDiJiDhIiDiLiCkKjDkPiIoKiCmMiPoKiNiHiCmNiBeBiJlNiCoAiClJiClIjFjMiLeBiBeC_xHqqkZx_
	// _xZkqqHx_iDgFiDeMiDfIiDgHiCmMjBkOjAkLiCmMiCnNjFmPiNfIiClFiClNiPoKiNiHiCmNiBeBiDgFiDeMiDfIiDgHiCkKiIoKjChGiClHiCoJiBeC_xHqqkZx_
	if (wcpLabelDelete != NULL && wcpLabelCreate != NULL &&
		wcscmp(wcpLabelDelete, wcpLabelCreate) == 0) return;

	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJ_xHqqkZx_ID -> _xZkqqHx_jFjEjFgJiPiIjHjNiDgFiBfLiDhFiDiLiCmJjDgPjIfOiNmPiCnNiCkJiBeI_xHqqkZx_
	map<DWORD, FCModifyLabelKind>::iterator iFind = m_mpObjIdToKind.find(dwObjId);
	if (iFind != m_mpObjIdToKind.end())
	//----- _xZkqqHx_iKpJiCmJjDgPjIfOiNmPiCnNiCmMiPoKiNiH_xHqqkZx_ -----
	{
		if ((*iFind).second.atpLabelDelete.get() == NULL &&
			(*iFind).second.atpLabelCreate.get() == NULL)
		{
			AfxDebugBreak();
			FFThrowMiscUnknown();
		}
		if (wcpLabelDelete == NULL &&
			wcpLabelCreate == NULL)
		{
			AfxDebugBreak();
			FFThrowMiscUnknown();
		}

		if ((*iFind).second.atpLabelDelete.get() == NULL &&
			(*iFind).second.atpLabelCreate.get() != NULL)
		//----- _xZkqqHx_iKpJiCmJiBhJiNoMjAkMiBhKiCmMiPoKiNiH_xHqqkZx_ -----
		{
			if (wcpLabelDelete == NULL && wcpLabelCreate != NULL)
			//----- _xZkqqHx_jAfGiClNiCmJiBhJiNoMjAkMiBhKiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iBhJiNoMjAkMiBhK_xHqqkZx_->_xZkqqHx_iBhJiNoMjAkMiBhK_xHqqkZx_
				// error.
				AfxDebugBreak();
				FFThrowMiscUnknown();
			} else
			if (wcpLabelDelete != NULL && wcpLabelCreate == NULL)
			//----- _xZkqqHx_jAfGiClNiCmJiBhJiNoNiPjMiBhKiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iBhJiNoMjAkMiBhK_xHqqkZx_->_xZkqqHx_iBhJiNoNiPjMiBhK_xHqqkZx_
				// erase from create list.
				m_mpObjIdToKind.erase(iFind);
			} else
			//----- _xZkqqHx_jAfGiClNiCmJiBhJiPeDjAlDiBhKiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iBhJiNoMjAkMiBhK_xHqqkZx_->_xZkqqHx_iBhJiPeDjAlDiBhK_xHqqkZx_
				// replace new label.
				(*iFind).second.atpLabelCreate = WCharAuto(StrNewCpy(wcpLabelCreate));
			}
		} else
		if ((*iFind).second.atpLabelDelete.get() != NULL &&
			(*iFind).second.atpLabelCreate.get() == NULL)
		//----- _xZkqqHx_iKpJiCmJiBhJiNoNiPjMiBhKiCmMiPoKiNiH_xHqqkZx_ -----
		{
			if (wcpLabelDelete == NULL && wcpLabelCreate != NULL)
			//----- _xZkqqHx_jAfGiClNiCmJiBhJiNoMjAkMiBhKiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iBhJiNoNiPjMiBhK_xHqqkZx_->_xZkqqHx_iBhJiNoMjAkMiBhK_xHqqkZx_
				// erase from delete list and insert to modify list.
				(*iFind).second.atpLabelCreate = WCharAuto(StrNewCpy(wcpLabelCreate));
			} else
			if (wcpLabelDelete != NULL && wcpLabelCreate == NULL)
			//----- _xZkqqHx_jAfGiClNiCmJiBhJiNoNiPjMiBhKiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iBhJiNoNiPjMiBhK_xHqqkZx_->_xZkqqHx_iBhJiNoNiPjMiBhK_xHqqkZx_
				// error.
				AfxDebugBreak();
				FFThrowMiscUnknown();
			} else
			//----- _xZkqqHx_jAfGiClNiCmJiBhJiPeDjAlDiBhKiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iBhJiNoNiPjMiBhK_xHqqkZx_->_xZkqqHx_iBhJiPeDjAlDiBhK_xHqqkZx_
				// error.
				AfxDebugBreak();
				FFThrowMiscUnknown();
			}
		} else
		//----- _xZkqqHx_iKpJiCmJiBhJiPeDjAlDiBhKiCmMiPoKiNiH_xHqqkZx_ -----
		{
			if (wcpLabelDelete == NULL && wcpLabelCreate != NULL)
			//----- _xZkqqHx_jAfGiClNiCmJiBhJiNoMjAkMiBhKiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iBhJiPeDjAlDiBhK_xHqqkZx_->_xZkqqHx_iBhJiNoMjAkMiBhK_xHqqkZx_
				// error.
				AfxDebugBreak();
				FFThrowMiscUnknown();
			} else
			if (wcpLabelDelete != NULL && wcpLabelCreate == NULL)
			//----- _xZkqqHx_jAfGiClNiCmJiBhJiNoNiPjMiBhKiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iBhJiPeDjAlDiBhK_xHqqkZx_->_xZkqqHx_iBhJiNoNiPjMiBhK_xHqqkZx_
				// erase from modify list.
				m_mpObjIdToKind.erase(iFind);
			} else
			//----- _xZkqqHx_jAfGiClNiCmJiBhJiPeDjAlDiBhKiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iBhJiPeDjAlDiBhK_xHqqkZx_->_xZkqqHx_iBhJiPeDjAlDiBhK_xHqqkZx_
				// replace new label.
				(*iFind).second.atpLabelCreate = WCharAuto(StrNewCpy(wcpLabelCreate));
			}
		}
	} else
	//----- _xZkqqHx_jGkCiClOjDgPjIfOiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		//----- [NONE] -> [CREATE/DELETE/MODIFY] -----
		// insert to create list.
		FCModifyLabelKind labelKind;
		if (wcpLabelDelete != NULL)
			labelKind.atpLabelDelete = WCharAuto(StrNewCpy(wcpLabelDelete));
		if (wcpLabelCreate != NULL)
			labelKind.atpLabelCreate = WCharAuto(StrNewCpy(wcpLabelCreate));
		m_mpObjIdToKind[dwObjId] = labelKind;
	}
} // CFCHistDrawDoc::RegisterLabelObj.

/////////////////////////////////////////////////////////////////////////////
// CFCHistDrawDoc _xZkqqHx_jAgGjCgG_xHqqkZx_

#ifdef _DEBUG
void CFCHistDrawDoc::AssertValid() const
{
	BASE_CLASS::AssertValid();
} // CFCHistDrawDoc::AssertValid.

void CFCHistDrawDoc::Dump(CDumpContext& dc) const
{
	BASE_CLASS::Dump(dc);
} // CFCHistDrawDoc::Dump.
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CFCHistDrawDoc _xZkqqHx_iDeJiBfLiDgPiBfLiDiJiDeDiDgIiBeC_xHqqkZx_

//----- 05.08.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::SetModifiedFlag
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iPeDjAlDiDhEiDiJiDePiCmMjAnNjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bModified	:_xZkqqHx_iPeDjAlDiBeFjGkCiPeDjAlDiCmMjAnNjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	HistoricDraw_xZkqqHx_iCmFiCmNiBeBjHjKjHpAjFlGiPjBiCmMiPeDjFjMiDhEiDiJiDePiCmMjAnNjCoIiCmGiJpAiPjMiCpAiNhDiCkEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *			00.04.25 Fukushiro M. _xZkqqHx_jFmPiNfI_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::SetModifiedFlag (BOOL bModified)
//{
//	if (IsModified() != bModified)
//	//----- _xZkqqHx_iPeDjAlDiPoOjFpBiCkKiBeBiKpJiCmJjAnNjCoIiClDiCoKiCmEiCkCiCoJiCmMiCmGiInJiCmIiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		if (bModified)
//		//----- _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCkKjAnNjCoIiClDiCoKiCoJiPoKiNiH_xHqqkZx_ -----
//		{
////----- 05.08.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////			// RepairHistoryFile_xZkqqHx_iKnGjAjEiCkJiCoHiBeB_xHqqkZx_CommandGate::MoveSessionNext_xZkqqHx_iCpAiOmAiNhDiBeB_xHqqkZx_
////			// _xZkqqHx_iClBiCmMiKnGjAjEiCkKiOmAiNhDiClDiCoKiCoJiPoKiNiHiCkKiCkAiCoJiClNiCnPiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmGjFlGiPjBiCpAiMjPiNlIiBeC_xHqqkZx_
////----- 05.08.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//			if (g_pProject->IsProjectOpened() && GetIsDocumentOpened())
//			//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiDeJiBfLiDhGiDjDiBeBiKiOiCmCjFlGiPjBiCoAiDeJiBfLiDhGiDjDiClFiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCmJiDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjDiCpAiLeMjIfOiBeCiDhEiDeAiDeDiDiLiPeDjFjMiCmJjEpFiCkGiCmEiBeC_xHqqkZx_
//				::SaveRepairDocName(g_pProject->GetFilePath(),
//									g_pProject->GetDocumentRec(m_lDocId)->GetFilePath(),
//									_i64towcs(m_lDocId, 10));
//			}
//		} else
//		//----- _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCkKiJpAiPjMiClDiCoKiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCkJiCoHiDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjDiCmMiLeMjIfOiCpAiNoNiPjMiBeC_xHqqkZx_
//			DeleteRepairDocName();
//		}
//	}
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	BASE_CLASS::SetModifiedFlag(bModified);
//} // CFCHistDrawDoc::SetModifiedFlag.
//----- 05.08.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::DeleteContents
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMiDgGiBfLiDfOiCpAiNoNiPjMiClFiBeBiNmEiCnBiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgH_xHqqkZx_ _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiOkJjAgHiCmNjEgKiKpMiClJiClIiBeBiDgIiDeMiDiFiDiBiDjDiDgHiCmM_xHqqkZx_
 *			_xZkqqHx_iDgGiBfLiDfOiCpAiNoNiPjMiClHiCoJiClNiCnPiCmJiBeBiDhEiDiMiBfLiDiAiDiPiBfLiDeOiCkKiMmEiCnBiPgPiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iImIiJlKiCmMiCfCiCmCiCmMiKnGjAjEiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iBeF_xHqqkZx_COleServerDoc::OnNewDocument
 *			_xZkqqHx_iBeF_xHqqkZx_COleServerDoc::OnOpenDocument
 *			_xZkqqHx_iBeF_xHqqkZx_CFrameWnd::OnClose
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjEgKiKpMiOjOiCmJiClBiCmMiKnGjAjEiCkKiMmEiCmOiCoKiCoJiOjOiCmNiBeBiKpJiCmJ_xHqqkZx_View_xZkqqHx_iCmNjEgKiKpM_xHqqkZx_
 *			_xZkqqHx_iClDiCoKiCmEiCkCiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::DeleteContents ()
{
	// _xZkqqHx_jFnLjBlGiPiIjHjNiCmNiBeB_xHqqkZx_SaveModified_xZkqqHx_iKnGjAjEiCnGiInKjDkOiBeC_xHqqkZx_

	// _xZkqqHx_jHjKjHpAjFlGiPjBjFnLiOjNiDhEiDiJiDePiCkKjAnNjCoIiClDiCoKiCmEiCkIiCoHiClIiBeB_xHqqkZx_
	// _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmNjFmCiClGiCoJiBeC_xHqqkZx_
// 03.03.31 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	if (!m_bHoldHidocument && GetIsDocumentOpened())
	if (GetIsDocumentOpened())
	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// SaveHistory_xZkqqHx_jDjJiCmMjFnLjBlGiPiIjHjNiCmNiBeB_xHqqkZx_SaveModified_xZkqqHx_iKnGjAjEiCnGiInKjDkOiBeC_xHqqkZx_

		// Flush_xZkqqHx_jHhAiCmMiDfOiDeDiDhNiBfLiPeJjHlJiBeC_xHqqkZx_
		if (FFGetMainWnd()->IsAvailable())
			FFGetMainWnd()->GetWnd()->KillTimer(FDTIMER_FRAME_FLUSH);

		// _xZkqqHx_iImIiJlKiCmMiPiIjHjNiCpAiBeB_xHqqkZx_CFCHistDocumentTmpl::DeleteContents _xZkqqHx_iCnG_xHqqkZx_
		// _xZkqqHx_iInKjDkOiClFiCmEiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
		// DeleteContents _xZkqqHx_iCmNiBeB_xHqqkZx_XXXClass::DeleteContents() _xZkqqHx_iCmGiCkCiCkE_xHqqkZx_
		// _xZkqqHx_iMgAiCmFiBeBjClMjAnKiOmAiNhDiClDiCoKiCoJiPoKiNiHiCkKiCkAiCoJiClNiCnPiBeC_xHqqkZx_
		// _xZkqqHx_iCnMiClNiBeBiClBiCmMiDeOiDiJiDfIiCmM_xHqqkZx_ OnReqOpenHidocument_xZkqqHx_iKnGjAjEiCmFiKeKiCkCiCmEiCkCiCoJ_xHqqkZx_
		// _xZkqqHx_iClNiCnPiBeBjDkPiClGiClBiCmMiDeOiDiJiDfIiCmFjFmCiClGiCoJiCnHiCkLiBeC_xHqqkZx_

		//----- _xZkqqHx_jHjKjHpAjFlGiPjBjBkOjAkLiCpAiDeOiDiKiDeB_xHqqkZx_ -----

		// _xZkqqHx_jHjKjHpAiPeJjCfLiLeMjIfOiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
		if (m_cmdTerminateFile.IsOpened()) m_cmdTerminateFile.Clear();
		// _xZkqqHx_jHjKjHpAiDeDiDjDiDgGiDgCiDeOiDfIiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
		if (m_historyIndex.IsOpened()) m_historyIndex.Clear();
		// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
		if (m_pGate->IsOpened()) m_pGate->Clear();
		// _xZkqqHx_jHjKjHpAiPeJjCfLiDgFiBfLiDhFiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
		if (m_cmdTerminateFile.IsOpened()) m_cmdTerminateFile.Clear();
		m_spotFile.Clear();
		// _xZkqqHx_jFkKiKpCiDhEiDeAiDeDiDiLiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
		m_forkFile.Clear();
		// _xZkqqHx_jHjKjHpAjFlGiPjB_xHqqkZx_ID_xZkqqHx_iCpAiDeOiDiKiDeBiBeC_xHqqkZx_
		m_lDocId = -1L;

//----- 03.10.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////----- 03.09.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//		// _xZkqqHx_jBePiJpBiCmMiNfIjAfGiOjOiCmMiDfKiDgCiDfGiDiHiDjDiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
//		m_dwLastUpdateSessionIdx = FLINT_MAX;
//		// _xZkqqHx_iNfIjAfGiCkKjDpMiCmBiClNiNmFiCoAiPkMiClDiCkCiDfKiDgCiDfGiDiHiDjDiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
//		m_dwMinModifiedSessionIdx = FLINT_MAX;
////----- 03.09.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 03.10.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	}

	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::DeleteContents();
} // CFCHistDrawDoc::DeleteContents.

/////////////////////////////////////////////////////////////////////////////
// CFCHistDrawDoc _xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_

//----- 04.10.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnFileRecent
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiNmFiLnPiOmAiNhDiClFiClNjHjKjHpAjFlGiPjB_xHqqkZx_(_xZkqqHx_iCfAiBgAiCfI_xHqqkZx_)_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nCmdID	:_xZkqqHx_iDeOiDiKiDgCiDeOiClDiCoKiClNiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *			99.03.29 Fukushiro M. FoundDoc_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::OnFileRecent (UINT nCmdID)
//{
//	WString wstrProjectPath;	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLjGlMiBeC_xHqqkZx_
//	WString wstrHidocId;		// _xZkqqHx_jHjKjHpAjFlGiPjB_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
//	WString wstrHidocTitle;		// _xZkqqHx_jHjKjHpAjFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
//	WString wstrHidocVersion;	// _xZkqqHx_jHjKjHpAjFlGiPjBiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
//	// _xZkqqHx_jBeJjBpAiClDiCoKiClNjHjKjHpAjFlGiPjBiPoOjFpBiCpAiOoGjDlOiBeC_xHqqkZx_
//	FCRecentList::Get(short(nCmdID - ID_FILE_RECENT1),
//					NULL,				// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
//					&wstrProjectPath,	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLjGlMiBeC_xHqqkZx_
//					&wstrHidocId,		// _xZkqqHx_jHjKjHpAjFlGiPjB_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
//					&wstrHidocTitle,	// _xZkqqHx_jHjKjHpAjFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
//					&wstrHidocVersion);	// _xZkqqHx_jHjKjHpAjFlGiPjBiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
//	const long lDocId = wcstol(wstrHidocId, NULL, 10);
//
//	if (!IsClosableTemporaryDocument())
//	//----- _xZkqqHx_iMlLiNnNiBeBiIoKiOjOjDeJiCmFiCmIiCkCiDhGiDiNiDfHiDeGiDeOiDgHiBeFjHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_jDkPiClGjFlGiPjBiDhEiDeAiDeDiDiLjGlMiCmMiDeFiDeCiDjDiDgIiDeFiCpAjCfEiClHiBeC_xHqqkZx_
//		HWND hwnd = FFFindHidocumentWindow(wstrProjectPath, lDocId);
//		if (hwnd != NULL)
//		//----- _xZkqqHx_jDkPiClGjFlGiPjBiDhEiDeAiDeDiDiLjGlMiCmMiDeFiDeCiDjDiDgIiDeFiCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDfOiBfLiDfBiDgCiDgHiCmMiDeBiDhGiDiKiCpAiDhEiDeIiDeBiDePiDiJiDjDiDgIiCmJiBeC_xHqqkZx_
//			::SetForegroundWindow(hwnd);
//			return;
//		}
//	}
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiKeKiCkNiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_OPEN_PROJECT,
//						FCReqBase::PROJECT_PATH,
//						wstrProjectPath.c_str(),
//						FCReqBase::NONE);
//	// _xZkqqHx_jHjKjHpAjFlGiPjBiCpAiKeKiCkNiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_OPEN_HIDOCUMENT,
//						FCReqBase::HIDOCUMENT_ID,
//						lDocId,
//						FCReqBase::NONE);
//	// [_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiOfBiJmBiCmMjFeLjHhGjAkLiCpAiDgAiDeGiDgCiDeOiClFiBeBjFeLjHhGiCmIiCoHiOfBiJmBiOoIjBlBiCkLiCpAjAgJiCnPiCoJ_xHqqkZx_]
//	PushBackDocRequest(ID_DREQ_CHECK_JOIN_PROJECT_USER);
////----- 04.06.30 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
////----- 04.06.30 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//	// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_END);
//	// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
//	ProceedDocRequest();
//} // CFCHistDrawDoc::OnFileRecent.
//----- 04.10.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnFileExecHistviewerTarget
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFlGiPjBiCpA_xHqqkZx_History Viewer_xZkqqHx_iCmFiKeKiCkNiBhGiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	OnRbtnHtreeExecHistviewTarget_xZkqqHx_iKnGjAjEiCmFiCoA_xHqqkZx_ History Viewer_xZkqqHx_iCpAiKeKiCkNiCkKiBeB_xHqqkZx_
 *			_xZkqqHx_iCkAiClPiCoHiCmNjDkPiClGjFlGiPjBiCpAiKeKiCkCiClN_xHqqkZx_Viewer_xZkqqHx_iCkKiCkAiCmBiCmEiCoAiLeDiCmJiClJiClIiKeKiCkNiBeC_xHqqkZx_
 *			_xZkqqHx_iClBiCmMiKnGjAjEiCmFiCmNiBeBjDkPiClGjFlGiPjBiCpAiKeKiCkCiClN_xHqqkZx_Viewer_xZkqqHx_iCkKiCkAiCoJiPoKiNiHiCmNiBeBiClLiCoKiCpA_xHqqkZx_
 *			_xZkqqHx_iDhEiDeIiDeBiDePiDiJiDeFiDjDiDgIiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.06.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnFileExecHistviewerTarget ()
{
	if (g_pProject->IsProjectOpened())
	//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jDkPiClGjFlGiPjBiDhEiDeAiDeDiDiLjGlMiCmMiDeFiDeCiDjDiDgIiDeFiCpAjCfEiClHiBeC_xHqqkZx_
		HWND hwndTarget = FFFindHidocumentWindow(	g_pProject->GetFilePath(),
													GetIsDocumentOpened() ? m_lDocId : -1,
													NULL,
													GetSpecAppName(FD_APPMODE_HISTORYVIEWER));
		if (hwndTarget != NULL)
		//----- _xZkqqHx_iKpJiCmJjDkPiClGjFlGiPjBiCpAiKeKiCkCiCmEiCkCiCoJ_xHqqkZx_History Viewer_xZkqqHx_iCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfOiBfLiDfBiDgCiDgHiCmMiDeBiDhGiDiKiCpAiDhEiDeIiDeBiDePiDiJiDjDiDgIiCmJiBeC_xHqqkZx_
			::SetForegroundWindow(hwndTarget);
		} else
		//----- _xZkqqHx_jDkPiClGjFlGiPjBiCpAiKeKiCkCiCmEiCkCiCoJ_xHqqkZx_History Viewer_xZkqqHx_iCkKjBlGiNnNiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			if (GetIsDocumentOpened())
			//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
			{
				// [_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFnLjBlGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
				PushBackDocRequest(ID_DREQ_SAVE_HIDOCUMENT);
				// [History Viewer_xZkqqHx_iCpAiLeOjDkOiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
				PushBackDocRequest(	ID_DREQ_EXEC_HISTVIEWER,
									FCReqBase::PROJECT_PATH, g_pProject->GetFilePath().c_str(),
									FCReqBase::HIDOCUMENT_ID, m_lDocId,
// 06.02.09 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//									FCReqBase::SESSION_INDEX, GetNextSessionIndex(),
									FCReqBase::SESSION_INDEX, GetNextSessionIndexAbout(),
									FCReqBase::NONE);
			} else
			//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
			{
				// [History Viewer_xZkqqHx_iCpAiLeOjDkOiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
				PushBackDocRequest(	ID_DREQ_EXEC_HISTVIEWER,
									FCReqBase::PROJECT_PATH, g_pProject->GetFilePath().c_str(),
									FCReqBase::NONE);
			}
			// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_END);
			// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
			ProceedDocRequest();
		}
	}
} // CFCHistDrawDoc::OnFileExecHistviewerTarget.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnUpdateFileExecHistviewerTarget
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFlGiPjBiCpA_xHqqkZx_History Viewer_xZkqqHx_iCmFiKeKiCkNiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiPpDjBnEjAnNjCoIjHhAiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.06.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnUpdateFileExecHistviewerTarget (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanBasicOperate() &&
					g_pProject->IsProjectOpened() &&
					!g_pProject->GetIsUnknownFile());
} // CFCHistDrawDoc::OnUpdateFileExecHistviewerTarget.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::SaveModified
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiCpAjFmCiClGiCoJiNnLiBeB_xHqqkZx_ModifiedFlag _xZkqqHx_iCmJiKnGiCoNiCoHiClIiBeBiClBiCmMiKnGjAjEiCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPiIjHjNiCpAjBlBiCkPiCmEiBeBiDgIiDeMiDiFiDiBiDjDiDgHiCpAjFmCiClGiCmEiCoGiCkCiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iImIiKePiCpAjFnEiClFiCnMiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAjFmCiClGiCmEiCmNiCkCiCkPiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iCpAjFnEiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	_xZkqqHx_iDgGiDhEiDeIiDiLiDgHiCmMiDeDiDjDiDhGiDiKiDiBiDjDiDgHiCmFiCmNiBeBiDgIiDeMiDiFiDiBiDjDiDgHiCkKjFmPiNfIiClDiCoKiCmEiCkCiCoJiCmGiBeB_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMjFmPiNfIiCpAjFnLjBlGiClHiCoJiCkJiCmHiCkEiCkJiCpAjGoCiCkCiNiHiCoNiClJiCoJiDiBiDgCiDfKiBfLiDfH_xHqqkZx_
 *			_xZkqqHx_iDhLiDgCiDeOiDfIiCpAjFfMiOkGiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.11.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCHistDrawDoc::SaveModified ()
{
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiMiLiJmKiCkKiDeHiDiJiBfLiCmMiPoKiNiHiCmNjBkGiOjOiPeJjHlJiBeC_xHqqkZx_
	if (GetDocRequestResult() == FD_DRR_FATAL_ERR) return TRUE;

	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmIiCmHiCmMiPoKiNiHiBeC_xHqqkZx_
	// _xZkqqHx_jFfHiPiAiDgDiBfLiDiLiCpAjAnNjCoIiClHiCoJiClBiCmGiCmFiDfKiDgCiDfGiDiHiDjDiBiBiCePiCmGiCmFiCkLiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiBiBiCePiCmFiCmIiCkCiCmGiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmNiPiIjHjNiCmFiCkLiCmIiCkCiBeC_xHqqkZx_
	// ID_TOOL_SELECT_xZkqqHx_iCpAiOmAiNhDiClHiCoJiCmGiBgJiDgFiDeMiDfIiDgHiPeDjAlDjDjJiCmMiBgKiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpA_xHqqkZx_
	// _xZkqqHx_jEkNiNhDiClHiCoJiJmCjEfMjAkLiCkKiCkAiCoJiClNiCnPiBeBjFeLiClI_xHqqkZx_SendMessage_xZkqqHx_iCmFjBjHjFhEiClHiCoJiBeC_xHqqkZx_
	// PostMessage_xZkqqHx_iCmFjBjHjFhEiClHiCoJiCmGiBeBiJlKiCmM_xHqqkZx_ID_DREQ_SAVE_AND_EXIT_xZkqqHx_iCoGiCoI_xHqqkZx_
	// _xZkqqHx_iMoDiCoLiCmJiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjBhNjDpMiClDiCoKiCmEiDeHiDiJiBfLiCkKjAlGiClGiCoJiBeC_xHqqkZx_
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	g_pView->SendMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
	g_pView->SwitchCurrentTool(ID_TOOL_SELECT, TRUE);

	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiHiCmNiPeJjHlJiBeC_xHqqkZx_
	// ID_DREQ_SAVE_AND_EXIT _xZkqqHx_iCmMiMiLiJmKiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmNjFmCiClGiCmEiCkJiCoH_xHqqkZx_
	// _xZkqqHx_iClBiClBiCmJjHiIiCoJiCmNiClIiBeC_xHqqkZx_
	if (!g_pProject->IsProjectOpened())
		return TRUE;

	if (!IsThereDocRequest(ID_DREQ_SAVE_AND_EXIT))
	//----- ID_DREQ_SAVE_AND_EXIT _xZkqqHx_iCkKiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmJiKnMiCnMiCoKiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jFnLjBlGiClFiCmEiDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiPeJjHlJiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_SAVE_AND_EXIT);
		// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_END);
		// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
		ProceedDocRequest();
	}
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmNjFmCiClGiCmIiCkCiBeC_xHqqkZx_
	return FALSE;

//----- 06.02.26 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	if (IsThereDocRequest())
//	//----- _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKiOgDiCmBiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		if (!IsThereDocRequest(ID_DREQ_SAVE_AND_EXIT))
//		//----- ID_DREQ_SAVE_AND_EXIT _xZkqqHx_iCkKiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmJiKnMiCnMiCoKiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_jFnLjBlGiClFiCmEiDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiPeJjHlJiBeC_xHqqkZx_
//			PushBackDocRequest(ID_DREQ_SAVE_AND_EXIT);
//			// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
//			PushBackDocRequest(ID_DREQ_END);
//			// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
//			ProceedDocRequest();
//		}
//		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmNjFmCiClGiCmIiCkCiBeC_xHqqkZx_
//		return FALSE;
//	}
//
//	if (g_pProject->IsProjectOpened())
//	//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_jFnLjBlGiClFiCmEiDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiPeJjHlJiBeC_xHqqkZx_
//		PushBackDocRequest(ID_DREQ_SAVE_AND_EXIT);
//		// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
//		PushBackDocRequest(ID_DREQ_END);
//		// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
//		ProceedDocRequest();
//		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmNjFmCiClGiCmIiCkCiBeC_xHqqkZx_
//		return FALSE;
//	}
//	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//	return TRUE;
//----- 06.02.26 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// Superclass_xZkqqHx_iKnGjAjEiCmNiOmAiNhDiClFiCmIiCkCiBeCiOmAiNhDiClFiCmEiClFiCnMiCkEiCmGiBeBjCmKiPoNiCmMjFnLjBlGiPiIjHjNiCkK_xHqqkZx_
	// _xZkqqHx_iNhDiCoNiCoKiCmEiClFiCnMiCkEiClNiCnPiBeC_xHqqkZx_
	// return BASE_CLASS::SaveModified();
} // CFCHistDrawDoc::SaveModified.

//----- 04.11.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnFileSaveProject
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFnLjBlGiClHiCoJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.08.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::OnFileSaveProject ()
//{
//	// [_xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiCmMiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_DLG_SAVE_UNKNOWN_PROJECT_AS);
//	// _xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_
//	PushBackDocRequest(	ID_DREQ_IF,
//						FCReqBase::RETURN, IDOK,
//						FCReqBase::NONE);
//	// _xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiClHiCoJiBeCiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_SAVE_UNKNOWN_PROJECT_AS);
//	// _xZkqqHx_iPpAiMiPiOmAiNhDiPeJjCfLiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_END_IF);
//	// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_END);
//	// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
//	(void)ProceedDocRequest();
//} // CFCHistDrawDoc::OnFileSaveProject.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnUpdateFileSaveProject
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	
// *
// * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.08.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::OnUpdateFileSaveProject (CCmdUI* pCmdUI)
//{
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJ_xHqqkZx_ command update UI _xZkqqHx_iDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//} // CFCHistDrawDoc::OnUpdateFileSaveProject.
//----- 04.11.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.10.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnFileJoinProject
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhGiDiNiDfHiDeGiDeOiDgHiCmJiDiGiBfLiDfFjDgPjIfOiClHiCoJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::OnFileJoinProject ()
//{
//	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiOfBiJmBiClHiCoJiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_DLG_JOIN_PROJECT_USER);
//	// _xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_
//	PushBackDocRequest(	ID_DREQ_IF,
//						FCReqBase::RETURN, IDYES,
//						FCReqBase::NONE);
//		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiOfBiJmBiClHiCoJiBeBiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
//		PushBackDocRequest(ID_DREQ_JOIN_PROJECT_USER);
//	// _xZkqqHx_iPpAiMiPiOmAiNhDiPeJjCfLiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_END_IF);
//	// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_END);
//	// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
//	ProceedDocRequest();
//} // CFCHistDrawDoc::OnFileJoinProject.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnUpdateFileJoinProject
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhGiDiNiDfHiDeGiDeOiDgHiCmJiDiGiBfLiDfFjDgPjIfOiClHiCoJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiPpDjBnEjAnNjCoIjHhAiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCHistDrawDoc::OnUpdateFileJoinProject (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(	g_pProject->IsProjectOpened() &&
//					!g_pProject->IsMemberOfUsersGroup(FFGetApp()->GetUserId()));
//} // CFCHistDrawDoc::OnUpdateFileJoinProject.
//----- 05.10.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnCloseDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jCmKiPoNiBeB_xHqqkZx_[_xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_] _xZkqqHx_iDiBiDgKiDiFiBfLiCmM_xHqqkZx_ [_xZkqqHx_jFmCiClGiCoJ_xHqqkZx_] _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiIoKiKmCiCmGiClFiCmEiBeB_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKjFmCiClGiCoHiCoKiCoJiCmGiCkLiCmJiBeBiDhEiDiMiBfLiDiAiDiPiBfLiDeOiCkKiMmEiCnBiPgPiClFiCnMiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iIlNiCkCiCmNiBeB_xHqqkZx_WORD_xZkqqHx_iCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiBhFiDeJiDhFiDfHiDeGiDeOiDgHiCmMiPjBiOkOjAnNjCoIiBhGiCmM_xHqqkZx_
 *			_xZkqqHx_iBhFiDiMiDeDiDeBiDeFiDgHiBhGiCpAjFmPiNfIiClFiClNiPoKiNiHiCmJiCmNiBeB_xHqqkZx_Frame_xZkqqHx_iCpAjCmKiClDiClIiCmJiMmEiCnBiPgPiClDiCoKiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	WORD_xZkqqHx_iCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiBhFiDeJiDhFiDfHiDeGiDeOiDgHiCmMiPjBiOkOjAnNjCoIiBhGiCmM_xHqqkZx_
 *			_xZkqqHx_iBhFiDiMiDeDiDeBiDeFiDgHiBhGiCpAjFmPiNfIiClFiClNiPoKiNiHiCmJiCmNiBeB_xHqqkZx_Frame::OnClose _xZkqqHx_iCpAjCmKiClDiClIiCmJ_xHqqkZx_
 *			Document::OnCloseDocument _xZkqqHx_iCkKiMmEiCnBiPgPiClDiCoKiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.08.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *
 * void CFCHistDrawDoc::OnCloseDocument ()
 * {
 * //----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
 * //	// _xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmNjFmCiClGiCoJiBeC_xHqqkZx_
 * //	if (GetIsDocumentOpened()) DeleteContents();
 * //	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJiBeC_xHqqkZx_
 * //	if (g_pProject->IsProjectOpened()) CloseProject();
 * //	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
 * //	BASE_CLASS::OnCloseDocument();
 * //----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
 * 	// Frame::OnClose _xZkqqHx_iCkJiCoHiOmAiNhDiClFiCmEiCkCiClNiCkKiBeB_xHqqkZx_WORD_xZkqqHx_iCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmM_xHqqkZx_
 * 	// _xZkqqHx_iBhFiDeJiDhFiDfHiDeGiDeOiDgHiCmMiPjBiOkOjAnNjCoIiBhGiCmMiBhFiDiMiDeDiDeBiDeFiDgHiBhGiCpAjFmPiNfIiClFiClNiPoKiNiHiCmJiCmNiBeB_xHqqkZx_
 * 	// Frame::OnClose _xZkqqHx_iCpAjCmKiClDiClIiCmJ_xHqqkZx_Document::OnCloseDocument _xZkqqHx_iCkK_xHqqkZx_
 * 	// _xZkqqHx_iOmAiNhDiClDiCoKiCoJiClNiCnPiBeBjBfDiCmEiCmMiPeJjHlJiPiIjHjNiCmNiBeB_xHqqkZx_Document::OnCloseDocument
 * 	// _xZkqqHx_iCkJiCoHjEkNiNhDiClHiCoJiClBiCmGiCmJjFmPiNfIiClFiClNiBeC_xHqqkZx_
 * 
 * 	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
 * 	// _xZkqqHx_iClBiCmMjCiGiCmFiBeB_xHqqkZx_SaveModified_xZkqqHx_iKnGjAjEiBeB_xHqqkZx_DeleteContents_xZkqqHx_iKnGjAjEiCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 * 	// _xZkqqHx_iNfIiCmJiBeBjGhLiDeDiDjDiDfIiDfOiDjDiDfIiBgJ_xHqqkZx_Document_xZkqqHx_iBgKiOkJjAgHiCoAiNoNiPjMiClDiCoKiCoJiBeC_xHqqkZx_
 * 	BASE_CLASS::OnCloseDocument();
 * 	// _xZkqqHx_iKpJiCmJjGhLiDeDiDjDiDfIiDfOiDjDiDfIiBgJ_xHqqkZx_Document_xZkqqHx_iBgKiOkJjAgHiCkKiNoNiPjMiClDiCoKiCmEiCkCiCoJiClNiCnPiBeB_xHqqkZx_
 * 	// _xZkqqHx_iClBiCoKiImIiNhOiCmJiBeB_xHqqkZx_Document_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiClHiCoJiPiIjHjNiCpAiPjBiCkCiCmEiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
 * 	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmM_xHqqkZx_Close_xZkqqHx_iCmNiBeBiDgGiDfIiDgHiDiJiDeOiDfOiCmFiNhDiCkEiBeC_xHqqkZx_
 * //----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
 * } // CFCHistDrawDoc::OnCloseDocument.
 *
 *************************************************************************/
void CFCHistDrawDoc::OnCloseDocument ()
{
	if (GetIsDocumentOpened())
	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCpAiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
//----- 05.10.17 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// [_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFnLjBlGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_SAVE_HIDOCUMENT);
//----- 05.10.17 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		// [_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_CLOSE_HIDOCUMENT);
	}
	if (g_pProject->IsProjectOpened())
	{
		// [_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_CLOSE_PROJECT);
	}
//----- 05.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
//----- 05.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_END);
	// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
	(void)ProceedDocRequest();
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeCiImIiJlKiCmF_xHqqkZx_ DeleteContents _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
	BASE_CLASS::OnCloseDocument();
} // CFCHistDrawDoc::OnCloseDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnFileSaveHidocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjHjKjHpAjFlGiPjBiCpAiPoDiPjBiCkLjFnLjBlGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnFileSaveHidocument ()
{
	if (!GetIsDocumentOpened()) return;

//----- 05.10.20 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	if (GetSessionDepth() != 0)
	//----- _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCkKiCePiCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmIiCmHiCmMiPoKiNiHiBeC_xHqqkZx_
		// _xZkqqHx_jFfHiPiAiDgDiBfLiDiLiCpAjAnNjCoIiClHiCoJiClBiCmGiCmFiDfKiDgCiDfGiDiHiDjDiBiBiCePiCmGiCmFiCkLiCoJiBeC_xHqqkZx_
		// ID_TOOL_SELECT_xZkqqHx_iCpAiOmAiNhDiClHiCoJiCmGiBgJiDgFiDeMiDfIiDgHiPeDjAlDjDjJiCmMiBgKiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpA_xHqqkZx_
		// _xZkqqHx_jEkNiNhDiClHiCoJiJmCjEfMjAkLiCkKiCkAiCoJiClNiCnPiBeBjFeLiClI_xHqqkZx_SendMessage_xZkqqHx_iCmFjBjHjFhEiClHiCoJiBeC_xHqqkZx_
		// PostMessage_xZkqqHx_iCmFjBjHjFhEiClHiCoJiCmGiBeBiJlKiCmM_xHqqkZx_ID_DREQ_SAVE_AND_EXIT_xZkqqHx_iCoGiCoI_xHqqkZx_
		// _xZkqqHx_iMoDiCoLiCmJiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCkKjBhNjDpMiClDiCoKiCmEiDeHiDiJiBfLiCkKjAlGiClGiCoJiBeC_xHqqkZx_
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//		g_pView->SendMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
		g_pView->SwitchCurrentTool(ID_TOOL_SELECT, TRUE);
	}
//----- 05.10.20 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	if (g_pProject->GetIsUnknownFile())
	//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiJlMiCmMiDhEiDeAiDeDiDiLiCmMiPoKiNiH_xHqqkZx_ -----
	{
		ASSERT(GetIsDocumentOpened());
		// [_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFnLjBlGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_SAVE_HIDOCUMENT);
		// [_xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiCmMiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_DLG_SAVE_UNKNOWN_PROJECT_AS);
		// _xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_
		PushBackDocRequest(	ID_DREQ_IF,
							FCReqBase::RETURN, IDOK,
							FCReqBase::NONE);
			// _xZkqqHx_jAfGiLeLiDhGiDiNiDfHiDeGiDeOiDgHiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiClHiCoJiBeCiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_SAVE_UNKNOWN_PROJECT_AS);
//----- 06.02.01 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
			// _xZkqqHx_iMmDiCkCiDhGiDiNiDfHiDeGiDeOiDgHiImIiJlKiCmMiDgGiDeCiDiMiDeOiDgHiDiKiCpAiNoNiPjMiBeC_xHqqkZx_
			PushBackDocRequest(	ID_DREQ_DELETE_UNKNOWN_PROJECT,
								FCReqBase::UNKNOWN_PROJECT_PATH, g_pProject->GetFilePath().c_str(),
								FCReqBase::NONE);
//----- 06.02.01 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 05.01.24 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
			// _xZkqqHx_iClBiCoKiCpAiClFiCmIiCkCiCmGiBeBjHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMiDhGiDiNiDfHiDeGiDeOiDgHiCkKiMmDiCkCiDhAiDfIiCmMiCnMiCnMiCmJ_xHqqkZx_
			// _xZkqqHx_iCmIiCmBiCmEiClFiCnMiCkCiBeBjHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmMjFlGiPjBiDhGiDiNiDhAiDgFiDeCjFmPiNfIiCmIiCmHiCmF_xHqqkZx_
			// _xZkqqHx_iMmDiCkCiDhEiDeAiDeDiDiLiCkKiNfIjAfGiClDiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCmNiOkJjDkOjDeJiCmJiDfJiBfLiDiAjClCjAkOiClDiCoKiCmEiClFiCnMiCkEiCkKiBeB_xHqqkZx_
			// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfIiCkKjFmPiCoNiCmBiCmEiClFiCnMiCkEiClNiCnPiBeB_xHqqkZx_IS_FIT_HTREE_VIEW_ZOOM _xZkqqHx_iCpA_xHqqkZx_
			// _xZkqqHx_iOgHiCmBiCmEiCoAiDfJiBfLiDiAjClCjAkOiCmNjGgIiClAiCmIiCkCiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
//----- 05.01.24 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		// _xZkqqHx_iPpAiMiPiOmAiNhDiPeJjCfLiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_END_IF);
		// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_END);
		// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
		ProceedDocRequest();
	} else
	//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKjAlDiOkOiCmMiDhEiDeAiDeDiDiLiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jHjKjHpAjFlGiPjBiCmJiPeDjAlDiCkKjDpMiCmBiCmEiCkCiCoJiPoKiNiHiCmNiBeBjFnLjBlGiClHiCoJiBeC_xHqqkZx_
		if (IsModified())
		{
			// [_xZkqqHx_jHjKjHpAjFlGiPjBiCpAjFnLjBlGiClHiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_SAVE_HIDOCUMENT);
			// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_END);
			// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
			ProceedDocRequest();
		}
	}
} // CFCHistDrawDoc::OnFileSaveHidocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnUpdateFileSaveHidocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjHjKjHpAjFlGiPjBiCpAiPoDiPjBiCkLjFnLjBlGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDfCiDhNiDjDiDgIiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClFiCmEjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnUpdateFileSaveHidocument (CCmdUI* pCmdUI)
{
	if (FFCanEditProject())
	//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKjFnCiPfHiJmCjEfMiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiJlMiDhEiDeAiDeDiDiLiCkJiBeBjHjKjHpAjFlGiPjBiCmJiPeDjAlDiCkKjDpMiCmBiCmEiCkCiCoJiPoKiNiHiCmNjHeMiMpIiBeC_xHqqkZx_
		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiJlMiDhEiDeAiDeDiDiLiBgJjBkGiClPjHjKjHpAjFlGiPjBiCkKiJlMiBgKiCmMiPoKiNiHiBeB_xHqqkZx_
		// _xZkqqHx_jFnLjBlGiOjOiCmJjHjKjHpAjFlGiPjBiCmMjDoAjHgFiCmMjFmPiNfIiCkKiCmFiCkLiCoJiBeC_xHqqkZx_
		pCmdUI->Enable(	GetIsDocumentOpened() &&
						(g_pProject->GetIsUnknownFile() || IsModified()));
	} else
	//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKjFnCiPfHjFhDiJmCjEfMiCmMiPoKiNiH_xHqqkZx_ -----
	{
		pCmdUI->Enable(FALSE);
	}
} // CFCHistDrawDoc::OnUpdateFileSaveHidocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnFileProjectClose
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jHjKjHpAjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmNiBeBjFmCiClGiCoJiBeCiDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLjGlMiBeB_xHqqkZx_
 *			_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHjGlMiCpAiLpDiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnFileProjectClose ()
{
	// [_xZkqqHx_jFnLjBlGiClFiCmEiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJ_xHqqkZx_]_xZkqqHx_jHhGiLiBiCpAjBhNjDpMiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_SAVE_AND_CLOSE_PROJECT);
	// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
	// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_END);
	// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
	ProceedDocRequest();
} // CFCHistDrawDoc::OnFileProjectClose.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnUpdateFileProjectClose
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhGiDiNiDfHiDeGiDeOiDgHiCpAjFmCiClGiCoJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiPpDjBnEjAnNjCoIjHhAiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnUpdateFileProjectClose (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && g_pProject->IsProjectOpened());
} // CFCHistDrawDoc::OnUpdateFileProjectClose.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnOptionUserRegistration
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDiGiBfLiDfFjDgPjIfOiPoOjFpBiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.10.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnOptionUserRegistration ()
{
	const GUID guidOld = FFGetApp()->GetUserId();
	// _xZkqqHx_iDiGiBfLiDfFjDgPjIfOiDfPiDeDiDeBiDiNiDePiBeC_xHqqkZx_
	CFCDlgInitUserRegistration dlg;
	dlg.DoModal();
	// "_xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCkKjDgPjIfOiClDiCoKiCmEiCkCiCnMiClJiCpBiBeC_xHqqkZx_\r\n_xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCmNjHjIjHhAiCmFiCkLiCnMiClJiCpBiBeC_xHqqkZx_"
	if (g_pReg->GetUserId() == GUID_NULL)
		FFErrorBox(IDS_ERR_MSG_USER_ID_NOT_REGISTERED);
//----- 06.04.06 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDfIiDgFiBfLiDfOiDfIiDgPiBfLiCmMiDiGiBfLiDfFiBfLiPoOjFpBiCpAiNfIjAfGiBeC_xHqqkZx_
	FFGetHiMainWnd()->SetStatusBarUser(FFGetApp()->GetUserId(), FFGetApp()->GetUserName());
//----- 06.04.06 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	if (g_pProject->IsProjectOpened() &&
		guidOld != FFGetApp()->GetUserId())
	//----- _xZkqqHx_iDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCmJjFmPiNfIiCkKiCkAiCmBiClNiPoKiNiH_xHqqkZx_ -----
	{
		if (g_pProject->GetIsUnknownFile())
		//----- _xZkqqHx_iIoKiOjOjDeJiCmIiDhGiDiNiDfHiDeGiDeOiDgHiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDiBiDjDiDgPiBfLiCkJiCmHiCkEiCkJjClCiCnHiCoJ_xHqqkZx_]
			// _xZkqqHx_jGnPiCoIjCgMiCePiBeGiDiBiDjDiDgPiBfLiCmFiCmNiCmIiCkCiBeC_xHqqkZx_
			// _xZkqqHx_jGnPiCoIjCgMiCfAiBeGiDiBiDjDiDgPiBfLiCmFiCkAiCoIjAkHiMmAiDiGiBfLiDfFiCmFiCmNiCmIiCkCiBeC_xHqqkZx_
			// _xZkqqHx_jGnPiCoIjCgMiCfBiBeGiDiBiDjDiDgPiBfLiCmFiCkAiCoIjAkHiMmAiDiGiBfLiDfFiCmFiCoAiCkAiCoJiBeC_xHqqkZx_
			PushBackDocRequest(	ID_DREQ_CHECK_IS_MEMBER_OF_PROJECT_USER,
								FCReqBase::IS_SHOW_MESSAGE, FALSE,
								FCReqBase::NONE);
			// _xZkqqHx_jGnPiCoIjCgMiCkKiCePiBgJiDiBiDjDiDgPiBfLiCmFiCmNiCmIiCkCiBgKiPpAiMiPiOmAiNhDiBeC_xHqqkZx_
			PushBackDocRequest(	ID_DREQ_IF,
								FCReqBase::RETURN, long(FCHiProject::NOT_MEMBER),
								FCReqBase::NONE);
				// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmJiOfBiJmBiClHiCoJiBeBiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
				PushBackDocRequest(ID_DREQ_JOIN_PROJECT_USER);
			// _xZkqqHx_iPpAiMiPiOmAiNhDiPeJjCfLiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_END_IF);

			// _xZkqqHx_iIoKiOjOjDeJiCmIiDhGiDiNiDfHiDeGiDeOiDgHiCmMiPoKiNiHiCmNiBeBiDhGiDiNiDfHiDeGiDeOiDgHiCmMiNoMjAkMiOnCiCmG_xHqqkZx_
			// _xZkqqHx_jHjKjHpAjFlGiPjBiCmMiNoMjAkMiOnCiCpAjFmPiNfIiMoDiCmMiDiGiBfLiDfFiCmJjClMiClFiClNiCnJiCkEiCkKjHmHiCkCiBeC_xHqqkZx_
			// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiCmFjFfMiOkGiClDiCoKiClNiCmGiCkLiBeBjFmPiNfIiMoDiCmMiDiGiBfLiDfFiCmJiCmIiCmBiCmEiClNjFpLiCkK_xHqqkZx_
			// _xZkqqHx_iMkJiJgIiCkGiCkKjHmHiCkCiClNiCnPiBeC_xHqqkZx_

			// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDhGiDiNiDhAiDgFiDeCiCpAjFmPiNfIiClHiCoJiBeBiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
			// _xZkqqHx_jFmPiNfIjBePiCmMjCgMiCmNiBeB_xHqqkZx_g_pProject_xZkqqHx_iCkKiNmFjAfGiCmGiCmNiMmAiCoHiCmIiCkCiClNiCnPiBeBiOoGjDlOiCmFiCkLiCmIiCkCiBeC_xHqqkZx_
			// _xZkqqHx_iNoMjAkMiOnCiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCmNiBeBiIoKiOjOjDeJiDhGiDiNiDfHiDeGiDeOiDgHiCmMiPoKiNiHiCmMiCnNjFmPiNfIiJmCjEfMiBeC_xHqqkZx_
			// _xZkqqHx_iCnMiClNiBeBiNoMjAkMiOnCiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCmNjFmPiNfIjBePiCmMjCgMiCmMiKgNjEeGiCpAjFeLjHhGiCmGiClFiCmIiCkCiBeC_xHqqkZx_
			PushBackDocRequest(	ID_DREQ_REPLACE_PROJECT_PROPERTY,
								FCReqBase::PROJECT_PATH, g_pProject->GetFilePath().c_str(),	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfIiBeC_xHqqkZx_
								//----- _xZkqqHx_jFmPiNfIiMoDiCmMiDhGiDiNiDfHiDeGiDeOiDgHiCmMjCgM_xHqqkZx_ ------
								FCReqBase::PROJECT_USER_ID, FFGetApp()->GetUserId(),		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
								FCReqBase::NONE);
			if (GetIsDocumentOpened())
			//----- _xZkqqHx_jFlGiPjBiCkKiKeKiCkJiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_jHjKjHpAjFlGiPjBiCmMiDhGiDiNiDhAiDgFiDeCiCpAjFmPiNfIiClHiCoJiBeBiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
				// _xZkqqHx_jFmPiNfIjBePiCmMjCgMiCmNiBeB_xHqqkZx_g_pProject_xZkqqHx_iCkKiNmFjAfGiCmGiCmNiMmAiCoHiCmIiCkCiClNiCnPiBeBiOoGjDlOiCmFiCkLiCmIiCkCiBeC_xHqqkZx_
				// _xZkqqHx_iNoMjAkMiOnCiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCmNiBeBiIoKiOjOjDeJiDhGiDiNiDfHiDeGiDeOiDgHiCmMiPoKiNiHiCmMiCnNjFmPiNfIiJmCjEfMiBeC_xHqqkZx_
				// _xZkqqHx_iCnMiClNiBeBiNoMjAkMiOnCiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCmNjFmPiNfIjBePiCmMjCgMiCmMiKgNjEeGiCpAjFeLjHhGiCmGiClFiCmIiCkCiBeC_xHqqkZx_
				PushBackDocRequest(	ID_DREQ_REPLACE_HIDOCUMENT_PROPERTY,
									FCReqBase::PROJECT_PATH, g_pProject->GetFilePath().c_str(),	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhAiDfIiBeC_xHqqkZx_
									FCReqBase::HIDOCUMENT_ID, m_lDocId,							// _xZkqqHx_jFlGiPjB_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
									//----- _xZkqqHx_jFmPiNfIiMoDiCmMjFlGiPjBiCmMjCgM_xHqqkZx_ ------
									FCReqBase::HIDOCUMENT_USER_ID, FFGetApp()->GetUserId(),		// _xZkqqHx_iNoMjAkMiOnCiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
									FCReqBase::NONE);
			}
		} else
		//----- _xZkqqHx_jCmKiPoNiCmMiDhGiDiNiDfHiDeGiDeOiDgHiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDiBiDjDiDgPiBfLiCkJiCmHiCkEiCkJjClCiCnHiCoJ_xHqqkZx_]
			PushBackDocRequest(ID_DREQ_CHECK_IS_MEMBER_OF_PROJECT_USER);
		}

		// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_END);
		// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
		ProceedDocRequest();
	}
} // CFCHistDrawDoc::OnOptionUserRegistration.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCHistDrawDoc::OnUpdateOptionUserRegistration
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDiGiBfLiDfFjDgPjIfOiPoOjFpBiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiPpDjBnEiCpAiOkGiClHiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.10.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCHistDrawDoc::OnUpdateOptionUserRegistration (CCmdUI* pCmdUI)
{
	// _xZkqqHx_iDiGiBfLiDfFjDgPjIfOiPoOjFpBiCmMjFmPiNfIiCmJiCoGiCmBiCmEiCmNiBeBiNkBjFnCiPfHjCiGiCmMjFlGiPjBiCmJ_xHqqkZx_
	// _xZkqqHx_iDeBiDeOiDfKiDfIiCmFiCkLiCmIiCkNiCmIiCoJiJmCjEfMjAkLiCkKiCkAiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiClNiCnPiBeBiDfKiDgCiDfGiDiHiDjDiCmNiCePiImIiJlKiCmFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
	// _xZkqqHx_iBgJjFlGiPjBiCpAiKeKiCkCiCmEiCkCiCmIiCkCiPoKiNiHiCmNjFiJiCmMjCgMiCmMiClNiCnPiBgK_xHqqkZx_
	pCmdUI->Enable(FFCanBasicOperate() && GetSessionDepth() <= 0);
} // CFCHistDrawDoc::OnUpdateOptionUserRegistration.

//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//static const BYTEVector& myTestData ()
//{
//	static BYTEVector vTestData;
//	if (vTestData.empty())
//	{
//		BYTE byC = 0;
//		do
//		{
//			vTestData.push_back(byC);
//			byC++;
//		} while (byC != 0);
//	}
//	return vTestData;
//} // myMakeTestData.
//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----


void CFCHistDrawDoc::OnTestTestTest1() 
{

}

void CFCHistDrawDoc::OnTestTestTest2() 
{
}

void CFCHistDrawDoc::OnTestTestTest3() 
{
}

//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//int s_fh1 = -1;
//int s_fh2 = -1;
//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

void CFCHistDrawDoc::OnTestTestTest4() 
{
//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	s_fh1 = _tcreat(_T("C:\\tmp\\xyz.xxx"), _S_IREAD | _S_IWRITE);
//	if (s_fh1 == -1) AfxDebugBreak();
//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
}

void CFCHistDrawDoc::OnTestTestTest5() 
{
//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	s_fh2 = _tcreat(_T("C:\\tmp\\xyz.xxx"), _S_IREAD | _S_IWRITE);
//	if (s_fh2 == -1) AfxDebugBreak();
//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
}

void CFCHistDrawDoc::OnTestTestTest6() 
{
// 06.01.05 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	_close(s_fh1);
}

void CFCHistDrawDoc::OnTestTestTest7() 
{
// 06.01.05 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	_close(s_fh2);
}

void CFCHistDrawDoc::OnTestTestTest8() 
{
//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	int f = _tremove(_T("C:\\tmp\\xyz.xxx"));
//	if (f != 0) AfxDebugBreak();
//----- 06.01.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
}

void CFCHistDrawDoc::OnTestTestTest9() 
{
}

