// DynamicDrawView.cpp : CFCDynamicDrawView _xZkqqHx_iDeOiDiJiDfIiCmMjDkOiNoMiCmMjCoIiLgAiCpAiNhDiCkCiCnMiClHiBeC_xHqqkZx_
//

#include "stdafx.h"
// 03.07.18 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//#include "DynamicDraw.h"
#include "resource.h"
#include <float.h>			// For DBL_MAX.
#if defined(_IME_ON)
#include <imm.h>			// For IMN_SETOPENSTATUS.
#endif // defined(_IME_ON)
#include "FoundDoc.h"		// For g_pDoc.
#include "CntrItem.h"		// For CMolipDrawCntrItem4_0.
#include <algorithm>		// For find template.
#include "NewFDObjAny.h"	// For NewFDObjAny.
#include "ObjDynabase.h"	// For FCObjDynabase.
#include "ObjOle.h"			// For FCObjOle.
#include "ObjGroup.h"		// For FCObjGroup.
#include "ToolManager.h"	// For FCToolManager.
#include "ToolBase.h"		// For FCToolBase.
//#include "DlgGridSnap.h"	// For CFCDlgGridSnap.
#include "PropertySheet.h"	// For CFCPropertySheet.
#include "PrgGrid.h"		// For CFCPrgGrid.
#include "PrgSnap.h"		// For CFCPrgSnap.
#include "PrgOther.h"		// For CFCPrgOther.
#include "CtlBrHRuler.h"	// For CFCCtlBrHRuler.
#include "CtlBrVRuler.h"	// For CFCCtlBrVRuler.
#include "DlgShadow.h"		// For CFCDlgShadow.
#include "RegData.h"		// For GetOptiRegColor.
#include "Communicate.h"	// For SendData.
#include "ZOrder.h"			// For FCZOrder.
#include "LayerManager.h"	// For FCLayerManager.
#include "WndRichEdit.h"	// For CFCWndRichEdit.
#include "UtilMisc.h"		// For FFWheelDeltaToScrollCount.
#include "UtilCoord.h"		// For mm2lg.etc.
#include "UtilWin.h"		// For CloseImeStatus.
#include "UtilGraph.h"		// For FCEditDraw.
#include "UtilPrint.h"		// For PaperTypeToIndex.etc.
#include "UtilDlg.h"		// For RightByLeftHand.
#include "UtilErr.h"		// For FFMessageBox.
#include "UtilObj.h"		// For FFAddToLZSorted.
#include "UtilRect.h"		// For FFGetInvalidRect.
#include "UtilStdLib.h"		// For m1_for.
#include "TextOut.h"		// For FDRC_AL_XXX.
#include "UtilFile.h"		// For BYTEVector <<.
#include "Env.h"			// For g_pEnv.
#include "DlgSColorSelect.h"// For CFCDlgSColorSelect.
#include "DlgPenRegisterSelect.h"// For CFCDlgPenRegisterSelect.
#include "DlgBrushRegisterSelect.h"	// For CFCDlgBrushRegisterSelect.
#include "DlgEmfImageSelect.h"	// For CFCDlgEmfImageSelect.
#include "PasteSpecialDialog.h"	// For CFCPasteSpecialDialog.
#include "PrintDialog.h"	// For CFCPrintDialog.
#include "SheetManager.h"	// For GetSheetManager().
#include "FrameWnd.h"		// For FFGetMainWnd().
#include "DynamicDrawView.h"	// This header.

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


#ifdef _DEBUG
// _xZkqqHx_iDgFiDfIiDgHiBeC_xHqqkZx_
// Media Encoder _xZkqqHx_iCmFjIfOiJoGiClHiCoJiPoKiNiHiCmMiCgEiChHiCgEiBeC_xHqqkZx_
// _xZkqqHx_iDgGiDgPiDgCiDePiOjOiCmMiCnNjCoIiLgAiJmCjEfMiBeC_xHqqkZx_
//#define _MEDIA_ENCODER
#endif//_DEBUG


// 03.07.07 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//// Superclass = FCViewExp _xZkqqHx_iClOiCkKiBeB_xHqqkZx_FCViewExp _xZkqqHx_iCmNiLpDiCmIiCmMiCmFiBeB_xHqqkZx_
// BASE_CLASS = CView _xZkqqHx_iCmJjAnNjCoIiBeC_xHqqkZx_


//----- Platform SDK_xZkqqHx_iCmM_xHqqkZx_ WinUser.h _xZkqqHx_iCoGiCoI_xHqqkZx_ -----
#define WM_XBUTTONDOWN	0x020B
#define WM_XBUTTONUP	0x020C
#define MK_XBUTTON1		0x0020
#define MK_XBUTTON2		0x0040
/* XButton values are WORD flags */
#define XBUTTON1      0x0001
#define XBUTTON2      0x0002


//----- _xZkqqHx_iDfOiDeDiDhNiBfL_xHqqkZx_ID -----
#define FDTIMER_VIEW_TOOL	1
#define FDTIMER_VIEW_SCROLL	2

CFCDynamicDrawView* g_pView = NULL;

CPalette* g_pFDPalette = NULL;

// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiPiJiKpKiJlLjHhAiDeKiDeFiDjDiDfOiBeC_xHqqkZx_
long CFCDynamicDrawView::s_lGlobalCounter = 0;

// _xZkqqHx_iPgPjHmNiNiAjGnKiCmM_xHqqkZx_ID_xZkqqHx_iBeCiPiHjEnEiCpAjFmPiCkGiCmEiCmNiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
// _xZkqqHx_iNiAjGnKiCpAjBjNiCoCiClHiPoKiNiHiCmNiBeBiNmFiMoDiCmJjCmHiJmBiBeC_xHqqkZx_
enum
{
	FDGLST_NONE = 0,
	FDGLST_ZOOM,			// _xZkqqHx_jEhLjHkGiBeC_xHqqkZx_
	FDGLST_VIEW_POSITION,	// _xZkqqHx_iDhCiDiFiBfLiImKjChFiBeC_xHqqkZx_
};

//----- 02.12.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//////////////////// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiL_xHqqkZx_ ////////////////////////
//// _xZkqqHx_iImIiJlKiCmMiDgFiBfLiDhFiDiLiCmNiBeBiDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCmMiPiHjEnEiCmJjFmAiCpBiCmFiCkCiCoJiBeC_xHqqkZx_
//// _xZkqqHx_iDgDiBfLiDiLiCpAjCmHiJmBiBeFiNoNiPjMiClHiCoJiOjOiCoAiBeBiClLiCmMiPiHiPjIiCpAiLlGiCoNiClFiCmEiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
//// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCmNiBeBiDgDiBfLiDiLiPoOjFpBiCmMjFnLjBlGiBeFjDmHiCnNiNjOiCnNiCmJiOgHjHhAiClHiCoJiBeC_xHqqkZx_
//// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCmNiBeBiDgDiBfLiDiLiCmMjDoAjFjEjFjEjFgJiCmM_xHqqkZx_ID_xZkqqHx_iCmGiClFiCmEiCoAiOgHiCoNiCoKiCoJiBeC_xHqqkZx_
//// _xZkqqHx_iDgDiBfLiDiLiCmMjDoAjFjEjFjEjFgJiCmMiClNiCnPiBeBjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmM_xHqqkZx_ [0, FD_MAX_TOOL_ID)_xZkqqHx_iCpAiKgNjFnLiBeC_xHqqkZx_
//// _xZkqqHx_iClBiCkEiClHiCoJiClBiCmGiCmJiCoGiCoIiBeBiDgDiBfLiDiLiCkKjBjNiCkGiClNiPoKiNiHiCmFiCoAiBeBiMmDiCkCiDgGiBfLiDfOiCpA_xHqqkZx_
//// _xZkqqHx_jDmHiCnNiNjOiCnOiOjOiCmJjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCkKiDgPiDgCiDgFiDeCiDjDiDePiClFiCmIiCkCiBeC_xHqqkZx_
//
//// _xZkqqHx_jCiNiInDiBeJiBeJ_xHqqkZx_
//// ../MolipSDK/MpgMolipExport.h_xZkqqHx_iCmM_xHqqkZx_FDTLIDX_XXXX_xZkqqHx_iCmGjIeBjDkOiClFiCmEiCkCiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
//
//static struct
//{
//	FCToolBase*	pTool;
//	DWORD	dwCommandID;
//} s_ToolIdTbl[FD_MAX_TOOL_ID] =
//{
//	{ &g_toolSelect,			ID_TOOL_SELECT },		// TOOL_ID 00.
//	{ &g_toolSelEdit,			ID_TOOL_SELEDIT },		// TOOL_ID 01.
//	{ &g_toolRotate,			ID_TOOL_ROTATE },		// TOOL_ID 02.
//	{ &g_toolZoom,				ID_TOOL_ZOOM },			// TOOL_ID 03.
//	{ &g_toolChip,				ID_TOOL_CHIP },			// TOOL_ID 04.
//	{ &g_toolLine,				ID_TOOL_LINE },			// TOOL_ID 05.
//	{ &g_toolRect,				ID_TOOL_RECT },			// TOOL_ID 06.
//	{ &g_toolRoundRect,			ID_TOOL_RRECT },		// TOOL_ID 07.
//	{ &g_toolPolyline,			ID_TOOL_POLYLINE },		// TOOL_ID 08.
//	{ &g_toolBeziline,			ID_TOOL_BEZILINE },		// TOOL_ID 09.
//	{ &g_toolArc,				ID_TOOL_ARC },			// TOOL_ID 10.
//	{ &g_toolRichText,			ID_TOOL_RICH_TEXT },	// TOOL_ID 11.
//	{ &g_toolPoint,				ID_TOOL_POINT },		// TOOL_ID 12.
//// 01.04.20 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////	{ NULL,						DWORD(-1) },			// TOOL_ID 13.
//	{ &g_toolLabelPut,			ID_TOOL_LABEL_PUT },	// TOOL_ID 13.
//	{ &g_toolLink,				ID_TOOL_LINK },			// TOOL_ID 14.
//	{ &g_toolPolyArrowLink,		ID_TOOL_POLY_ARROW},	// TOOL_ID 15.
//	{ &g_toolBezierArrowLink,	ID_TOOL_BEZIER_ARROW},	// TOOL_ID 16.
//	{ &g_toolWidePoly,			ID_TOOL_WIDE_POLY },	// TOOL_ID 17.
//	{ &g_toolWideBezier,		ID_TOOL_WIDE_BEZIER },	// TOOL_ID 18.
//	{ &g_toolWidePolyArrowLink,	ID_TOOL_WIDE_POLY_ARROW},// TOOL_ID 19.
//	{ &g_toolWideBezierArrowLink,ID_TOOL_WIDE_BEZIER_ARROW},// TOOL_ID 20.
//	{ &g_toolTextPut,			ID_TOOL_TEXT_PUT },		// TOOL_ID 21.
//	{ &g_toolChipPut,			ID_TOOL_CHIP_PUT },		// TOOL_ID 22.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 23.
//	{ &g_toolPolyEdit,			DWORD(-1) },			// TOOL_ID 24.
//	{ &g_toolLineEdit,			DWORD(-1) },			// TOOL_ID 25.
//	{ &g_toolRoundRectEdit,		DWORD(-1) },			// TOOL_ID 26.
//	{ &g_toolArcEdit,			DWORD(-1) },			// TOOL_ID 27.
//	{ &g_toolRichEdit,			ID_TOOL_EDIT_RICH_TEXT},// TOOL_ID 28.
//	{ &g_toolOleEdit,			DWORD(-1) },			// TOOL_ID 29.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 30.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 31.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 32.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 33.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 34.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 35.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 36.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 37.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 38.
//	{ NULL,						DWORD(-1) },			// TOOL_ID 39.
//};
//
////----- _xZkqqHx_jFnCiPfHjHhAiDgDiBfLiDiLiDgFiBfLiDhFiDiL_xHqqkZx_ -----
//static struct
//{
//	FTObjectType	typeObject;
//	FCToolBase*		pTool;
//} s_ObjToolTbl[] =
//{
//	{ FDOJ_POLY,		&g_toolPolyEdit },
//	{ FDOJ_LINE,		&g_toolLineEdit },
//	{ FDOJ_ROUND_RECT,	&g_toolRoundRectEdit },
//	{ FDOJ_ARC,			&g_toolArcEdit },
//	{ FDOJ_OLE,			&g_toolOleEdit },
//// 01.08.07 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
//	{ FDOJ_GROUP,		&g_toolGroupEdit },
//};
//----- 02.12.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawView

IMPLEMENT_DYNCREATE(CFCDynamicDrawView, CView)

BEGIN_MESSAGE_MAP(CFCDynamicDrawView, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDynamicDrawView)
	ON_COMMAND(ID_OLE_INSERT_NEW, OnInsertObject)
	ON_COMMAND(ID_CANCEL_EDIT_CNTR, OnCancelEditCntr)
	ON_COMMAND(ID_CANCEL_EDIT_SRVR, OnCancelEditSrvr)
	ON_COMMAND(ID_CANCEL_SWITCHING_LOCK, OnCancelSwitchingLock)
	ON_WM_SETFOCUS()
	ON_WM_KILLFOCUS()
	ON_WM_SIZE()
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	ON_WM_MOUSEMOVE()
	ON_WM_LBUTTONDBLCLK()
	ON_WM_RBUTTONDOWN()
	ON_WM_RBUTTONUP()
	ON_WM_RBUTTONDBLCLK()
	ON_WM_KEYDOWN()
	ON_WM_KEYUP()
	ON_WM_CHAR()
	ON_COMMAND(ID_OBJECT_PROPERTIES, OnObjectProperties)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_PROPERTIES, OnUpdateObjectProperties)
	ON_WM_CONTEXTMENU()
	ON_COMMAND(ID_FORMAT_FONT, OnFormatFont)
	ON_COMMAND(ID_EDIT_DELETE, OnEditDelete)
	ON_UPDATE_COMMAND_UI(ID_EDIT_DELETE, OnUpdateEditDelete)
	ON_COMMAND(ID_OBJECT_CONNECT, OnObjectConnect)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_CONNECT, OnUpdateObjectConnect)
	ON_COMMAND(ID_OPTION_GRID_SNAP_SETUP, OnOptionGridSnapSetup)
	ON_WM_CREATE()
	ON_WM_DESTROY()
	ON_COMMAND(ID_VIEW_ZOOMOUT, OnViewZoomout)
	ON_COMMAND(ID_VIEW_ZOOMIN, OnViewZoomin)
	ON_COMMAND(ID_EDIT_COPY, OnEditCopy)
	ON_COMMAND(ID_EDIT_PASTE, OnEditPaste)
	ON_COMMAND(ID_OBJECT_GROUP, OnObjectGroup)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_GROUP, OnUpdateObjectGroup)
	ON_COMMAND(ID_OBJECT_UNGROUP, OnObjectUngroup)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_UNGROUP, OnUpdateObjectUngroup)
	ON_WM_TIMER()
	ON_UPDATE_COMMAND_UI(ID_EDIT_COPY, OnUpdateEditCopy)
	ON_UPDATE_COMMAND_UI(ID_EDIT_PASTE, OnUpdateEditPaste)
	ON_UPDATE_COMMAND_UI(ID_FORMAT_FONT, OnUpdateFormatFont)
	ON_WM_VSCROLL()
	ON_WM_HSCROLL()
	ON_COMMAND(ID_GRAPHICS_SHADOW_LENGTH, OnGraphicsShadowLength)
	ON_COMMAND(ID_OBJECT_PUT_RTF_OBJ, OnObjectPutRtfObj)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_PUT_RTF_OBJ, OnUpdateObjectPutRtfObj)
	ON_COMMAND(ID_TEXT_STOP_EDIT, OnTextStopEdit)
	ON_UPDATE_COMMAND_UI(ID_TEXT_STOP_EDIT, OnUpdateTextStopEdit)
	ON_UPDATE_COMMAND_UI(ID_VIEW_ZOOMIN, OnUpdateViewZoomin)
	ON_UPDATE_COMMAND_UI(ID_VIEW_ZOOMOUT, OnUpdateViewZoomout)
	ON_UPDATE_COMMAND_UI(ID_FILE_PRINT, OnUpdateFilePrint)
	ON_UPDATE_COMMAND_UI(ID_FILE_PRINT_PREVIEW, OnUpdateFilePrintPreview)
	ON_COMMAND(ID_EDIT_UNDO, OnEditUndo)
	ON_UPDATE_COMMAND_UI(ID_EDIT_UNDO, OnUpdateEditUndo)
	ON_COMMAND(ID_EDIT_REDO, OnEditRedo)
	ON_UPDATE_COMMAND_UI(ID_EDIT_REDO, OnUpdateEditRedo)
	ON_COMMAND(ID_EDIT_CUT, OnEditCut)
	ON_UPDATE_COMMAND_UI(ID_EDIT_CUT, OnUpdateEditCut)
	ON_COMMAND(ID_OBJECT_FRONT_OBJ, OnObjectFrontObj)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_FRONT_OBJ, OnUpdateObjectFrontObj)
	ON_COMMAND(ID_OBJECT_BACK_OBJ, OnObjectBackObj)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_BACK_OBJ, OnUpdateObjectBackObj)
	ON_COMMAND(ID_OBJECT_MOST_FRONT_OBJ, OnObjectMostFrontObj)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_MOST_FRONT_OBJ, OnUpdateObjectMostFrontObj)
	ON_COMMAND(ID_OBJECT_MOST_BACK_OBJ, OnObjectMostBackObj)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_MOST_BACK_OBJ, OnUpdateObjectMostBackObj)
	ON_COMMAND(ID_OBJECT_INSERT_JOINT, OnObjectInsertJoint)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_INSERT_JOINT, OnUpdateObjectInsertJoint)
	ON_COMMAND(ID_OBJECT_ALIGN_V_LEFT, OnObjectAlignVLeft)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_ALIGN_V_LEFT, OnUpdateObjectAlignVLeft)
	ON_COMMAND(ID_OBJECT_ALIGN_V_CENTER, OnObjectAlignVCenter)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_ALIGN_V_CENTER, OnUpdateObjectAlignVCenter)
	ON_COMMAND(ID_OBJECT_ALIGN_V_RIGHT, OnObjectAlignVRight)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_ALIGN_V_RIGHT, OnUpdateObjectAlignVRight)
	ON_COMMAND(ID_OBJECT_SAME_GAP_V, OnObjectSameGapV)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_SAME_GAP_V, OnUpdateObjectSameGapV)
	ON_COMMAND(ID_OBJECT_SAME_GAP_H, OnObjectSameGapH)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_SAME_GAP_H, OnUpdateObjectSameGapH)
	ON_COMMAND(ID_OBJECT_SAME_DIST_V, OnObjectSameDistV)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_SAME_DIST_V, OnUpdateObjectSameDistV)
	ON_COMMAND(ID_OBJECT_SAME_DIST_H, OnObjectSameDistH)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_SAME_DIST_H, OnUpdateObjectSameDistH)
	ON_COMMAND(ID_OBJECT_SAME_SIZE_X, OnObjectSameSizeX)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_SAME_SIZE_X, OnUpdateObjectSameSizeX)
	ON_COMMAND(ID_OBJECT_SAME_SIZE_Y, OnObjectSameSizeY)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_SAME_SIZE_Y, OnUpdateObjectSameSizeY)
	ON_COMMAND(ID_OBJECT_ALIGN_H_TOP, OnObjectAlignHTop)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_ALIGN_H_TOP, OnUpdateObjectAlignHTop)
	ON_COMMAND(ID_OBJECT_ALIGN_H_CENTER, OnObjectAlignHCenter)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_ALIGN_H_CENTER, OnUpdateObjectAlignHCenter)
	ON_COMMAND(ID_OBJECT_ALIGN_H_BOTTOM, OnObjectAlignHBottom)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_ALIGN_H_BOTTOM, OnUpdateObjectAlignHBottom)
	ON_COMMAND(ID_EDIT_SELECT_ALL, OnEditSelectAll)
	ON_UPDATE_COMMAND_UI(ID_EDIT_SELECT_ALL, OnUpdateEditSelectAll)
	ON_COMMAND(ID_TEXT_ALIGN_LEFT, OnTextAlignLeft)
	ON_UPDATE_COMMAND_UI(ID_TEXT_ALIGN_LEFT, OnUpdateTextAlignLeft)
	ON_COMMAND(ID_TEXT_ALIGN_CENTER, OnTextAlignCenter)
	ON_UPDATE_COMMAND_UI(ID_TEXT_ALIGN_CENTER, OnUpdateTextAlignCenter)
	ON_COMMAND(ID_TEXT_ALIGN_RIGHT, OnTextAlignRight)
	ON_UPDATE_COMMAND_UI(ID_TEXT_ALIGN_RIGHT, OnUpdateTextAlignRight)
	ON_COMMAND(ID_OBJECT_DISCONNECT, OnObjectDisconnect)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_DISCONNECT, OnUpdateObjectDisconnect)
	ON_UPDATE_COMMAND_UI(ID_OLE_INSERT_NEW, OnUpdateOleInsertNew)
	ON_UPDATE_COMMAND_UI(ID_GRAPHICS_SHADOW_LENGTH, OnUpdateGraphicsShadowLength)
	ON_COMMAND(ID_GRAPHICS_EDIT_COLOR_TABLE, OnGraphicsEditColorTable)
	ON_UPDATE_COMMAND_UI(ID_GRAPHICS_EDIT_COLOR_TABLE, OnUpdateGraphicsEditColorTable)
	ON_COMMAND(ID_GRAPHICS_EDIT_REGPEN_TABLE, OnGraphicsEditRegpenTable)
	ON_UPDATE_COMMAND_UI(ID_GRAPHICS_EDIT_REGPEN_TABLE, OnUpdateGraphicsEditRegpenTable)
	ON_COMMAND(ID_GRAPHICS_EDIT_REGBRUSH_TABLE, OnGraphicsEditRegbrushTable)
	ON_UPDATE_COMMAND_UI(ID_GRAPHICS_EDIT_REGBRUSH_TABLE, OnUpdateGraphicsEditRegbrushTable)
	ON_COMMAND(ID_TEXT_LINE, OnTextLine)
	ON_UPDATE_COMMAND_UI(ID_TEXT_LINE, OnUpdateTextLine)
	ON_COMMAND(ID_TEXT_MARGIN, OnTextMargin)
	ON_UPDATE_COMMAND_UI(ID_TEXT_MARGIN, OnUpdateTextMargin)
	ON_COMMAND(ID_GRAPHICS_EDIT_PICTURE_TABLE, OnGraphicsEditPictureTable)
	ON_UPDATE_COMMAND_UI(ID_GRAPHICS_EDIT_PICTURE_TABLE, OnUpdateGraphicsEditPictureTable)
	ON_WM_MOUSEWHEEL()
	ON_COMMAND(ID_TEXT_ALIGN_TOP, OnTextAlignTop)
	ON_UPDATE_COMMAND_UI(ID_TEXT_ALIGN_TOP, OnUpdateTextAlignTop)
	ON_COMMAND(ID_TEXT_ALIGN_V_CENTER, OnTextAlignVCenter)
	ON_UPDATE_COMMAND_UI(ID_TEXT_ALIGN_V_CENTER, OnUpdateTextAlignVCenter)
	ON_COMMAND(ID_TEXT_ALIGN_BOTTOM, OnTextAlignBottom)
	ON_UPDATE_COMMAND_UI(ID_TEXT_ALIGN_BOTTOM, OnUpdateTextAlignBottom)
	ON_COMMAND(ID_OBJECT_MIRROR_VERT, OnObjectMirrorVert)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_MIRROR_VERT, OnUpdateObjectMirrorVert)
	ON_COMMAND(ID_OBJECT_MIRROR_HORZ, OnObjectMirrorHorz)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_MIRROR_HORZ, OnUpdateObjectMirrorHorz)
	ON_COMMAND(ID_OBJECT_ROTATE_RIGHT, OnObjectRotateRight)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_ROTATE_RIGHT, OnUpdateObjectRotateRight)
	ON_COMMAND(ID_OBJECT_ROTATE_LEFT, OnObjectRotateLeft)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_ROTATE_LEFT, OnUpdateObjectRotateLeft)
	ON_COMMAND(ID_EDIT_BACKSPACE, OnEditBackspace)
	ON_UPDATE_COMMAND_UI(ID_EDIT_BACKSPACE, OnUpdateEditBackspace)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, OnFilePrintPreview)
	ON_COMMAND(ID_OBJECT_CROSS_SHEET, OnObjectCrossSheet)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_CROSS_SHEET, OnUpdateObjectCrossSheet)
	ON_COMMAND(ID_EDIT_FIND_TEXT, OnEditFindText)
	ON_UPDATE_COMMAND_UI(ID_EDIT_FIND_TEXT, OnUpdateEditFindText)
	ON_COMMAND(ID_EDIT_REPLACE_TEXT, OnEditReplaceText)
	ON_UPDATE_COMMAND_UI(ID_EDIT_REPLACE_TEXT, OnUpdateEditReplaceText)
	ON_COMMAND(ID_OPTION_LAYER_ORDER, OnOptionLayerOrder)
	ON_UPDATE_COMMAND_UI(ID_OPTION_LAYER_ORDER, OnUpdateOptionLayerOrder)
	ON_COMMAND(ID_OPTION_SHEET_ORDER, OnOptionSheetOrder)
	ON_UPDATE_COMMAND_UI(ID_OPTION_SHEET_ORDER, OnUpdateOptionSheetOrder)
	ON_COMMAND(ID_OPTION_MOVE_IN_UPPER_LAYER, OnOptionMoveInUpperLayer)
	ON_UPDATE_COMMAND_UI(ID_OPTION_MOVE_IN_UPPER_LAYER, OnUpdateOptionMoveInUpperLayer)
	ON_COMMAND(ID_OPTION_MOVE_IN_LOWER_LAYER, OnOptionMoveInLowerLayer)
	ON_UPDATE_COMMAND_UI(ID_OPTION_MOVE_IN_LOWER_LAYER, OnUpdateOptionMoveInLowerLayer)
	ON_COMMAND(ID_OPTION_MOVE_IN_NEXT_SHEET, OnOptionMoveInNextSheet)
	ON_UPDATE_COMMAND_UI(ID_OPTION_MOVE_IN_NEXT_SHEET, OnUpdateOptionMoveInNextSheet)
	ON_COMMAND(ID_OPTION_MOVE_IN_PREV_SHEET, OnOptionMoveInPrevSheet)
	ON_UPDATE_COMMAND_UI(ID_OPTION_MOVE_IN_PREV_SHEET, OnUpdateOptionMoveInPrevSheet)
	ON_COMMAND(ID_OPTION_TOOL_LOCK, OnOptionToolLock)
	ON_UPDATE_COMMAND_UI(ID_OPTION_TOOL_LOCK, OnUpdateOptionToolLock)
	ON_COMMAND(ID_EDIT_CLEAR_SELECT, OnEditClearSelect)
	ON_UPDATE_COMMAND_UI(ID_EDIT_CLEAR_SELECT, OnUpdateEditClearSelect)
	ON_COMMAND(ID_EDIT_FIND_NEXT_TEXT, OnEditFindNextText)
	ON_UPDATE_COMMAND_UI(ID_EDIT_FIND_NEXT_TEXT, OnUpdateEditFindNextText)
	ON_COMMAND(ID_EDIT_FIND_PREV_TEXT, OnEditFindPrevText)
	ON_UPDATE_COMMAND_UI(ID_EDIT_FIND_PREV_TEXT, OnUpdateEditFindPrevText)
	ON_COMMAND(ID_EDIT_REPLACE_NEXT_TEXT, OnEditReplaceNextText)
	ON_UPDATE_COMMAND_UI(ID_EDIT_REPLACE_NEXT_TEXT, OnUpdateEditReplaceNextText)
	ON_COMMAND(ID_EDIT_REPLACE_PREV_TEXT, OnEditReplacePrevText)
	ON_UPDATE_COMMAND_UI(ID_EDIT_REPLACE_PREV_TEXT, OnUpdateEditReplacePrevText)
	ON_COMMAND(ID_EDIT_REPLACE_TEXT_ALL, OnEditReplaceTextAll)
	ON_UPDATE_COMMAND_UI(ID_EDIT_REPLACE_TEXT_ALL, OnUpdateEditReplaceTextAll)
	ON_COMMAND(ID_TEXT_ALIGN_LEFTRIGHT, OnTextAlignLeftright)
	ON_UPDATE_COMMAND_UI(ID_TEXT_ALIGN_LEFTRIGHT, OnUpdateTextAlignLeftright)
	ON_COMMAND(ID_OBJECT_SIZE_TO_TEXT, OnObjectSizeToText)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_SIZE_TO_TEXT, OnUpdateObjectSizeToText)
	ON_COMMAND(ID_TEXT_REMOVE_FROM_OBJECT, OnTextRemoveFromObject)
	ON_UPDATE_COMMAND_UI(ID_TEXT_REMOVE_FROM_OBJECT, OnUpdateTextRemoveFromObject)
	ON_WM_SHOWWINDOW()
	ON_UPDATE_COMMAND_UI(ID_OPTION_GRID_SNAP_SETUP, OnUpdateOptionGridSnapSetup)
	ON_COMMAND(ID_OBJECT_TABLE_INSERT_LINE, OnObjectTableInsertLine)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_TABLE_INSERT_LINE, OnUpdateObjectTableInsertLine)
	ON_COMMAND(ID_OBJECT_TABLE_ADD_LINE, OnObjectTableAddLine)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_TABLE_ADD_LINE, OnUpdateObjectTableAddLine)
	ON_COMMAND(ID_OBJECT_TABLE_INSERT_COLUMN, OnObjectTableInsertColumn)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_TABLE_INSERT_COLUMN, OnUpdateObjectTableInsertColumn)
	ON_COMMAND(ID_OBJECT_TABLE_ADD_COLUMN, OnObjectTableAddColumn)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_TABLE_ADD_COLUMN, OnUpdateObjectTableAddColumn)
	ON_COMMAND(ID_OBJECT_TABLE_DELETE_LINE, OnObjectTableDeleteLine)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_TABLE_DELETE_LINE, OnUpdateObjectTableDeleteLine)
	ON_COMMAND(ID_OBJECT_TABLE_DELETE_COLUMN, OnObjectTableDeleteColumn)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_TABLE_DELETE_COLUMN, OnUpdateObjectTableDeleteColumn)
	ON_COMMAND(ID_OBJECT_TABLE_MERGE_CELL, OnObjectTableMergeCell)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_TABLE_MERGE_CELL, OnUpdateObjectTableMergeCell)
	ON_COMMAND(ID_OBJECT_MOVE_SNAP_LEFT, OnObjectMoveSnapLeft)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_MOVE_SNAP_LEFT, OnUpdateObjectMoveSnapLeft)
	ON_COMMAND(ID_OBJECT_MOVE_SNAP_UP, OnObjectMoveSnapUp)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_MOVE_SNAP_UP, OnUpdateObjectMoveSnapUp)
	ON_COMMAND(ID_OBJECT_MOVE_SNAP_RIGHT, OnObjectMoveSnapRight)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_MOVE_SNAP_RIGHT, OnUpdateObjectMoveSnapRight)
	ON_COMMAND(ID_OBJECT_MOVE_SNAP_DOWN, OnObjectMoveSnapDown)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_MOVE_SNAP_DOWN, OnUpdateObjectMoveSnapDown)
	ON_COMMAND(ID_EDIT_SELECT_SAME_KIND_OF_OBJECT, OnEditSelectSameKindOfObject)
	ON_UPDATE_COMMAND_UI(ID_EDIT_SELECT_SAME_KIND_OF_OBJECT, OnUpdateEditSelectSameKindOfObject)
	ON_COMMAND(ID_EDIT_FIND_TEXT_ALL, OnEditFindTextAll)
	ON_UPDATE_COMMAND_UI(ID_EDIT_FIND_TEXT_ALL, OnUpdateEditFindTextAll)
	ON_COMMAND(ID_EDIT_FIND_TEXT_ALL_IN_SELECT, OnEditFindTextAllInSelect)
	ON_UPDATE_COMMAND_UI(ID_EDIT_FIND_TEXT_ALL_IN_SELECT, OnUpdateEditFindTextAllInSelect)
	ON_COMMAND(ID_EDIT_REPLACE_TEXT_ALL_IN_SELECT, OnEditReplaceTextAllInSelect)
	ON_UPDATE_COMMAND_UI(ID_EDIT_REPLACE_TEXT_ALL_IN_SELECT, OnUpdateEditReplaceTextAllInSelect)
	ON_COMMAND(ID_OBJECT_CONVERT_TO_POLY, OnObjectConvertToPoly)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_CONVERT_TO_POLY, OnUpdateObjectConvertToPoly)
	ON_COMMAND(ID_TEXT_INFLATE_FONT_SIZE, OnTextInflateFontSize)
	ON_UPDATE_COMMAND_UI(ID_TEXT_INFLATE_FONT_SIZE, OnUpdateTextInflateFontSize)
	ON_COMMAND(ID_TEXT_DEFLATE_FONT_SIZE, OnTextDeflateFontSize)
	ON_UPDATE_COMMAND_UI(ID_TEXT_DEFLATE_FONT_SIZE, OnUpdateTextDeflateFontSize)
	ON_COMMAND(ID_TEXT_ROTATE_BACKGROUND_COLOR, OnTextRotateBackgroundColor)
	ON_UPDATE_COMMAND_UI(ID_TEXT_ROTATE_BACKGROUND_COLOR, OnUpdateTextRotateBackgroundColor)
	ON_COMMAND(ID_EDIT_SELECT_NEXT, OnEditSelectNext)
	ON_UPDATE_COMMAND_UI(ID_EDIT_SELECT_NEXT, OnUpdateEditSelectNext)
	ON_COMMAND(ID_EDIT_PASTE_OVER_AS, OnEditPasteOverAs)
	ON_UPDATE_COMMAND_UI(ID_EDIT_PASTE_OVER_AS, OnUpdateEditPasteOverAs)
	ON_COMMAND(ID_EDIT_COPY_TEXT, OnEditCopyText)
	ON_UPDATE_COMMAND_UI(ID_EDIT_COPY_TEXT, OnUpdateEditCopyText)
	ON_COMMAND(ID_EDIT_PASTE_SPECIAL, OnEditPasteSpecial)
	ON_UPDATE_COMMAND_UI(ID_EDIT_PASTE_SPECIAL, OnUpdateEditPasteSpecial)
	ON_COMMAND(ID_OBJECT_TABLE_SPLIT_CELL, OnObjectTableSplitCell)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_TABLE_SPLIT_CELL, OnUpdateObjectTableSplitCell)
	ON_COMMAND(ID_OBJECT_PUT_TIME_LABEL, OnObjectPutTimeLabel)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_PUT_TIME_LABEL, OnUpdateObjectPutTimeLabel)
	ON_COMMAND(ID_OBJECT_TIME_LABEL_PROPERTY, OnObjectTimeLabelProperty)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_TIME_LABEL_PROPERTY, OnUpdateObjectTimeLabelProperty)
	ON_COMMAND(ID_EDIT_EXCHANGE_HEAD_TAIL, OnEditExchangeHeadTail)
	ON_UPDATE_COMMAND_UI(ID_EDIT_EXCHANGE_HEAD_TAIL, OnUpdateEditExchangeHeadTail)
	ON_COMMAND(ID_OBJECT_ROTATE, OnObjectRotate)
	ON_UPDATE_COMMAND_UI(ID_OBJECT_ROTATE, OnUpdateObjectRotate)
	ON_COMMAND(ID_VIEW_UNLINK_MARK_SHOW_MODE, OnViewUnlinkMarkShowMode)
	ON_UPDATE_COMMAND_UI(ID_VIEW_UNLINK_MARK_SHOW_MODE, OnUpdateViewUnlinkMarkShowMode)
	ON_COMMAND(ID_TEXT_BOTH_CODE_FONT_BOLD, OnTextBothCodeFontBold)
	ON_UPDATE_COMMAND_UI(ID_TEXT_BOTH_CODE_FONT_BOLD, OnUpdateTextBothCodeFontBold)
	ON_COMMAND(ID_TEXT_BOTH_CODE_FONT_ITALIC, OnTextBothCodeFontItalic)
	ON_UPDATE_COMMAND_UI(ID_TEXT_BOTH_CODE_FONT_ITALIC, OnUpdateTextBothCodeFontItalic)
	ON_COMMAND(ID_TEXT_BOTH_CODE_FONT_UNDERLINE, OnTextBothCodeFontUnderline)
	ON_UPDATE_COMMAND_UI(ID_TEXT_BOTH_CODE_FONT_UNDERLINE, OnUpdateTextBothCodeFontUnderline)
	//}}AFX_MSG_MAP
	// _xZkqqHx_jFfHiPiAiIpDiNpMiDfCiDhNiDjDiDgI_xHqqkZx_
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
//	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
	ON_MESSAGE(WM_IME_NOTIFY, OnImeNotify)
	ON_MESSAGE(WM_USER_TOOLBAR_DBLCLK, OnUserToolbarDblclk)
	ON_MESSAGE(WM_USER_SET_ZOOM256, OnUserSetZoom256)
	ON_MESSAGE(WM_USER_LAYER_UPDATED, OnUserLayerUpdated)
	ON_MESSAGE(WM_USER_CURRENT_SHEET_CHANGED, OnUserCurrentSheetChanged)
	ON_MESSAGE(WM_USER_RGN_REDRAW, OnUserRgnRedraw)
	ON_MESSAGE(WM_USER_UPDATE_VIEW_SCREEN_RECT, OnUserUpdateViewScreenRect)
	ON_MESSAGE(WM_USER_OBJ_SELECT_CHANGED, OnUserObjSelectChanged)
	ON_MESSAGE(WM_USER_TEXT_SELECT_CHANGED, OnUserTextSelectChanged)
	ON_MESSAGE(WM_USER_PURSUER_TEXT_NEED_INFO, OnUserPursuerTextNeedInfo)
	ON_MESSAGE(WM_XBUTTONUP, OnXbuttonup)
	ON_COMMAND_RANGE(ID_TOOL_BEGIN_MARK, ID_TOOL_END_MARK, OnAnyTool)
	ON_COMMAND_RANGE(ID_TLCMD_BEGIN_MARK, ID_TLCMD_END_MARK, OnAnyTlcmd)
	ON_UPDATE_COMMAND_UI_RANGE(ID_TOOL_BEGIN_MARK, ID_TOOL_END_MARK, OnUpdateAnyTool)
	ON_WM_MBUTTONDOWN()
	ON_WM_MBUTTONUP()
	ON_WM_WINDOWPOSCHANGED()
//	ON_WM_WINDOWPOSCHANGING()
END_MESSAGE_MAP()

//----- 06.03.27 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_COMMAND(ID_OBJECT_EXCHANGE_EDGE, OnObjectExchangeEdge)
//	ON_UPDATE_COMMAND_UI(ID_OBJECT_EXCHANGE_EDGE, OnUpdateObjectExchangeEdge)
//----- 06.03.27 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 05.07.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_COMMAND(ID_TEXT_BOTH_CODE_FONT_BOLD, OnTextBothCodeFontBold)
//	ON_UPDATE_COMMAND_UI(ID_TEXT_BOTH_CODE_FONT_BOLD, OnUpdateTextBothCodeFontBold)
//	ON_COMMAND(ID_TEXT_BOTH_CODE_FONT_ITALIC, OnTextBothCodeFontItalic)
//	ON_UPDATE_COMMAND_UI(ID_TEXT_BOTH_CODE_FONT_ITALIC, OnUpdateTextBothCodeFontItalic)
//	ON_COMMAND(ID_TEXT_BOTH_CODE_FONT_UNDERLINE, OnTextBothCodeFontUnderline)
//	ON_UPDATE_COMMAND_UI(ID_TEXT_BOTH_CODE_FONT_UNDERLINE, OnUpdateTextBothCodeFontUnderline)
//----- 05.07.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 06.03.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_COMMAND(ID_TEXT_FULL_SCREEN_EDIT_MODE, OnTextFullScreenEditMode)
//	ON_UPDATE_COMMAND_UI(ID_TEXT_FULL_SCREEN_EDIT_MODE, OnUpdateTextFullScreenEditMode)
//----- 06.03.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawView _xZkqqHx_iDiNiBfLiDeKiDiLiKnGjAjEiBeC_xHqqkZx_

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawView _xZkqqHx_iDeOiDiJiDfIiCmMiNfMjChK_xHqqkZx_/_xZkqqHx_iPmBjGmF_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::CFCDynamicDrawView
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfO_xHqqkZx_
 *************************************************************************/
CFCDynamicDrawView::CFCDynamicDrawView ()
{
	// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjE_xHqqkZx_ g_pView_xZkqqHx_iCmMjAnNjCoIiBeC_xHqqkZx_
	InitGlobal(this);
// 02.12.09 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	m_pDrawTool	= NULL;
	m_lDrawTool = -1;
	m_scrtView.SetRectEmpty();	// _xZkqqHx_iMlLiNnNiCmMjHmMiIoGiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgK_xHqqkZx_

//----- 00.12.22 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiDhEiDiJiDePiBeC_xHqqkZx_
	m_wSelObjLayerFlag = WORD(-1);
//----- 00.12.22 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	m_vSelectObj.clear();
	// _xZkqqHx_iNmFiMoDiCmJjCmHiJmBiClDiCoKiClNjFjEjFgJiCpAiJpAiPjMiBeC_xHqqkZx_
	m_pLastSelectObj = NULL;

//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iMlLiNnNiCmMiDhEiDeIiDjDiDgHiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	memset(&m_fciSelFontInfo, 0, sizeof(m_fciSelFontInfo));
//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	m_mmGrid	= 10;
//	m_mmSnap	= 10;
//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
// 00.02.08 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	m_bIsGridVisible = TRUE;
// 00.02.08 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	m_bIsSnapActive  = TRUE;

	g_pFDPalette = NULL;

	m_mmptLast.x = 10.0;
	m_mmptLast.y = 10.0;

// 99.05.31 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	m_tLink.clear();

	m_bIsToolTimer = FALSE;		// _xZkqqHx_iDgDiBfLiDiLiDfOiDeDiDhNiBfLiCkKjHeMiMpIiCkJiBeI_xHqqkZx_
	m_bIsScrollTimer = FALSE;	// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiCmMiDfOiDeDiDhNiBfLiCkKjHeMiMpIiCkJiBeI_xHqqkZx_
	m_bAutoScroll = FALSE;		// _xZkqqHx_iOkJjDkOiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
// 01.11.12 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	m_bIsProhibitWheel = FALSE;	// _xZkqqHx_iDhNiDeFiDfIiDhKiDeDiBfLiDiLiCpAiLnGiOhOiBeI_xHqqkZx_


//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	////////////////// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiL_xHqqkZx_ ////////////////////////
//	// _xZkqqHx_iImIiJlKiCmMiDgFiBfLiDhFiDiLiCmNiBeBiDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCmMiPiHjEnEiCmJjFmAiCpBiCmFiCkCiCoJiBeC_xHqqkZx_
//	// _xZkqqHx_iDgDiBfLiDiLiCpAjCmHiJmBiBeFiNoNiPjMiClHiCoJiOjOiCoAiBeBiClLiCmMiPiHiPjIiCpAiLlGiCoNiClFiCmEiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
//	// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCmNiBeBiDgDiBfLiDiLiPoOjFpBiCmMjFnLjBlGiBeFjDmHiCnNiNjOiCnNiCmJiOgHjHhAiClHiCoJiBeC_xHqqkZx_
//	// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCmNiBeBiDgDiBfLiDiLiCmMjDoAjFjEjFjEjFgJiCmM_xHqqkZx_ID_xZkqqHx_iCmGiClFiCmEiCoAiOgHiCoNiCoKiCoJiBeC_xHqqkZx_
//	// _xZkqqHx_iDgDiBfLiDiLiCmMjDoAjFjEjFjEjFgJiCmMiClNiCnPiBeBjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmM_xHqqkZx_ [0, FD_MAX_TOOL_ID)_xZkqqHx_iCpAiKgNjFnLiBeC_xHqqkZx_
//	// _xZkqqHx_iClBiCkEiClHiCoJiClBiCmGiCmJiCoGiCoIiBeBiDgDiBfLiDiLiCkKjBjNiCkGiClNiPoKiNiHiCmFiCoAiBeBiMmDiCkCiDgGiBfLiDfOiCpA_xHqqkZx_
//	// _xZkqqHx_jDmHiCnNiNjOiCnOiOjOiCmJjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCkKiDgPiDgCiDgFiDeCiDjDiDePiClFiCmIiCkCiBeC_xHqqkZx_
//
//	// _xZkqqHx_jCiNiInDiBeJiBeJ_xHqqkZx_
//	// ../MolipSDK/MpgMolipExport.h_xZkqqHx_iCmM_xHqqkZx_FDTLIDX_XXXX_xZkqqHx_iCmGjIeBjDkOiClFiCmEiCkCiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
//
//	m_ToolIdTbl[ 0].Set( ID_TOOL_SELECT,			new FCToolSelect()	);
//	m_ToolIdTbl[ 1].Set( ID_TOOL_SELEDIT,			new FCToolSelEdit()	);
//	m_ToolIdTbl[ 2].Set( ID_TOOL_ROTATE,			new FCToolRotate()	);
//	m_ToolIdTbl[ 3].Set( ID_TOOL_ZOOM,				new FCToolZoom()	);
//	m_ToolIdTbl[ 4].Set( ID_TOOL_CHIP,				new FCToolChip()	);
//	m_ToolIdTbl[ 5].Set( ID_TOOL_LINE,				new FCToolLine()	);
//	m_ToolIdTbl[ 6].Set( ID_TOOL_RECT,				new FCToolRect()	);
//	m_ToolIdTbl[ 7].Set( ID_TOOL_RRECT,				new FCToolRoundRect()	);
//	m_ToolIdTbl[ 8].Set( ID_TOOL_POLYLINE,			new FCToolArrowTmpl<FCToolPoly>(FALSE)	);
//	m_ToolIdTbl[ 9].Set( ID_TOOL_BEZILINE,			new FCToolArrowTmpl<FCToolBezier>(FALSE)	);
//	m_ToolIdTbl[10].Set( ID_TOOL_ARC,				new FCToolArc()	);
//	m_ToolIdTbl[11].Set( ID_TOOL_RICH_TEXT,			new FCToolRichText()	);
//	m_ToolIdTbl[12].Set( ID_TOOL_POINT,				new FCToolPoint()	);
//	m_ToolIdTbl[13].Set( ID_TOOL_LABEL_PUT,			new FCToolLabelPut()	);
//	m_ToolIdTbl[14].Set( ID_TOOL_LINK,				new FCToolLink()	);
//	m_ToolIdTbl[15].Set( ID_TOOL_POLY_ARROW,		new FCToolArrowTmpl<FCToolPoly>(TRUE, NULL, &FCUGArrowParams(FDUG_ARW_TYPE_TYPICAL, FDUG_ARW_STYL_ARROW_C1, 3, 0))	);
//	m_ToolIdTbl[16].Set( ID_TOOL_BEZIER_ARROW,		new FCToolArrowTmpl<FCToolBezier>(TRUE, NULL, &FCUGArrowParams(FDUG_ARW_TYPE_TYPICAL, FDUG_ARW_STYL_ARROW_C1, 3, 0))	);
//	m_ToolIdTbl[17].Set( ID_TOOL_WIDE_POLY,			new FCToolArrowTmpl<FCToolWidePoly>(FALSE)	);
//	m_ToolIdTbl[18].Set( ID_TOOL_WIDE_BEZIER,		new FCToolArrowTmpl<FCToolWideBezier>(FALSE)	);
//	m_ToolIdTbl[19].Set( ID_TOOL_WIDE_POLY_ARROW,	new FCToolArrowTmpl<FCToolWidePoly>(TRUE, NULL, &FCUGArrowParams(FDUG_ARW_TYPE_TYPICAL, FDUG_ARW_STYL_ARROW_C1, 3, 0))	);
//	m_ToolIdTbl[20].Set( ID_TOOL_WIDE_BEZIER_ARROW,	new FCToolArrowTmpl<FCToolWideBezier>(TRUE, NULL, &FCUGArrowParams(FDUG_ARW_TYPE_TYPICAL, FDUG_ARW_STYL_ARROW_C1, 3, 0))	);
//	m_ToolIdTbl[21].Set( ID_TOOL_TEXT_PUT,			new FCToolTextPut()	);
//	m_ToolIdTbl[22].Set( ID_TOOL_CHIP_PUT,			new FCToolChipPut()	);
//	m_ToolIdTbl[23].Set( DWORD(-1),					NULL	);
//	m_ToolIdTbl[24].Set( DWORD(-1),					new FCToolPolyEdit()	);
//	m_ToolIdTbl[25].Set( DWORD(-1),					new FCToolLineEdit()	);
//	m_ToolIdTbl[26].Set( DWORD(-1),					new FCToolRoundRectEdit()	);
//	m_ToolIdTbl[27].Set( DWORD(-1),					new FCToolArcEdit()	);
//	m_ToolIdTbl[28].Set( ID_TOOL_EDIT_RICH_TEXT,	new FCToolRichEdit()	);
//	m_ToolIdTbl[29].Set( DWORD(-1),					new FCToolOleEdit()	);
//	m_ToolIdTbl[30].Set( DWORD(-1),					new FCToolGroupEdit()	);
//	m_ToolIdTbl[31].Set( DWORD(-1),					NULL	);
//	m_ToolIdTbl[32].Set( DWORD(-1),					NULL	);
//	m_ToolIdTbl[33].Set( DWORD(-1),					NULL	);
//	m_ToolIdTbl[34].Set( DWORD(-1),					NULL	);
//	m_ToolIdTbl[35].Set( DWORD(-1),					NULL	);
//	m_ToolIdTbl[36].Set( DWORD(-1),					NULL	);
//	m_ToolIdTbl[37].Set( DWORD(-1),					NULL	);
//	m_ToolIdTbl[38].Set( DWORD(-1),					NULL	);
//	m_ToolIdTbl[39].Set( DWORD(-1),					NULL	);
//
//	//----- _xZkqqHx_jFnCiPfHjHhAiDgDiBfLiDiLiDgFiBfLiDhFiDiL_xHqqkZx_ -----
//
//	m_ObjToolTbl[0].Set( FDOJ_POLY,					m_ToolIdTbl[24].pTool);
//	m_ObjToolTbl[1].Set( FDOJ_LINE,					m_ToolIdTbl[25].pTool);
//	m_ObjToolTbl[2].Set( FDOJ_ROUND_RECT,			m_ToolIdTbl[26].pTool);
//	m_ObjToolTbl[3].Set( FDOJ_ARC,					m_ToolIdTbl[27].pTool);
//	m_ObjToolTbl[4].Set( FDOJ_OLE,					m_ToolIdTbl[29].pTool);
//	m_ObjToolTbl[5].Set( FDOJ_GROUP,				m_ToolIdTbl[30].pTool);
//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

} // CFCDynamicDrawView::CFCDynamicDrawView.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::~CFCDynamicDrawView
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDfIiDgHiDiJiDeOiDfO_xHqqkZx_
 *************************************************************************/
CFCDynamicDrawView::~CFCDynamicDrawView ()
{
//----- 00.12.22 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiDhEiDiJiDePiBeC_xHqqkZx_
	m_wSelObjLayerFlag = WORD(-1);
//----- 00.12.22 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	m_vSelectObj.clear();
	// _xZkqqHx_iNmFiMoDiCmJjCmHiJmBiClDiCoKiClNjFjEjFgJiCpAiJpAiPjMiBeC_xHqqkZx_
	m_pLastSelectObj = NULL;
	// _xZkqqHx_iClBiCoKiImIiNhOiCoA_xHqqkZx_Document_xZkqqHx_jDjJiCmF_xHqqkZx_g_pView_xZkqqHx_iCkKiOfBiPmGiClDiCoKiCoJiClNiCnPiBeBiImIiJlKiCmMiPiIjHjNiCkKjFeLjHhG_xHqqkZx_.
	// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjE_xHqqkZx_ g_pView_xZkqqHx_iCmMiNoNiPjMiBeC_xHqqkZx_
	TerminateGlobal();

//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	//----- _xZkqqHx_iDgDiBfLiDiLiCmMiNoNiPjM_xHqqkZx_ -----
//	for (int iC = 0; iC < FD_MAX_TOOL_ID; iC++)
//	{
//		if (m_ToolIdTbl[iC].pTool != NULL)
//		{
//			delete m_ToolIdTbl[iC].pTool;
//			m_ToolIdTbl[iC].pTool = NULL;
//		}
//	}
//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::~CFCDynamicDrawView.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::PreCreateWindow
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CWnd _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmJiMiLiCnBjFhEiCkPiCoHiCoKiClN_xHqqkZx_ Windows _xZkqqHx_iCmMiDeFiDeCiDjDiDgIiDeFiCkK_xHqqkZx_
 *			_xZkqqHx_iNoMjAkMiClDiCoKiCoJjBePiCmJiMmEiCnBiPgPiClDiCoKiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	cs	:
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMiNoMjAkMiCpAiMhAjBlBiClHiCoJiPoKiNiHiCmNiBeB_xHqqkZx_0 _xZkqqHx_iImIiKePiCpAjFnEiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iClLiCoKiImIiKePiCmMiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iCpAjFnEiClFiCnMiClHiBeC_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::PreCreateWindow (CREATESTRUCT& cs)
{
	// _xZkqqHx_jAiFjFlNiBeFjAiCjClMiDfIiDeOiDiNiBfLiDiLiDgPiBfLiCpAjFfMiOkG_xHqqkZx_.
	cs.style |= WS_VSCROLL | WS_HSCROLL;

	return BASE_CLASS::PreCreateWindow(cs);
} // CFCDynamicDrawView::PreCreateWindow.

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawView _xZkqqHx_iDiGiBfLiDfFiKnGjAjE_xHqqkZx_.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::InitContents
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiKnGjIeBiCmMiPiJiKpKiJlLiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_FoundDoc::InitContents_xZkqqHx_iCkJiCoH_xHqqkZx_
 *			_xZkqqHx_iOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCmNiBeBiDhGiDiNiDhAiDgFiDeCjFmPiNfIiClDiCoKiCoJiClBiCmGiCkKiCkAiCoJiInHiBeB_xHqqkZx_
 *			Undo_xZkqqHx_iCpAjHeMiMpIiCmJiClHiCoJiClNiCnPiCmJ_xHqqkZx_ID_xZkqqHx_jDgPjIfOiCkKjFeLjHhGiCmFiCkAiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDgDiBfLiDiLiCmMjDoAjFjEjFjEjFgJiCmMiClNiCnPiBeBjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmM_xHqqkZx_ [0, FD_MAX_TOOL_ID)_xZkqqHx_iCpAiKgNjFnLiBeC_xHqqkZx_
 *			_xZkqqHx_iClBiCkEiClHiCoJiClBiCmGiCmJiCoGiCoIiBeBiDgDiBfLiDiLiCkKjBjNiCkGiClNiPoKiNiHiCmFiCoAiBeBiMmDiCkCiDgGiBfLiDfOiCpA_xHqqkZx_
 *			_xZkqqHx_jDmHiCnNiNjOiCnOiOjOiCmJjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCkKiDgPiDgCiDgFiDeCiDjDiDePiClFiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::InitContents ()
{
	// S_xZkqqHx_iDeKiDiJiBfLiDgFiBfLiDhFiDiLjFmPiNfIiCmJjElKiCmBiCmEiDhAiDiMiDgCiDgHiCpAjFmPiNfIiBeC_xHqqkZx_
	InitPalette();
//----- 05.07.31 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	//----- _xZkqqHx_iDgDiBfLiDiLiCmMiPiJiKpKiJlLiCpAiClHiCoJ_xHqqkZx_ ------
	g_pToolManager->InitContents(g_pDoc);

	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	// _xZkqqHx_iNmFiPiJiCmNiDfKiDiMiDeOiDgHiDgDiBfLiDiLiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
	m_lDrawTool = g_pToolManager->CommandID2ToolIndex(g_pDoc->GetStdTool());
	g_pToolManager->GetTool(m_lDrawTool)->Select(&dc);
	// _xZkqqHx_iDhCiDiFiBfLiCmMiDfIiDeOiDiNiBfLiDiLiDfEiDeDiDfJiCpAiNfIjAfGiBeC_xHqqkZx_
	UpdateScrollSize();
//----- 05.07.31 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 05.07.31 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// View _xZkqqHx_iCmJjFfHiPiAiDgDiBfLiDiLiCpAjAnNjCoIiBeC_xHqqkZx_ReadOnly_xZkqqHx_iCmMjAnNjCoIiMoDiCmJjCgMiCkKjFmPiCoNiCoJiClNiCnPiBeC_xHqqkZx_
//	PostMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
//----- 05.07.31 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::InitContents.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::DeleteContents
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCmMjAnNjCoIiBeFjFmPjAjEiCpAiJpAiPjMiClFiBeBiPiJiKpKiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *			Document::DeleteContents_xZkqqHx_iCkJiCoHiOmAiNhD_xHqqkZx_.Document_xZkqqHx_iNoMjAkMiOjOiCmJ_xHqqkZx_
 *			OnNewDocument_xZkqqHx_iCoGiCoIjAoGiCmJiOmAiNhDiClDiCoKiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *			_xZkqqHx_iDeBiDhGiDiKiPeJjHlJiOjOiCmM_xHqqkZx_Document::DeleteContents _xZkqqHx_iOjOiCmJiCmNiBeB_xHqqkZx_View _xZkqqHx_iCmNiKpJiCmJ_xHqqkZx_
 *			_xZkqqHx_iNoNiPjMiNmPiCnNiCmMiClNiCnPiBeB_xHqqkZx_View::DeleteContents_xZkqqHx_iCmNiOmAiNhDiClDiCoKiCmIiCkCiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	Document_xZkqqHx_iCkKiPeJjHlJiOjOiCmJ_xHqqkZx_DeleteContents_xZkqqHx_iCpAiOmAiNhDiClFiCmIiCkCiClNiCnPiBeB_xHqqkZx_
 *			OnDestroy _xZkqqHx_iCmF_xHqqkZx_ Terminate() _xZkqqHx_iCpAiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::DeleteContents ()
{
	// _xZkqqHx_jFmPjAjEiCoCiPpDjBnEjDjJiCpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
	Terminate();
	//----- _xZkqqHx_iDgDiBfLiDiLiCmMiPiJiKpKiJlLiCpAiClHiCoJ_xHqqkZx_ ------
	g_pToolManager->DeleteContents(g_pDoc);

	// _xZkqqHx_jBeJjBpAiJpAiPjMiBeCjBeJjBpAjFjEjFgJiCmNjGlDiCkCiCkKiBeBiDhEiDiMiBfLiDiAiCmJjBeJjBpAjFmPiNfIiCpAjCmKjCgNiClHiCoJiClNiCnPiOmAiNhDiBeC_xHqqkZx_
	ClearSelectObj();
} // CFCDynamicDrawView::DeleteContents.

//----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnClose
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeF_xHqqkZx_Close_xZkqqHx_iOjOiCmJ_xHqqkZx_CFCMainFrame_xZkqqHx_iCkJiCoHiOmAiNhDiBeC_xHqqkZx_View_xZkqqHx_iCpAjFmCiClGiCoJiPiIjHjNiCpAiOmAiNhDiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	View_xZkqqHx_iCpAjFmCiClGiCoKiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.09.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCDynamicDrawView::OnClose ()
//{
////----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmNiBeBiDeHiDgGiDeCiDfOiCpAiPeJjHlJiBeC_xHqqkZx_
////	if (GetCurrentTool()->IsEditingText())
////		GetCurrentTool()->OnStopToEditText();
//////----- 00.11.23 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
////	// _xZkqqHx_jFnCiPfHjCiGiCmM_xHqqkZx_OLE_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAjFmCiClGiCoJiBeC_xHqqkZx_
////	g_pDoc->CloseOleDocuments();
//////----- 00.11.23 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
////----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_jFfHiPiAiDgDiBfLiDiLiCmJjGnPiClHiBeCiDgFiDeMiDfIiDgHjFnCiPfHiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHiCmIiCmHiCpAiPeJjHlJiBeC_xHqqkZx_
//	SendMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
////----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//	return TRUE;
//} // CFCDynamicDrawView::OnClose.
//----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnCloseDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	Document::OnCloseDocument_xZkqqHx_iOjOiCmJ_xHqqkZx_CFoundDoc_xZkqqHx_iCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *			View_xZkqqHx_iCpAjFmCiClGiCoJiPiIjHjNiCpAiOmAiNhDiBeC_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_iCkJiCoHjEkNiNhDiClHiCoJiClBiCmGiCmJjFmPiNfIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	View_xZkqqHx_iCpAjFmCiClGiCoKiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.09.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::OnCloseDocument ()
{
//----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmNiBeBiDeHiDgGiDeCiDfOiCpAiPeJjHlJiBeC_xHqqkZx_
//	if (GetCurrentTool()->IsEditingText())
//		GetCurrentTool()->OnStopToEditText();
////----- 00.11.23 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//	// _xZkqqHx_jFnCiPfHjCiGiCmM_xHqqkZx_OLE_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//	g_pDoc->CloseOleDocuments();
////----- 00.11.23 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_jFfHiPiAiDgDiBfLiDiLiCmJjGnPiClHiBeCiDgFiDeMiDfIiDgHjFnCiPfHiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHiCmIiCmHiCpAiPeJjHlJiBeC_xHqqkZx_
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	SendMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
	SwitchCurrentTool(ID_TOOL_SELECT, TRUE);
//----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	return TRUE;
} // CFCDynamicDrawView::OnCloseDocument.
//----- 02.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnActivateApp
 *
 * <_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_
 *			hTask	:_xZkqqHx_jAnIiCoIjBnGiCoNiCoJjBiKiOoIiCmMiDfOiDfIiDeOiDgOiDjDiDgIiDiLiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnActivateApp (BOOL bActive, HTASK hTask)
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	const MSG* pMsg = GetCurrentMessage();
// 01.12.13 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	if (GetCurrentTool() != NULL)
		GetCurrentTool()->OnWindowMessage(&dc, pMsg->message, pMsg->wParam, pMsg->lParam);
} // CFCDynamicDrawView::OnActivateApp.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::InitPalette
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhAiDiMiDgCiDgHiCmMiPiJiKpKiJlLiCpAiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhAiDiMiDgCiDgHiCmMiBeBjFmPiNfIiClDiCoKiClNjAjEiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.07.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
DWORD CFCDynamicDrawView::InitPalette ()
{
	DWORD dwChange = 0;
	if (g_pFDPalette != NULL)
	{
		delete g_pFDPalette;
		g_pFDPalette = NULL;
	}
	CDC* pDC = GetDC();
	if (pDC->GetDeviceCaps(RASTERCAPS) & RC_PALETTE)
	//----- _xZkqqHx_iDhAiDiMiDgCiDgHjHeMiCoIiCmMiPoKiNiH_xHqqkZx_ -----
	{
		const int iEntries  = pDC->GetDeviceCaps(SIZEPALETTE);
		const int iReserved = pDC->GetDeviceCaps(NUMRESERVED);
		LOGPALETTE* pLogPalNew = (PLOGPALETTE)new BYTE[sizeof(LOGPALETTE) + iEntries * sizeof(PALETTEENTRY)];
		// _xZkqqHx_iMlLiNnNiCmMiDfGiDfIiDgFiDiAiDhAiDiMiDgCiDgHiCpAiDfCiDhDiBfLiBeC_xHqqkZx_
		(void)pDC->GetCurrentPalette()->GetPaletteEntries(0, iReserved, pLogPalNew->palPalEntry);
		//----- _xZkqqHx_iMlLiNnNjAnNjCoIiClDiCoKiCmEiCkCiCoJ_xHqqkZx_S_xZkqqHx_iDeKiDiJiBfLiDgFiBfLiDhFiDiLiCpAiDhAiDiMiDgCiDgHiCmJiDfCiDhDiBfL_xHqqkZx_ -----
		int iColIdx, iNumEnt;
		for (iColIdx = 0, iNumEnt = iReserved;
			 iColIdx < g_pEnv->GetFreqSColorVector().size() && iNumEnt < iEntries; iColIdx++, iNumEnt++)
		{
			pLogPalNew->palPalEntry[iNumEnt].peRed   = GetRValue(g_pEnv->GetSColorRec(g_pEnv->GetFreqSColorVector()[iColIdx])->m_crRef);
			pLogPalNew->palPalEntry[iNumEnt].peGreen = GetGValue(g_pEnv->GetSColorRec(g_pEnv->GetFreqSColorVector()[iColIdx])->m_crRef);
			pLogPalNew->palPalEntry[iNumEnt].peBlue  = GetBValue(g_pEnv->GetSColorRec(g_pEnv->GetFreqSColorVector()[iColIdx])->m_crRef);
			pLogPalNew->palPalEntry[iNumEnt].peFlags = 0;
		}
		// _xZkqqHx_iDgPiBfLiDfHiDiHiDjDiCmGiDeHiDjDiDgHiDiKiBfLjAjEiCpAjAnNjCoIiBeC_xHqqkZx_
		pLogPalNew->palVersion = 0x300;
		pLogPalNew->palNumEntries = iNumEnt;
		// _xZkqqHx_jAfGiLeLiCmJiDhAiDiMiDgCiDgHiCpAiNoMjAkMiBeC_xHqqkZx_
		g_pFDPalette = new CPalette;
		g_pFDPalette->CreatePalette(pLogPalNew);
		// _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiNoNiPjMiBeC_xHqqkZx_
		delete pLogPalNew;

		// MolipDraw_xZkqqHx_iCmMiDhAiDiMiDgCiDgHiCpAjAnNjCoIiBeC_xHqqkZx_
		CPalette* pOldPal = pDC->SelectPalette(g_pFDPalette, FALSE);
		// _xZkqqHx_jIfPjHjNiDhAiDiMiDgCiDgHiCpAiDfGiDfIiDgFiDiAiDhAiDiMiDgCiDgHiCmJiDhNiDgCiDhGiBeC_xHqqkZx_
		dwChange = pDC->RealizePalette();
		// _xZkqqHx_iDhAiDiMiDgCiDgHiCpAjGnPiClHiBeC_xHqqkZx_
		pDC->SelectPalette(pOldPal, FALSE);
	}
	ReleaseDC(pDC);
	return dwChange;
} // CFCDynamicDrawView::InitPalette.

//----- 00.01.15 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::PrepareStreamInOut
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDgHiDiKiBfLiDiAiCmMjDpMiPgPjHmNiCmMjBePiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmNiBeBiDgDiBfLiDiLiCmJjFmCiClGiCoJiCoGiCkEiCmJ_xHqqkZx_
// *			_xZkqqHx_iOhHiOkGiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::PrepareStreamInOut ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCpAjFfHiPiAiCmJjGnPiClHiBeC_xHqqkZx_
//	SendMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
//} // CFCDynamicDrawView::PrepareStreamInOut.
//----- 00.01.15 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::PrepareStreamIn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDgHiDiKiBfLiDiAiCmMjDpMjHmNiCmMjBePiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmNiBeBiDgDiBfLiDiLiCmJjFmCiClGiCoJiCoGiCkEiCmJ_xHqqkZx_
 *			_xZkqqHx_iOhHiOkGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			00.01.15 Fukushiro M. PrepareStreamInOut_xZkqqHx_iClOiCmBiClNiCkKiBeB_xHqqkZx_Out_xZkqqHx_iOjOiCmJ_xHqqkZx_
 *								_xZkqqHx_iDgDiBfLiDiLiCpAjFmPiNfIiClHiCoJiCmGiBeB_xHqqkZx_LinkTool_xZkqqHx_iCmFjBeJjBpAjCiGiCmJ_xHqqkZx_
 *								OnCopy_xZkqqHx_iCpAiClFiClNiCoHjHiOiClPiCoJiClNiCnPiBeB_xHqqkZx_In_xZkqqHx_iCmMiCnNiCmJiClFiClNiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::PrepareStreamIn ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCpAjFfHiPiAiCmJjGnPiClHiBeC_xHqqkZx_
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	SendMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
	SwitchCurrentTool(ID_TOOL_SELECT, TRUE);
} // CFCDynamicDrawView::PrepareStreamIn.
//----- 00.01.15 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

//----- 02.12.09 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OutStream
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiPoOjFpBjDjJiCpAiDfIiDgHiDiKiBfLiDiAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_iPgPjHmNjAoGiDfIiDgHiDiKiBfLiDiAiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDgGiBfLiDfOiDhEiDeIiBfLiDhNiDgCiDgHiCmNiImIiJlKiCmMjCmKiCoIiBeC_xHqqkZx_
// *			|_xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID|_xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_|       _xZkqqHx_iDgGiBfLiDfO_xHqqkZx_       | _xZkqqHx_iBgDiBgD_xHqqkZx_ _xZkqqHx_iMeKiCoIjFnEiClFiBgA_xHqqkZx_
// *			|<-BYTE->|<---WORD--->|<---_xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_--->|
// *
// *	   _xZkqqHx_iBgDiBgD_xHqqkZx_ |_xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID|_xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_|       _xZkqqHx_iDgGiBfLiDfO_xHqqkZx_       |  0xff  |
// *			|<-BYTE->|<---WORD--->|<---_xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_--->|<-BYTE->|
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OutStream (FCUndoArchive& ar) const
//{
//	//----- _xZkqqHx_iDgDiBfLiDiLiCmMjDoAjFjEjFjEjFgJiCpAiDfIiDgHiDiKiBfLiDiAiCmJiPgPjHmNiClHiCoJ_xHqqkZx_ ------
//	for (int iTool = 0; iTool < FD_MAX_TOOL_ID; iTool++)
//	{
//		// _xZkqqHx_iCgIiCgDiCmJjBmOiJjOiClHiCoJiDgDiBfLiDiLiCkKjGlDiCkCiPoKiNiHiCmNiDfIiDeMiDgCiDhGiBeCiDgDiBfLiDiLiCgIiCgDiCpA_xHqqkZx_
//		// _xZkqqHx_iPgPjHmNiClHiCoJiCmMiCmFiDfIiDeMiDgCiDhGiClFiCmEiCoAjDmHiCnNiNjOiCnNiCmJjGoCjBoIiCmNjGlDiCkCiBeC_xHqqkZx_
//		if (g_pToolManager->GetTool(iTool) == NULL) continue;
//		// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//		CMemFile fileWork;
//		// _xZkqqHx_iDgDiBfLiDiLjBkOjAkLiDfIiDgHiDiKiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
//		g_pToolManager->GetTool(iTool)->OutStream(FCUndoArchive(&fileWork, FD_ARCHIVE_STORE));
//		// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCmMiOoGjDlOiBeC_xHqqkZx_
//		const WORD wDataSize = WORD(fileWork.GetLength());
//		// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAjAnIiCoIjHkDiClHiBeC_xHqqkZx_
//		BYTE* pData = fileWork.Detach();
//		// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
//		ar << BYTE(iTool);
//		// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
//		ar << wDataSize;
//		// _xZkqqHx_iDgGiBfLiDfOiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
//		ar.Write(pData, wDataSize);
//		// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
//		free(pData);
//	}
//	// _xZkqqHx_iPeJjHlJiDhNiBfLiDeOiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
//	ar << BYTE(-1);
//} // CFCDynamicDrawView::OutStream.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::InStream
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiPoOjFpBjDjJiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDpMjHmNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_jDpMjHmNiMlDiDfIiDgHiDiKiBfLiDiAiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::InStream (FCUndoArchive& ar)
//{
//	FCUndoArchive fdar(ar);
//	BYTE	byTool;
//	WORD	wDataSize;
//	for (;;)
//	{
//		// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		fdar >> byTool;
//		// _xZkqqHx_iPeJjHlJiDhNiBfLiDeOiCmIiCoHiCmOiDiLiBfLiDhGiCpAiPeJjHlJiBeC_xHqqkZx_
//		if (byTool == BYTE(-1)) break;
//		// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		fdar >> wDataSize;
//		// _xZkqqHx_jBmOiJjOiClHiCoJiDgDiBfLiDiLiCkKjGlDiCkCiPoKiNiHiCmNiDfIiDeMiDgCiDhGiBeC_xHqqkZx_
//		if (g_pToolManager->GetTool(byTool) == NULL)
//		{
//			BYTEVector vData(wDataSize);
//			fdar.Read(vData.begin(), wDataSize);
//		} else
//		{
//			// _xZkqqHx_iDgDiBfLiDiLiCmJiDfIiDgHiDiKiBfLiDiAiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
//			g_pToolManager->GetTool(byTool)->InStream(fdar);
//		}
//	}
//} // CFCDynamicDrawView::InStream.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SkipStream
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDgHiDiKiBfLiDiAiCmMiDgDiBfLiDiLiPoOjFpBiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_jDpMjHmNiMlDiDfIiDgHiDiKiBfLiDiAiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::SkipStream (FCUndoArchive& ar)
//{
//	BYTE	byTool;
//	WORD	wDataSize;
//	for (;;)
//	{
//		// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		ar >> byTool;
//		// _xZkqqHx_iPeJjHlJiDhNiBfLiDeOiCmIiCoHiCmOiDiLiBfLiDhGiCpAiPeJjHlJiBeC_xHqqkZx_
//		if (byTool == BYTE(-1)) break;
//		// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		ar >> wDataSize;
//		// _xZkqqHx_iDgPiDgCiDhEiDeAiCpAiKgNjFnLiBeC_xHqqkZx_
//		BYTEVector vbyBuff(wDataSize);
//		// _xZkqqHx_iDgGiBfLiDfOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		ar.Read(vbyBuff.begin(), wDataSize);
//	}
//} // CFCDynamicDrawView::SkipStream.
//----- 02.12.09 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 02.12.11 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OutStreamViewStat
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiCmMjFnCiPfHiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCmJiPgPjHmNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OutStreamViewStat (FCUndoArchive& ar) const
//{
//	//----- _xZkqqHx_iDhCiDiFiBfLiCmMjFnCiPfHiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCmJiPgPjHmNiClHiCoJ_xHqqkZx_ -----
//	BYTEVector vStream;
//	//----- _xZkqqHx_jEhLjHkG_xHqqkZx_  ------
//	vStream << BYTE(FDGLST_ZOOM);
//	vStream << g_->lZoom256;
//	//----- _xZkqqHx_iDhCiDiFiBfLiImKjChF_xHqqkZx_ -----
//	DBLRect mmrtClient;
//	GetClientRectMM(mmrtClient);
//	DBLPoint mmptCenter = mmrtClient.CenterPoint();
//	vStream << BYTE(FDGLST_VIEW_POSITION);
//	vStream << g_pDoc->GetCurrentSheetId();
//	vStream << short(mmptCenter.x);
//	vStream << short(mmptCenter.y);
//	// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
//	ar << DWORD(vStream.size());
//	// _xZkqqHx_iDgGiBfLiDfOiCpAiPgPjHmNiBeC_xHqqkZx_
//	ar.Write(vStream.begin(), vStream.size());
//} // CFCDynamicDrawView::OutStreamViewStat.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::InStreamViewStat
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiCmMjFnCiPfHiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDpMjHmNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::InStreamViewStat (FCUndoArchive& ar)
//{
//	//----- _xZkqqHx_iDhCiDiFiBfLiCmMjFnCiPfHiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDpMjHmNiClHiCoJ_xHqqkZx_ -----
//	// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
//	DWORD dwSize;
//	ar >> dwSize;
//	BYTEVector vStream(dwSize);
//	ar.Read(vStream.begin(), dwSize);
//	const BYTE* pStreamHead = vStream.begin();
//	while (pStreamHead != vStream.end())
//	{
//		BYTE byType;
//		FFReadData(byType, pStreamHead);
//		switch (byType)
//		{
//		case FDGLST_ZOOM:		// _xZkqqHx_jEhLjHkGiBeC_xHqqkZx_
//			FFReadData(g_->lZoom256, pStreamHead);
//			// g_->lZoom256 _xZkqqHx_iCkJiCoH_xHqqkZx_ g_->dZoom _xZkqqHx_iCpAiOfKiPgPiBeC_xHqqkZx_
//			g_->dZoom = ((double)g_->lZoom256 * g_->dDisplayPPM) / 256.0;
//			break;
//		case FDGLST_VIEW_POSITION:		// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDeJiDhEiDfKiDgCiDgHiBeC_xHqqkZx_
//		  {
//			SheetID stid;
//			short nMMX, nMMY;
//			FFReadData(stid, pStreamHead);
//			FFReadData(nMMX, pStreamHead);
//			FFReadData(nMMY, pStreamHead);
//			// _xZkqqHx_jCiGjAfDiImKjChFjAnNjCoIiCmMiDiBiDgCiDfKiBfLiDfHiCpAiDhMiDfIiDgHiBeCjChIiJiEjFgAiJoGiClDiClJiCoJiClNiCnPiBeC_xHqqkZx_
////----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////			FFGetMainWnd()->PostMessage(WM_USER_SET_SHEET_AND_CENTER,
////									WPARAM(stid), MAKELPARAM(nMMX, nMMY));
////----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//			// _xZkqqHx_iDgGiBfLiDfOjHmMiIoGiCpAiKgNjFnLiBeC_xHqqkZx_
//			DWORD dwSCPosSz;
//			FCSheetCanvasPos* pSCPos = FCSheetCanvasPos::Allocate(
//											dwSCPosSz, TRUE, 256,
//											stid, nMMX, nMMY);
//			// _xZkqqHx_jBiKiOoIjAoGiDeBiDhGiDiKiCmJiDfGiBfLiDgH_xHqqkZx_/_xZkqqHx_jFfMiOkGiNmAjFfHiInKjDkOiDiBiDgCiDfKiBfLiDfHiCpAjBjHjFhEiBeC_xHqqkZx_
//			FFGetMainWnd()->PostMessage(WM_USER_SET_SHEET_AND_CENTER_L,
//								  dwSCPosSz, LPARAM(pSCPos));
////----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//			break;
//		  }
//		default:
//			// _xZkqqHx_iDhEiDeAiDeDiDiLiCkKjEgKjBlJiClFiCmEiCkCiCnMiClHiBeC_xHqqkZx_
//			throw new CFCDDFileException(IDS_ERR_FILE_DESTROIED, TStrToWStr(ar.GetFile()->GetFileName()));
//		}
//	}
//} // CFCDynamicDrawView::InStreamViewStat.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SkipStreamViewStat
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiCmMjFnCiPfHiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::SkipStreamViewStat (FCUndoArchive& ar)
//{
//	//----- _xZkqqHx_iDhCiDiFiBfLiCmMjFnCiPfHiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDpMjHmNiClHiCoJ_xHqqkZx_ -----
//	WORD wDataSize;
//	BYTEVector vbyBuff;
//	// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
//	ar >> wDataSize;
//	vbyBuff.assign(wDataSize);
//	ar.Read(vbyBuff.begin(), wDataSize);
//} // CFCDynamicDrawView::SkipStreamViewStat.
//----- 02.12.11 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawView _xZkqqHx_iDeOiDiJiDfIiCmMjFgAiJoG_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnDraw
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJoGjGmKiCmMjFfMiOkGiBeFiDhGiDiKiDjDiDfOiCmMiIpDiNpMiBeF_xHqqkZx_OLE_xZkqqHx_iCmMiJoGjGmKiDgGiBfLiDfOiCmMiNoMjAkMjDjJ_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDC	:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfI_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.08 Fukushiro M. _xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJiKnGiClFiCmEiPeDjAlDiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnDraw (CDC* pDC)
{
//----------<NOT EXPORT TO VIEWER>-----------
//----- 02.08.24 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (_xZkqqHx_jBfDiJoGjGmKiDeHiDgGiDeCiDfOiCmMiPoKiNiHiCmNiBeBiNmEjFfMiOkGiCmNjFhDjHhGiBeC_xHqqkZx_)-----
	if (GetRTFEditor()->IsWindowVisible() && GetRTFEditor()->IsFullScreenEditMode())
	//----- _xZkqqHx_jBfDiJoGjGmKiDeHiDgGiDeCiDfOiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jBfDiJoGjGmKiDeHiDgGiDeCiDfOiCmMiPoKiNiHiCmNiBeBjFjEjFgJiCmMiNmEjFfMiOkGiCmNjFhDjHhGiBeC_xHqqkZx_
		//----- _xZkqqHx_jEhHiMgJiCpAjEjCiCmFjDgIjCnHiClH_xHqqkZx_ -----
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjIfPjHjNiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
		CRect lgrtClient;
		GetClientRect(lgrtClient);
		pDC->FillRect(lgrtClient,
					CBrush::FromHandle((HBRUSH)GetStockObject(WHITE_BRUSH)));
		return;
	}
//----- 02.08.24 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (_xZkqqHx_jBfDiJoGjGmKiDeHiDgGiDeCiDfOiCmMiPoKiNiHiCmNiBeBiNmEjFfMiOkGiCmNjFhDjHhGiBeC_xHqqkZx_)-----
//----------</NOT EXPORT TO VIEWER>-----------

	// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiCmJiDgGiDeCiDfIiDhGiDiMiDeDjFgAiJoGiCpAjAnNjCoIiBeC_xHqqkZx_
	const FCAutoBackup<FTDrawWhich> backupDrawWhich(g_->eDrawWhich, FDDR_DISPLAY);

	// _xZkqqHx_iDfIiDfOiDgCiDeOiCmJiPpDjBnEiPoOjFpBiCpAjBnCjEpAiBeC_xHqqkZx_
	pDC->SaveDC();

	// _xZkqqHx_iDhFiDiJiDfGiCmMjFgAiCkLiOgOiCnPiKoOiPiAiImKjChFiCmJ_xHqqkZx_ (-g_->lgOffsetX, -g_->lgOffsetY)_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
	// _xZkqqHx_jFjEjFgJiCmMiDhAiDfOiBfLiDjDiCmJjHjAiCoKiCpAjAlGiClGiClDiClJiCmIiCkCiCoGiCkEiCmJiClHiCoJiClNiCnPiBeC_xHqqkZx_
	pDC->SetBrushOrg(-g_->lgOffsetX, -g_->lgOffsetY);

	/////////////// _xZkqqHx_jFfMiOkG_xHqqkZx_/OLE_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ /////////////////
	//----- _xZkqqHx_iDhAiDiMiDgCiDgHiCkKiCkAiCoJiPoKiNiHiCmNiDhAiDiMiDgCiDgHiCpAiIoKiOjOjDeJiCmJjAnNjCoI_xHqqkZx_ -----
	CPalette* pOldPal;
	if (g_pFDPalette != NULL)
		pOldPal = pDC->SelectPalette(g_pFDPalette, TRUE);

	if (m_vmmrtRgn.empty())
	/***** _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCkKjAnIiCoHiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_      *****
	 *****  +_xZkqqHx_iPoDiCmJiCkAiCmBiClNiDeFiDeCiDjDiDgIiDeFiCkKiCmIiCkNiCmIiCmBiClNiPoKiNiH_xHqqkZx_. *****
	 *****  +_xZkqqHx_iDfIiDeOiDiNiBfLiDiLiClFiClNiPoKiNiH_xHqqkZx_.                   *****/
	{
		CRect lgrtClip;
		// CDC_xZkqqHx_iCmMiDeOiDiKiDgCiDhGiDhLiDgCiDeOiDfIiCpAjDlOiCoJiBeC_xHqqkZx_lgrtClip_xZkqqHx_iCmNjIfPjHjNiNmAjFfHiMgOiBeC_xHqqkZx_
		pDC->GetClipBox(lgrtClip);
		DPtoLP(lgrtClip);
		// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjHmMiIoGjCmHiJmBiBeC_xHqqkZx_
		AddRgn(lgrtClip);
	} else
	/***** _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCkKjAnIiCoHiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ *****
	 *****  +_xZkqqHx_jFjEjFgJiCkKiInKjDkOiClFiClNiPoKiNiH_xHqqkZx_.            *****/
	{
		CRgn rgn1;
		CRgn rgn2;
		//----- _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCkJiCoH_xHqqkZx_CDC_xZkqqHx_iCmMiDiKiBfLiDfHiDiHiDjDiCpAiNoMjAkM_xHqqkZx_ -----
		rgn1.CreateRectRgn(0,0,0,0);
		DBLRectVector::const_iterator iR;
		for (iR = m_vmmrtRgn.begin(); iR != m_vmmrtRgn.end(); iR++)
		{
//----- 06.03.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
			CRect lgrtRgn = mm2lg(*iR);
			// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMiNmAjFfHiMgOiCpAjIfPjHjNiNmAjFfHiCkJiCoHiDgGiDgPiDeDiDfIiNmAjFfHiCnGiBeC_xHqqkZx_
			LPtoDP(lgrtRgn, pDC);
			lgrtRgn.NormalizeRect();
//----- 06.03.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//----- 06.03.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//			if (iR->right < iR->left)
//			//----- _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiOhHjCoIiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				GetClientRectLG(lgrtRgn);
//				*iR = lg2mm(lgrtRgn);
//			} else
//			//----- _xZkqqHx_jCmKiPoNiCmMiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiOhHjCoIiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				lgrtRgn = mm2lg(*iR);
//			}
//			// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMiNmAjFfHiMgOiCpAjIfPjHjNiNmAjFfHiCkJiCoHiDgGiDgPiDeDiDfIiNmAjFfHiCnGiBeC_xHqqkZx_
//			LPtoDP(lgrtRgn, pDC);
//			lgrtRgn.NormalizeRect();
//----- 06.03.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 06.03.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
			//----- _xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCpAiCgOiChBiCmFjCmHiJmBiClHiCoJ_xHqqkZx_ -----
//----- 02.07.21 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ (A3_xZkqqHx_iJkBjClH_xHqqkZx_,_xZkqqHx_jHfNjEjC_xHqqkZx_0_xZkqqHx_iCmJjAnNjCoIiClFiBeBjHhAiOiGiCkCiCmBiCmPiCkCiCmJjBoFiCkLiCkCiOgMiKhAiCmFjFfMiOkGiCkKjHjAiCoKiCoJ_xHqqkZx_)-----
//			rgn2.CreateRectRgn(lgrtRgn.left, lgrtRgn.top,
//								lgrtRgn.right, lgrtRgn.bottom);
//----- 02.07.21 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ (A3_xZkqqHx_iJkBjClH_xHqqkZx_,_xZkqqHx_jHfNjEjC_xHqqkZx_0_xZkqqHx_iCmJjAnNjCoIiClFiBeBjHhAiOiGiCkCiCmBiCmPiCkCiCmJjBoFiCkLiCkCiOgMiKhAiCmFjFfMiOkGiCkKjHjAiCoKiCoJ_xHqqkZx_)-----
			rgn2.CreateRectRgn(FFLimitCoord(lgrtRgn.left), FFLimitCoord(lgrtRgn.top),
								FFLimitCoord(lgrtRgn.right), FFLimitCoord(lgrtRgn.bottom));
//----- 02.07.21 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ (A3_xZkqqHx_iJkBjClH_xHqqkZx_,_xZkqqHx_jHfNjEjC_xHqqkZx_0_xZkqqHx_iCmJjAnNjCoIiClFiBeBjHhAiOiGiCkCiCmBiCmPiCkCiCmJjBoFiCkLiCkCiOgMiKhAiCmFjFfMiOkGiCkKjHjAiCoKiCoJ_xHqqkZx_)-----
			rgn1.CombineRgn(&rgn1, &rgn2, RGN_OR);
			rgn2.DeleteObject();
		}
		// CDC_xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCpAjAnNjCoI_xHqqkZx_.
		pDC->SelectClipRgn(&rgn1);
	}

	// _xZkqqHx_jEhHiMgJiCpAjDgIjCnHiClHiBeC_xHqqkZx_
	DrawBack(pDC);
	// _xZkqqHx_iDePiDiKiDgCiDgIiCpAjFgAiJoGiBeC_xHqqkZx_
	DrawGrid(pDC);
	// _xZkqqHx_iDhJiBfLiDfHiLkLiKeFjApMiCpAjFgAiJoGiBeC_xHqqkZx_
	DrawPageLine(pDC);

	// _xZkqqHx_jHjKjHpAjFlGiPjBiCmMjAfGiLeLiNoMjAkMiOjOiCmIiCmHiBeB_xHqqkZx_g_pDoc=NULL_xZkqqHx_iCmMiNnLiCmJiBeBiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClFiClNiCoI_xHqqkZx_
	// _xZkqqHx_iClHiCoJiCmGiBeB_xHqqkZx_OnDraw _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCmEiClFiCnMiCkEiBeCiClBiCmMiClNiCnPiBeB_xHqqkZx_g_pDoc!=NULL_xZkqqHx_iCpAiDgAiDeGiDgCiDeOiClHiCoJiBeC_xHqqkZx_
	if (g_pDoc != NULL)
	//----- _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkK_xHqqkZx_NULL_xZkqqHx_iCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDeHiDgGiDeCiDfOjDjJiCmMiDgIiDeMiDiFiDiBiDjDiDgHiCmMjDmBjFmKiCmIjEhHiMgJjFgAiJoGiBeC_xHqqkZx_
		g_pDoc->OnDrawBackView(pDC);

		// _xZkqqHx_jFfMiOkGjHhAiChJiDeJiBfLiDfPiBfLiCpAiOoGjDlOiBeC_xHqqkZx_
		FCZOrder zOrder;
		g_pDoc->GetZOrder(zOrder, FDOZ_ON_DRAW, 0, g_pDoc->GetCurrentLayerIdx());
		FCZOrderIterator iObj;
		for (zOrder.Begin(iObj); !iObj.IsEnd(); iObj++)
		{
			DBLRectVector::iterator iR;
			for (iR = m_vmmrtRgn.begin(); iR != m_vmmrtRgn.end(); iR++)
			{
				// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
				if (!(*iR & (*iObj)->GetOuterFrame()).IsRectNull())
				{
					(*iObj)->OnDraw(pDC, FALSE);
					break;
				}
			}
		}
//----- 05.08.29 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMjDmBjFmKiCmIjBePiMgJjFgAiJoGiBeC_xHqqkZx_
		g_pDoc->OnDrawFrontView(pDC);
//----- 05.08.29 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		// _xZkqqHx_iDgDiBfLiDiLiCmMjFgAiJoG_xHqqkZx_(_xZkqqHx_jBeJjBpAiDhNiBfLiDeOjDjJ_xHqqkZx_)
// 05.07.25 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//		GetCurrentTool()->OnDraw(pDC, m_vmmrtRgn.begin(), m_vmmrtRgn.size());
		GetCurrentTool()->OnDraw(pDC);
	}
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	ClearRgn();
	//----- _xZkqqHx_iDhAiDiMiDgCiDgHiCpAjGnPiClH_xHqqkZx_ -----
	if (g_pFDPalette != NULL)
		pDC->SelectPalette(pOldPal, TRUE);
	// _xZkqqHx_jBnCjEpAiClFiClNiPoOjFpBiCpAjFjMiLeB_xHqqkZx_.
	pDC->RestoreDC(-1);
//----- 03.07.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgGiDeCiDfIiDhGiDiMiDeDjFgAiJoGiPeJjHlJiClFiBeBiMlDiCmJjGnPiClHiBeC_xHqqkZx_
//	g_->eDrawWhich = eDrawWhichBack;
//----- 03.07.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::OnDraw.

void CFCDynamicDrawView::OnInitialUpdate ()
{
	BASE_CLASS::OnInitialUpdate();

	// _xZkqqHx_iClBiClBiCmJiLeMiPhBiBeC_xHqqkZx_
} // CFCDynamicDrawView::OnInitialUpdate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj		:_xZkqqHx_jFjEjFgJiBeC_xHqqkZx_
 *			bDrawMark	:_xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFfMiOkGiClHiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.24 Fukushiro M. _xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendSelectObj (FCObjDynabase* pObj, BOOL bDrawMark)
{
	if (bDrawMark)
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		CClientDC dc(this);
		OnPrepareDC(&dc, NULL);
		AppendSelectOneObj(pObj, &dc);
	} else
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		AppendSelectOneObj(pObj, NULL);
	}
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
//	FFGetMainWnd()->PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::AppendSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_jBeJjBpAiPpDjBnEiCmJiClHiCoJjFjEjFgJiBeC_xHqqkZx_
 *			pDC		:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeCjFgAiJoGiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendSelectObj (FCObjDynabase* pObj, CDC* pDC)
{
	AppendSelectOneObj(pObj, pDC);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
//	FFGetMainWnd()->PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::AppendSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vObj		:_xZkqqHx_jFjEjFgJiCmMiPfHiNiHiBeC_xHqqkZx_
 *			bDrawMark	:_xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFfMiOkGiClHiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.24 Fukushiro M. _xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendSelectObj (const ObjDynabaseVector& vObj, BOOL bDrawMark)
{
	ObjDynabaseVector::const_iterator iObj;
	if (bDrawMark)
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		CClientDC dc(this);
		OnPrepareDC(&dc, NULL);
		for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
			AppendSelectOneObj(*iObj, &dc);
	} else
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
			AppendSelectOneObj(*iObj, NULL);
	}
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
//	FFGetMainWnd()->PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::AppendSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vObj	:_xZkqqHx_jFjEjFgJiCmMiPfHiNiHiBeC_xHqqkZx_
 *			pDC		:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeCjFgAiJoGiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.24 Fukushiro M. _xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendSelectObj (const ObjDynabaseVector& vObj, CDC* pDC)
{
	ObjDynabaseVector::const_iterator iObj;
	for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
		AppendSelectOneObj(*iObj, pDC);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
//	FFGetMainWnd()->PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::AppendSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vObjID	:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmMiPfHiNiHiBeC_xHqqkZx_
 *			pDC		:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeCjFgAiJoGiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.07 Fukushiro M. _xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendSelectObj (const DWORDVector& vObjID, CDC* pDC)
{
	DWORDVector::const_iterator iOid;
	for (iOid = vObjID.begin(); iOid != vObjID.end(); iOid++)
		AppendSelectOneObj(g_pDoc->ObjID2Object(*iOid), pDC);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
//	FFGetMainWnd()->PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::AppendSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	stObjID	:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmMiPfHiNiHiBeC_xHqqkZx_
 *			bDrawMark	:_xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFfMiOkGiClHiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.29 Fukushiro M. _xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendSelectObj (const DWORDSet& stObjID, BOOL bDrawMark)
{
	if (bDrawMark)
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		CClientDC dc(this);
		OnPrepareDC(&dc, NULL);
		AppendSelectObj(stObjID, &dc);
	} else
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		AppendSelectObj(stObjID, (CDC*)NULL);
	}
} // CFCDynamicDrawView::AppendSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	stObjID	:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmMiPfHiNiHiBeC_xHqqkZx_
 *			pDC		:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeCjFgAiJoGiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.29 Fukushiro M. _xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendSelectObj (const DWORDSet& stObjID, CDC* pDC)
{
	DWORDSet::const_iterator iOid;
	for (iOid = stObjID.begin(); iOid != stObjID.end(); iOid++)
		AppendSelectOneObj(g_pDoc->ObjID2Object(*iOid), pDC);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
//	FFGetMainWnd()->PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::AppendSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::RemoveSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjEpBjBeJjBpAiPpDjBnEiCmJiClHiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj		:_xZkqqHx_jFjEjFgJiBeC_xHqqkZx_
 *			bDrawMark	:_xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFfMiOkGiClHiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.24 Fukushiro M. _xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::RemoveSelectObj (FCObjDynabase* pObj, BOOL bDrawMark)
{
	if (bDrawMark)
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		CClientDC dc(this);
		OnPrepareDC(&dc, NULL);
		RemoveSelectObj(pObj, &dc);
	} else
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		RemoveSelectObj(pObj, NULL);
	}
} // CFCDynamicDrawView::RemoveSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::RemoveSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjEpBjBeJjBpAiPpDjBnEiCmJiClHiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_jFjEjFgJiBeC_xHqqkZx_
 *			pDC		:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeCjFgAiJoGiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::RemoveSelectObj (FCObjDynabase* pObj, CDC* pDC)
{
	// _xZkqqHx_jBeJjBpAiClFiClNjFjEjFgJiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
	RemoveSelectOneObj(pObj, pDC);
	// _xZkqqHx_iDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiDhEiDiJiDePiCmMiNfIjAfGiBeC_xHqqkZx_
	CheckSelectObjLayer();
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
//	FFGetMainWnd()->PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::RemoveSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::RemoveSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjBeJjBpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vObj	:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmMiPfHiNiHiBeC_xHqqkZx_
 *			pDC		:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeCjFgAiJoGiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::RemoveSelectObj (const ObjDynabaseVector& vObj, CDC* pDC)
{
	ObjDynabaseVector::const_iterator iObj;
	for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
		RemoveSelectOneObj(*iObj, pDC);
	// _xZkqqHx_iDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiDhEiDiJiDePiCmMiNfIjAfGiBeC_xHqqkZx_
	CheckSelectObjLayer();
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
//	FFGetMainWnd()->PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::RemoveSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::ClearSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiPpDjBnEiCmMjBfDiCmEiCmMjFjEjFgJiCpAjEpBjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bDrawMark	:_xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFfMiOkGiClHiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.24 Fukushiro M. _xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::ClearSelectObj (BOOL bDrawMark)
{
	if (bDrawMark)
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		CClientDC dc(this);
		OnPrepareDC(&dc, NULL);
		ClearSelectObj(&dc);
	} else
	//----- _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		ClearSelectObj((CDC*)NULL);
	}
} // CFCDynamicDrawView::ClearSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::ClearSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiPpDjBnEiCmMjBfDiCmEiCmMjFjEjFgJiCpAjEpBjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDC		:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeCjFgAiJoGiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::ClearSelectObj (CDC* pDC)
{
//----- 01.03.09 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iKpJiCmJiLpDiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
	if (m_vSelectObj.empty()) return;
//----- 01.03.09 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDgDiBfLiDiLiCmJjBeJjBpAiJpAiPjMiCpAjCmKjCgNiBeC_xHqqkZx_
	GetCurrentTool()->OnClearSelectObj(pDC);

//----- 06.03.01 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDgFiDeMiDfIiDgHiCmMjBeJjBpAiCpAiJpAiPjMiBeC_xHqqkZx_
	mdef_iterator(ObjDynabaseVector, iObj);
	m1_for (iObj, m_vSelectObj)
		(*iObj)->ClearTextSelection(NULL);
//----- 06.03.01 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// View_xZkqqHx_iCmMjBeJjBpAjFjEjFgJiCpAiJpAiPjMiBeC_xHqqkZx_
	m_vSelectObj.clear();
	// _xZkqqHx_iNmFiMoDiCmJjCmHiJmBiClDiCoKiClNjFjEjFgJiCpAiJpAiPjMiBeC_xHqqkZx_
	m_pLastSelectObj = NULL;
//----- 00.12.22 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiDhEiDiJiDePiBeC_xHqqkZx_
	m_wSelObjLayerFlag = WORD(-1);
	// _xZkqqHx_iDhCiDiFiBfLiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
	PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::ClearSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::IsSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCkKjBeJjBpAiPpDjBnEiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pOjb	:_xZkqqHx_jFjEjFgJ_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	:_xZkqqHx_jBeJjBpAiPpDjBnE_xHqqkZx_
 *			FALSE	:_xZkqqHx_jEpBjBeJjBpAiPpDjBnE_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::IsSelectObj (FCObjDynabase* pObj) const
{
	/*----- _xZkqqHx_iKpJiCmJjBeJjBpAiNmPiCnNiCmIiCoHiCmOjAfO_xHqqkZx_ -----*/
	if (m_vSelectObj.end() !=
		find(m_vSelectObj.begin(), m_vSelectObj.end(), pObj)) return TRUE;
	return FALSE;
} // CFCDynamicDrawView::IsSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SelectObjVector
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiCmMiPfHiNiHiCpAjFnEiClH_xHqqkZx_.
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiCmMiPfHiNiH_xHqqkZx_
 *************************************************************************/
const ObjDynabaseVector& CFCDynamicDrawView::SelectObjVector () const
{
	return m_vSelectObj;
} // CFCDynamicDrawView::SelectObjVector.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetLastSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNmFiMoDiCmJjBeJjBpAiClDiCoKiClNjFjEjFgJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iNmFiMoDiCmJjBeJjBpAiClDiCoKiClNjFjEjFgJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jFjEjFgJjAkOjHpBiCmMiKoOiPiAiCmJiOgHiCoNiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCObjDynabase* CFCDynamicDrawView::GetLastSelectObj ()
{
	return m_pLastSelectObj;
} // CFCDynamicDrawView::GetLastSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetLastSelectObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNmFiMoDiCmJjBeJjBpAiClDiCoKiClNjFjEjFgJiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_iNmFiMoDiCmJjBeJjBpAiClDiCoKiClNjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetLastSelectObj (FCObjDynabase* pObj)
{
	if (IsSelectObj(pObj))
		m_pLastSelectObj = pObj;
} // CFCDynamicDrawView::SetLastSelectObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetSelectObjectId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiClDiCoKiCmEiCkCiCoJjFjEjFgJiCmMiCgIiCgDiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	stObjId	:_xZkqqHx_jFjEjFgJiCgIiCgDiPfHiNiHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::GetSelectObjectId (DWORDSet& stObjId) const
{
	ObjDynabaseVector::const_iterator iObj;
	for (iObj = SelectObjVector().begin();
		 iObj != SelectObjVector().end(); iObj++)
		stObjId.insert((*iObj)->GetObjID());
} // CFCDynamicDrawView::GetSelectObjectId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetTextSelectedObjectId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiCkKjBeJjBpAiClDiCoKiCmEiCkCiCoJjFjEjFgJiCmMiPfHiNiHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	stObjId	:_xZkqqHx_iDgFiDeMiDfIiDgHiCkKjBeJjBpAiClDiCoKiCmEiCkCiCoJjFjEjFgJiCmMiPfHiNiHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	stObjId_xZkqqHx_iCmJiCmNiBeBjClMiJlKiCmJ_xHqqkZx_RichText_xZkqqHx_iCpAiOjNiCmCjFjEjFgJiCkKjAnNjCoIiClDiCoKiCoJiBeCiDgHiDgCiDhGjFjEjFgJ_xHqqkZx_
 *			_xZkqqHx_iCmGiCmNiMmAiCoHiCmIiCkCiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::GetTextSelectedObjectId (DWORDSet& stObjId) const
{
	stObjId.clear();
	map<DWORD, longRangeVector>::const_iterator iIdRange;
	for (iIdRange = m_mpObjIdToCharSelect.begin();
		 iIdRange != m_mpObjIdToCharSelect.end(); iIdRange++)
		stObjId.insert(iIdRange->first);
} // CFCDynamicDrawView::GetTextSelectedObjectId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetTextSelection
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiCmMjBeJjBpAjEmNiImNiCpAjEhKjHpBiCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vCharSelectRange:_xZkqqHx_iDgFiDeMiDfIiDgHjBeJjBpAjEmNiImNiCmMjEhKjHpBiCpAjFnEiClHiBeC_xHqqkZx_
 *			dwObjId			:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::GetTextSelection (longRangeVector& vCharSelectRange, DWORD dwObjId) const
{
	// ID->_xZkqqHx_jFlGiOjKjBeJjBpAiDgFiBfLiDhFiDiLiBeC_xHqqkZx_
	map<DWORD, longRangeVector>::const_iterator iIdRange = m_mpObjIdToCharSelect.find(dwObjId);
	if (iIdRange != m_mpObjIdToCharSelect.end())
		vCharSelectRange = iIdRange->second;
	else
		vCharSelectRange.clear();
} // CFCDynamicDrawView::GetTextSelection.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendTextSelection
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiCmMjFjEjFkKjBeJjBpAiCpAjCmHiJmBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwObjId		:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			lSelBegin	:_xZkqqHx_jBeJjBpAjEmNiImNiCmMiNmFiPiJiCmMjFlGiOjKiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lSelEnd		:_xZkqqHx_jBeJjBpAjEmNiImNiCmMiNmFiMoDiCmMjFlGiOjKiCmMiOjPiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jBeJjBpAiClDiCoKiCoJjEmNiImNiCmNiBeB_xHqqkZx_[lSelBegin, lSelEnd)_xZkqqHx_iCmMjFlGiOjKiCmFiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iNmEjFgAiJoGiCmNiClFiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendTextSelection (DWORD dwObjId, DWORD lSelBegin, DWORD lSelEnd)
{
	// _xZkqqHx_iCnMiClIiBeBjBeJjBpAjEmNiImNiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAjBfDiCmE_xHqqkZx_ longSet _xZkqqHx_iCmJiOpLiCnPiCoJiBeC_xHqqkZx_
	longRangeVector vCharSelectRange;
	GetTextSelection(vCharSelectRange, dwObjId);
	long lC;
	longSet stSelIndex;
	mdef_const_iterator(longRangeVector, iRange);
	m1_for (iRange, vCharSelectRange)
	{
		for (lC = iRange->lFrom; lC != iRange->lTo; lC++)
			stSelIndex.insert(lC);
	}
	for (lC = lSelBegin; lC != lSelEnd; lC++)
		stSelIndex.insert(lC);

	// _xZkqqHx_jBeJjBpAjEmNiImNiCmMiLeMjIfOjFmPjAjEiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	vCharSelectRange.clear();
	if (!stSelIndex.empty())
	//----- _xZkqqHx_jBeJjBpAjEmNiImNiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// longSet_xZkqqHx_jFmPjAjE_xHqqkZx_ stSelIndex _xZkqqHx_iCpAiPiHjEnEiCmJiOoGiCoIiPgPiClFiCmEiBeB_xHqqkZx_
		// _xZkqqHx_jIeBjBlBiClFiCmIiCkCjFjEjFkKiCkKiCkAiCoKiCmOiBeBiClLiClBiCnMiCmFiCmMjEmNiImNiCpA_xHqqkZx_
		// vCharSelectRange_xZkqqHx_jFmPjAjEiCmJjCmHiJmBiClHiCoJiBeC_xHqqkZx_
		longSet::const_iterator iIdx = stSelIndex.begin();
		long lBeginIdx = *iIdx;
		long lPrevIdx = *iIdx;
		for (iIdx++; iIdx != stSelIndex.end(); iIdx++)
		{
			if (*iIdx != lPrevIdx + 1)
			{
				vCharSelectRange.push_back(FClongRange(lBeginIdx, lPrevIdx + 1));
				lBeginIdx = *iIdx;
			}
			lPrevIdx = *iIdx;
		}
		vCharSelectRange.push_back(FClongRange(lBeginIdx, lPrevIdx + 1));
	}
	// _xZkqqHx_jBeJjBpAjEmNiImNiCpAjAnNjCoIiBeC_xHqqkZx_
	m_mpObjIdToCharSelect[dwObjId] = vCharSelectRange;
} // CFCDynamicDrawView::AppendTextSelection.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::ClearTextSelection
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNjFjEjFgJiCmMiDgFiDeMiDfIiDgHjBeJjBpAiCpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwObjId		:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iNmEjFgAiJoGiCmNiClFiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::ClearTextSelection (DWORD dwObjId)
{
	// _xZkqqHx_jBeJjBpAjEmNiImNiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	m_mpObjIdToCharSelect.erase(dwObjId);
} // CFCDynamicDrawView::ClearTextSelection.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::LPtoDP
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jIfPjHjNiNmAjFfHiMgOiCpAiDgGiDgPiDeDiDfIiNmAjFfHiMgOiCmJjFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lgpt	:_xZkqqHx_jFmPiKlHiClHiCoJ_xHqqkZx_CPoint_xZkqqHx_iNfMjBkCjBmMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.01.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			00.08.27 Fukushiro M. pDC_xZkqqHx_iIpIjAjEiCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::LPtoDP (CPoint& lgpt, CDC* pDC) const
{
	lgpt -= CSize(g_->lgOffsetX, g_->lgOffsetY);
	// CDC_xZkqqHx_iCmJiDfJiBfLiDiA_xHqqkZx_(SetViewportExt,etc)_xZkqqHx_jDjJiCmMjFmPiKlHiCkKiCkAiCoJiPoKiNiHiCmMjFmPiKlHiBeC_xHqqkZx_
	if (pDC != NULL) pDC->LPtoDP(&lgpt);
} // CFCDynamicDrawView::LPtoDP.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::LPtoDP
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jIfPjHjNiNmAjFfHiMgOiCpAiDgGiDgPiDeDiDfIiNmAjFfHiMgOiCmJjFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lgrt	:_xZkqqHx_jFmPiKlHiClHiCoJ_xHqqkZx_CRect_xZkqqHx_iNfMjBkCjBmM_xHqqkZx_.
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.01.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			00.08.27 Fukushiro M. pDC_xZkqqHx_iIpIjAjEiCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::LPtoDP (CRect& lgrt, CDC* pDC) const
{
	lgrt -= CPoint(g_->lgOffsetX, g_->lgOffsetY);
	// CDC_xZkqqHx_iCmJiDfJiBfLiDiA_xHqqkZx_(SetViewportExt,etc)_xZkqqHx_jDjJiCmMjFmPiKlHiCkKiCkAiCoJiPoKiNiHiCmMjFmPiKlHiBeC_xHqqkZx_
	if (pDC != NULL) pDC->LPtoDP(lgrt);
} // CFCDynamicDrawView::LPtoDP.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::LPtoDP
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jIfPjHjNiNmAjFfHiMgOiCpAiDgGiDgPiDeDiDfIiNmAjFfHiMgOiCmJjFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpPoints	:_xZkqqHx_jFmPiKlHiClHiCoJ_xHqqkZx_POINT_xZkqqHx_iNfMjBkCjBmMiCmMjEhKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lCount		:lpPoints_xZkqqHx_iCmMjEhKjHpBiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			00.08.27 Fukushiro M. pDC_xZkqqHx_iIpIjAjEiCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::LPtoDP (LPPOINT lpPoints, long lCount, CDC* pDC) const
{
	for (long lC = 0; lC < lCount; lC++)
	{
		lpPoints[lC].x -= g_->lgOffsetX;
		lpPoints[lC].y -= g_->lgOffsetY;
	}
	// CDC_xZkqqHx_iCmJiDfJiBfLiDiA_xHqqkZx_(SetViewportExt,etc)_xZkqqHx_jDjJiCmMjFmPiKlHiCkKiCkAiCoJiPoKiNiHiCmMjFmPiKlHiBeC_xHqqkZx_
	if (pDC != NULL) pDC->LPtoDP(lpPoints, lCount);
} // CFCDynamicDrawView::LPtoDP.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::DPtoLP
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDgPiDeDiDfIiNmAjFfHiMgOiCpAjIfPjHjNiNmAjFfHiMgOiCmJjFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dvpt	:_xZkqqHx_jFmPiKlHiClHiCoJ_xHqqkZx_CPoint_xZkqqHx_iNfMjBkCjBmMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.01.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			00.08.27 Fukushiro M. pDC_xZkqqHx_iIpIjAjEiCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::DPtoLP (CPoint& dvpt, CDC* pDC) const
{
	// CDC_xZkqqHx_iCmJiDfJiBfLiDiA_xHqqkZx_(SetViewportExt,etc)_xZkqqHx_jDjJiCmMjFmPiKlHiCkKiCkAiCoJiPoKiNiHiCmMjFmPiKlHiBeC_xHqqkZx_
	if (pDC != NULL) pDC->DPtoLP(&dvpt);
	dvpt += CSize(g_->lgOffsetX, g_->lgOffsetY);
} // CFCDynamicDrawView::DPtoLP.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::DPtoLP
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDgPiDeDiDfIiNmAjFfHiMgOiCpAjIfPjHjNiNmAjFfHiMgOiCmJjFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dvrt	:_xZkqqHx_jFmPiKlHiClHiCoJ_xHqqkZx_CRect_xZkqqHx_iNfMjBkCjBmM_xHqqkZx_.
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.01.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			00.08.27 Fukushiro M. pDC_xZkqqHx_iIpIjAjEiCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::DPtoLP (CRect& dvrt, CDC* pDC) const
{
	// CDC_xZkqqHx_iCmJiDfJiBfLiDiA_xHqqkZx_(SetViewportExt,etc)_xZkqqHx_jDjJiCmMjFmPiKlHiCkKiCkAiCoJiPoKiNiHiCmMjFmPiKlHiBeC_xHqqkZx_
	if (pDC != NULL) pDC->DPtoLP(dvrt);
	dvrt += CPoint(g_->lgOffsetX, g_->lgOffsetY);
} // CFCDynamicDrawView::DPtoLP.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AddRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAjCmHiJmBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lgrtClip :_xZkqqHx_jCmHiJmBiClHiCoJjHmMiIoGiBeCjIfPjHjNiNmAjFfHiMgO_xHqqkZx_.
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.12.28 Fukushiro M. _xZkqqHx_iJgFiCmMiDfEiDeDiDfJiCpAiNeMiClAiCoJiPiIjHjNiCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AddRgn (const CRect& lgrtClip)
{
	AddRgn(lg2mm(lgrtClip));
} // CFCDynamicDrawView::AddRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AddRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAjCmHiJmBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmrtClip :_xZkqqHx_jCmHiJmBiClHiCoJjHmMiIoGiBeCiOmAiNmAjFfHiMgOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.29 Fukushiro M. _xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AddRgn (const DBLRect& mmrtClip)
{
	DBLRect mmrt = mmrtClip;
	//----- _xZkqqHx_iJoGjGmKjHmMiIoGiCpA_xHqqkZx_AND -----
	DBLRect mmrtClient;
	GetClientRectMM(mmrtClient);
	mmrt &= mmrtClient;
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiBeCiOmAiNmAjFfHiMgOiBeC_xHqqkZx_
	m_vmmrtRgn.push_back(mmrt);
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiPfHiNiHiCmMiKePjAnKiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
	if (m_mmrtRgn.IsRectNull()) m_mmrtRgn = mmrt;
	else m_mmrtRgn |= mmrt;
} // CFCDynamicDrawView::AddRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AddRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjBoFiCkLiClDiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmGiClFiCmEjCmHiJmBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj :	_xZkqqHx_jCmHiJmBiClHiCoJjHmMiIoGiCpAiOjNiCmCjFjEjFgJiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AddRgn (const FCObjDynabase* pObj)
{
	// _xZkqqHx_jBeJjBpAiDhNiBfLiDeOjFjNjFkKiNeMiClAiClNiKePjAnKiDhEiDiMiBfLiDiAiCpAjCmHiJmBiClHiCoJiBeC_xHqqkZx_
	int lgSelW = FCEditDraw::GetSelMarkSizeHalf();
	if (lgSelW < FCEditDraw::GetGeneralMarkSizeHalf())
		lgSelW = FCEditDraw::GetGeneralMarkSizeHalf();
	AddRgn(pObj->GetOuterFrame().ExtendRect(lg2mm(lgSelW + 1)));
} // CFCDynamicDrawView::AddRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AddPrintRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iIpDiNpMjHhAiCmMiMmFjHeMiDiKiBfLiDfHiDiHiDjDjAnNjCoIiBeCiDiKiBfLiDfHiDiHiDjDiCmJiJoGjGmKjHmMiIoGiCpA_xHqqkZx_AND_xZkqqHx_iClFiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmrtClip	:_xZkqqHx_jAnNjCoIiClHiCoJiDiKiBfLiDfHiDiHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AddPrintRgn (const DBLRect& mmrtClip)
{
	DBLRect mmrt = mmrtClip;
//----- 05.05.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	if (0 <= g_pEnv->GetShadowLen().x)
//		mmrt.left -= g_pEnv->GetShadowLen().x;
//	else
//		mmrt.right -= g_pEnv->GetShadowLen().x;
//
//	if (0 <= g_pEnv->GetShadowLen().y)
//		mmrt.top -= g_pEnv->GetShadowLen().y;
//	else
//		mmrt.bottom -= g_pEnv->GetShadowLen().y;
//----- 05.05.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiBeCiOmAiNmAjFfHiMgOiBeC_xHqqkZx_
	m_vmmrtRgn.push_back(mmrt);
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiPfHiNiHiCmMiKePjAnKiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
	if (m_mmrtRgn.IsRectNull()) m_mmrtRgn = mmrt;
	else m_mmrtRgn |= mmrt;
} // CFCDynamicDrawView::AddPrintRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AddEmptyRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iLpDiCmMjBoFiCkLiClDiCmMiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAjCmHiJmBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	AppendToLastRgn_xZkqqHx_iCpAiMmEiCnEjBePiCmJiClBiCmMiKnGjAjEiCpAiOmAiNhDiClHiCoJiClBiCmGiCmFiBeBjAfGiClFiCkC_xHqqkZx_
 *			_xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCpAjAnNjCoIiClHiCoJiClBiCmGiCkKiCmFiCkLiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AddEmptyRgn ()
{
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiBeCiOmAiNmAjFfHiMgOiBeC_xHqqkZx_
	m_vmmrtRgn.push_back(DBLRect(0,0,0,0));
} // CFCDynamicDrawView::AddEmptyRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendToLastRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiDiKiDfIiDgHiCmMiNmFiMoDiCmMiDiKiBfLiDfHiDiHiDjDiCpAiBeBjAfGiClFiCkCiDeOiDiKiDgCiDhGiCmG_xHqqkZx_
 *			_xZkqqHx_iCgOiChBiMiLiNiHiClFiClNiCoAiCmMiCmJiPeDjAlDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lgrtClip	:_xZkqqHx_iMiLiNiHiClHiCoJiDeOiDiKiDgCiDhGjHmMiIoG_xHqqkZx_.
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	AddRgn_xZkqqHx_iCmFiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAjBjNiCoCiClHiCmGiBeBiNmEjFgAiJoGiOjOiCmJiDiKiBfLiDfHiDiHiDjDiMjPiNpFiCmM_xHqqkZx_
 *			_xZkqqHx_iClNiCnPjChIiCkNiCmIiCoJiCmMiCmFiBeBiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMjAjEiCpAjBjNiCoCiClDiCmIiCkCiCoGiCkEiCmJiClHiCoJiClNiCnPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			98.12.28 Fukushiro M. _xZkqqHx_iJgFiCmMiDfEiDeDiDfJiCpAiNeMiClAiCoJiPiIjHjNiCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendToLastRgn (const CRect& lgrtClip)
{
	AppendToLastRgn(lg2mm(lgrtClip));
} // CFCDynamicDrawView::AppendToLastRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendToLastRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiDiKiDfIiDgHiCmMiNmFiMoDiCmMiDiKiBfLiDfHiDiHiDjDiCpAiBeBjAfGiClFiCkCiDeOiDiKiDgCiDhGiCmG_xHqqkZx_
 *			_xZkqqHx_iCgOiChBiMiLiNiHiClFiClNiCoAiCmMiCmJiPeDjAlDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmrtClip	:_xZkqqHx_iMiLiNiHiClHiCoJiDeOiDiKiDgCiDhGjHmMiIoGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	AddRgn_xZkqqHx_iCmFiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAjBjNiCoCiClHiCmGiBeBiNmEjFgAiJoGiOjOiCmJiDiKiBfLiDfHiDiHiDjDiMjPiNpFiCmM_xHqqkZx_
 *			_xZkqqHx_iClNiCnPjChIiCkNiCmIiCoJiCmMiCmFiBeBiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMjAjEiCpAjBjNiCoCiClDiCmIiCkCiCoGiCkEiCmJiClHiCoJiClNiCnPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendToLastRgn (const DBLRect& mmrtClip)
{
	DBLRect mmrt = mmrtClip;
//----- 05.05.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	if (0 <= g_pEnv->GetShadowLen().x)
//		mmrt.left -= g_pEnv->GetShadowLen().x;
//	else
//		mmrt.right -= g_pEnv->GetShadowLen().x;
//
//	if (0 <= g_pEnv->GetShadowLen().y)
//		mmrt.top -= g_pEnv->GetShadowLen().y;
//	else
//		mmrt.bottom -= g_pEnv->GetShadowLen().y;
//----- 05.05.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 01.02.21 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	//----- _xZkqqHx_iJoGjGmKjHmMiIoGiCpA_xHqqkZx_AND -----
	DBLRect mmrtClient;
	GetClientRectMM(mmrtClient);
	mmrt &= mmrtClient;
//----- 01.02.21 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	if (m_vmmrtRgn.empty())
	{
		// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiBeCiOmAiNmAjFfHiMgOiBeC_xHqqkZx_
		m_vmmrtRgn.push_back(mmrt);
	} else
	{
		// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiBeCiOmAiNmAjFfHiMgOiBeC_xHqqkZx_
		m_vmmrtRgn.back() |= mmrt;
	}
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiPfHiNiHiCmMiKePjAnKiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
	if (m_mmrtRgn.IsRectNull()) m_mmrtRgn = mmrt;
	else m_mmrtRgn |= mmrt;
} // CFCDynamicDrawView::AppendToLastRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendToLastRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiDiKiDfIiDgHiCmMiNmFiMoDiCmMiDiKiBfLiDfHiDiHiDjDiCpAiBeBjAfGiClFiCkCiDeOiDiKiDgCiDhGiCmG_xHqqkZx_
 *			_xZkqqHx_iCgOiChBiMiLiNiHiClFiClNiCoAiCmMiCmJiPeDjAlDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_iMiLiNiHiClHiCoJiDeOiDiKiDgCiDhGjHmMiIoGiCpAiCoAiCmCjFjEjFgJ_xHqqkZx_.
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	AddRgn_xZkqqHx_iCmFiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAjBjNiCoCiClHiCmGiBeBiNmEjFgAiJoGiOjOiCmJiDiKiBfLiDfHiDiHiDjDiMjPiNpFiCmM_xHqqkZx_
 *			_xZkqqHx_iClNiCnPjChIiCkNiCmIiCoJiCmMiCmFiBeBiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMjAjEiCpAjBjNiCoCiClDiCmIiCkCiCoGiCkEiCmJiClHiCoJiClNiCnPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendToLastRgn (const FCObjDynabase* pObj)
{
	// _xZkqqHx_jBeJjBpAiDhNiBfLiDeOjFjNjFkKiNeMiClAiClNiKePjAnKiDhEiDiMiBfLiDiAiCpAjCmHiJmBiClHiCoJiBeC_xHqqkZx_
	AppendToLastRgn(pObj->GetOuterFrame().ExtendRect(lg2mm(FCEditDraw::GetGeneralMarkSizeHalf() + 1)));
} // CFCDynamicDrawView::AppendToLastRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendToLastRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNjFjEjFgJjBfDiCmEiCmMjHmMiIoGiCpAiBeBiMmFjHeMiDiKiBfLiDfHiDiHiDjDiDiKiDfIiDgHiCmM_xHqqkZx_
 *			_xZkqqHx_iNmFiMoDiCmMiDiKiBfLiDfHiDiHiDjDiCmJiCgOiChBiMiLiNiHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendToLastRgn (const ObjDynabaseVector& vObj)
{
	ObjDynabaseVector::const_iterator iObj;
	for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
		AppendToLastRgn(*iObj);
} // CFCDynamicDrawView::AppendToLastRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendToLastRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNjFjEjFgJjBfDiCmEiCmMjHmMiIoGiCpAiBeBiMmFjHeMiDiKiBfLiDfHiDiHiDjDiDiKiDfIiDgHiCmM_xHqqkZx_
 *			_xZkqqHx_iNmFiMoDiCmMiDiKiBfLiDfHiDiHiDjDiCmJiCgOiChBiMiLiNiHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendToLastRgn (const ObjDynabaseSet& stObj)
{
	ObjDynabaseSet::const_iterator iObj;
	for (iObj = stObj.begin(); iObj != stObj.end(); iObj++)
		AppendToLastRgn(*iObj);
} // CFCDynamicDrawView::AppendToLastRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetClientToRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiPmBiLiOiClFiBeBiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetClientToRgn ()
{
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiPmBiLiOiBeC_xHqqkZx_
	ClearRgn();
	CRect lgrtClient;
	GetClientRectLG(lgrtClient);
	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiBeC_xHqqkZx_
	AddRgn(lgrtClient);
//----- 06.03.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iClBiCmMiPoKiCmFiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiOoGjDlOiClFiCmEjAnNjCoIiClFiCmEiCkCiClNiCkKiBeB_xHqqkZx_
//	// DynamicDraw_xZkqqHx_iCmFiNmFjBoFiJlLiCmFiLeOjDkOiCmMiPoKiNiHiBeBiNmFjBoFiJlLjBePiCmMiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCkK_xHqqkZx_
//	// _xZkqqHx_jAnNjCoIiClDiCoKiCmEiBeBiClLiCmMiMoDiNmFjBoFiJlLiClFiCmEiNmEjFgAiJoGiCkKjBjGiCmBiCmEiCkCiClNiCmMiCmFiBeB_xHqqkZx_
//	// OnDraw_xZkqqHx_iOjOiCmJiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiOoGjDlOiClHiCoJiCoGiCkEiCmJjFmPiNfIiBeC_xHqqkZx_
//	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiPmBiLiOiBeC_xHqqkZx_
//	ClearRgn();
//	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiBeC_xHqqkZx_
//	m_vmmrtRgn.push_back(DBLRect(0,0,-1,-1));
//	// AppendToLastRgn_xZkqqHx_iCmF_xHqqkZx_OR_xZkqqHx_iClDiCoKiCoJiCmMiCpAjGgIiCkOiClNiCnPiCmJiLpDiDiKiBfLiDfHiDiHiDjDiCpAjBhNjDpMiBeC_xHqqkZx_
//	m_vmmrtRgn.push_back(DBLRect(0,0,0,0));
//	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiPfHiNiHiCmMiKePjAnKiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
//	m_mmrtRgn = g_pEnv->GetSheetRectEx();
//----- 06.03.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 06.03.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::SetClientToRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::ClearRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiPmBiLiOiClHiCoJiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::ClearRgn ()
{
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiBeCiOmAiNmAjFfHiMgOiBeC_xHqqkZx_
	m_vmmrtRgn.clear();
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiPfHiNiHiCmMiKePjAnKiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	m_mmrtRgn.SetRect(0,0,0,0);
} // CFCDynamicDrawView::ClearRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::IsRgnOverlap
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiLoJiMgAiCkKiCkCiClIiCoKiCkJiCmMiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJiPgEiCmIiCmBiCmEiCkCiCoKiCmO_xHqqkZx_
 *			_xZkqqHx_jAfOiCpAjFnEiClHiBeCiIoKiCmCiCoAiPgEiCmIiCmBiCmEiCkCiCmIiCkPiCoKiCmOiLfFiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmrt :_xZkqqHx_jClCiNlIiClHiCoJjHmMiIoGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.15 Fukushiro M. _xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiCmJ_xHqqkZx_
 *								  _xZkqqHx_jAfOiCpAjFnEiClHiCoGiCkEiCmJjFmPiNfIiBeC_xHqqkZx_RichText_xZkqqHx_iCmM_xHqqkZx_
 *								  MakeBitmap_xZkqqHx_iCmMiInHiBeC_xHqqkZx_
 *			99.08.05 Fukushiro M. _xZkqqHx_iOmAiNmAjFfHiMgOiCnGiBeC_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::IsRgnOverlap (const DBLRect& mmrt) const
{
	if (m_vmmrtRgn.empty()) return TRUE;
	DBLRectVector::const_iterator iR;
	for (iR = m_vmmrtRgn.begin(); iR != m_vmmrtRgn.end(); iR++)
	{
		// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
		if (!(*iR & mmrt).IsRectNull()) return TRUE;
	}
	return FALSE;
} // CFCDynamicDrawView::IsRgnOverlap.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SendRgnRedraw
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCpAjAnNjCoIiClFiClNiPoKiPiKiCmMiCnNiCpAiNmEjFgAiJoGiClHiCoJiBeCiDiKiBfLiDfHiDiHiDjDjAnNjCoI_xHqqkZx_
 *			_xZkqqHx_iCmNiBeB_xHqqkZx_AddRgn_xZkqqHx_iCmFiNhDiCkEiBeCiDiKiBfLiDfHiDiHiDjDiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiCmNiBeBiNmE_xHqqkZx_
 *			_xZkqqHx_jFgAiJoGiCpAiNhDiCoNiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bSetClientToRgn	:_xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiClHiCoJiCkJiBeI_xHqqkZx_
 *
//----- 03.07.19 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	: _xZkqqHx_jAlDiClFiCkNiNmEjFgAiJoGiClDiCoKiClNiCmGiCkL_xHqqkZx_
// *			FALSE	: _xZkqqHx_iNmEjFgAiJoGiClDiCoKiCmIiCkJiCmBiClNiCmGiCkL_xHqqkZx_
//----- 03.07.19 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.19 Fukushiro M. _xZkqqHx_iDfPiDeDiDeBiDiNiDePjFfMiOkGiMoDiCmMiDiKiBfLiDfHiDiHiDjDiNmEjFgAiJoGiCmM_xHqqkZx_
 *								_xZkqqHx_iPoKiNiHiBeBiCkEiCnMiCkNiCmFiCkLiCmIiCkCiCmMiCmJjBmOiPiIiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SendRgnRedraw (BOOL bSetClientToRgn)
{
	// DynamicDraw_xZkqqHx_iCmFiNmFjBoFiJlLiCmFiLeOjDkOiCmMiPoKiNiHiBeBjEpBjFfMiOkGiBjFiNmFjBoFiJlLjBePiCmM_xHqqkZx_
	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCkKjAnNjCoIiClDiCoKiCmEiBeBiClLiCmMiMoDiNmFjBoFiJlLiBjFjFfMiOkGiOjOiCmJ_xHqqkZx_
	// _xZkqqHx_iNmEjFgAiJoGiCkKjBjGiCmBiCmEiCkCiClNiCmMiCmFiBeBiDeFiDeCiDjDiDgIiDeFjFfMiOkGiOjOiCmMiCnN_xHqqkZx_
	// _xZkqqHx_jHmMiIoGjAnNjCoIiBjFiNmEjFgAiJoGiClHiCoJiCoGiCkEiCmJiClFiClNiBeC_xHqqkZx_
// 06.03.03 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	if (::IsWindow(m_hWnd) && IsWindowVisible())
	{
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiBeC_xHqqkZx_
		if (bSetClientToRgn) SetClientToRgn();
		SendMessage(WM_USER_RGN_REDRAW);
	}
} // CFCDynamicDrawView::SendRgnRedraw.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::PostRgnRedraw
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	RgnRedraw_xZkqqHx_iCpA_xHqqkZx_PostMessage_xZkqqHx_iCmFiOmAiNhDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bSetClientToRgn	:_xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiClHiCoJiCkJiBeI_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDePiDiLiBfLiDhGjFnCiPfHiDgDiBfLiDiLiCmF_xHqqkZx_FCObjPoint_xZkqqHx_iCpAjFfMiOkGiPpDjBnEiCmJiClHiCoJiClNiCnPiBeB_xHqqkZx_
 *			FCToolGroupSelect_xZkqqHx_iCmFjFjEjFgJjBeJjBpAiCmMiDfOiDeDiDhOiDjDiDePiCmFiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpA_xHqqkZx_
 *			_xZkqqHx_jCmHiJmBiClHiCoJiBeCiClBiCmMiOjOiBeBjBkGiOjOiNmEjFgAiJoGiCmNiDhNiDfJiDeDiCmMiCmFiBeB_xHqqkZx_PostRgnRedraw_xZkqqHx_iCpA_xHqqkZx_
 *			_xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.08.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::PostRgnRedraw (BOOL bSetClientToRgn)
{
// 06.03.03 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	if (::IsWindow(m_hWnd) && IsWindowVisible())
	{
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiBeC_xHqqkZx_
		if (bSetClientToRgn) SetClientToRgn();
		PostMessage(WM_USER_RGN_REDRAW);
	}
} // CFCDynamicDrawView::PostRgnRedraw.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::MoveRgn
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCpAiDeJiDhEiDfKiDgCiDgHjCgMjFkKiInKjDkOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmptOffset	:_xZkqqHx_iInKjDkOjHmKiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::MoveRgn (const DBLPoint& mmptOffset)
{
	DBLRectVector::iterator iR;
	for (iR = m_vmmrtRgn.begin(); iR != m_vmmrtRgn.end(); iR++)
		*iR += mmptOffset;
	m_mmrtRgn += mmptOffset;
} // CFCDynamicDrawView::MoveRgn.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::DBLRgnVector
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMiPfHiNiHiCpAjFnEiClHiBeCiOmAiNmAjFfHiMgOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiPfHiNiHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const DBLRectVector& CFCDynamicDrawView::DBLRgnVector () const
{
	return m_vmmrtRgn;
} // CFCDynamicDrawView::DBLRgnVector.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetRgnRect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMiPfHiNiHiCmMiKePjBkEiCmMiDhEiDiMiBfLiDiAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMiPfHiNiHiCmMiKePjBkEiCmMiDhEiDiMiBfLiDiA_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const DBLRect& CFCDynamicDrawView::GetRgnRect () const
{
	return m_mmrtRgn;
} // CFCDynamicDrawView::GetRgnRect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::TransRgnToValidate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiBeBiDeFiDeCiDjDiDgIiDeFiCmMiNfIjAfGiDiKiBfLiDfHiDiHiDjDiCmJjDfNiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iCnMiClIiDeOiDiJiDeDiDeBiDjDiDgHjBfDjBmMiCpAiNfIjAfGiDiKiBfLiDfHiDiHiDjDiCkJiCoHiNoNiPjMiBeCiClLiCoKiCkJiCoH_xHqqkZx_
 *			_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiIoKiCmCiClIiCmCiBeBiNfIjAfGiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::TransRgnToValidate ()
{
//----- 03.07.20 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCkKjGlDiCkPiCoKiCmOiJlNiCoAiClFiCmIiCkCiBeC_xHqqkZx_
//	if (m_vmmrtRgn.empty()) return;
//----- 03.07.20 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 05.08.11 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	CRect rtClient;
//	GetClientRect(&rtClient);
//	ValidateRect(rtClient);
//----- 05.08.11 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_jAnNjCoIiNmPiCnNiCmMiDiKiBfLiDfHiDiHiDjDiCpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
	ValidateRect(NULL);
//----- 05.08.11 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	DBLRectVector::const_iterator iR;
	for (iR = m_vmmrtRgn.begin(); iR != m_vmmrtRgn.end(); iR++)
	{
		CRect rtInvalidate = mm2lg(*iR);
		LPtoDP(rtInvalidate);
		InvalidateRect(rtInvalidate);
	}
} // CFCDynamicDrawView::TransRgnToValidate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetClientRectLG
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jIfPjHjNiNmAjFfHiMgOiCmMiJoGjGmKiCmMjFgAiJoGjHmMiIoGiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lgrt	:_xZkqqHx_jHmMiIoGiCpAjFnEiClHiBeCjIfPjHjNiNmAjFfHiMgOiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::GetClientRectLG (CRect& lgrt) const
{
	GetClientRect(&lgrt);
	lgrt.left	+= g_->lgOffsetX;
	lgrt.top	+= g_->lgOffsetY;
	lgrt.right	+= g_->lgOffsetX;
	lgrt.bottom	+= g_->lgOffsetY;
} // CFCDynamicDrawView::GetClientRectLG.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetClientRectMM
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJoGjGmKiCmMjFgAiJoGjHmMiIoGiCpAiOmAiNmAjFfHiMgOiCmFjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmrt	:_xZkqqHx_iJoGjGmKjHmMiIoGiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::GetClientRectMM (DBLRect& mmrt) const
{
	CRect lgrt;
	GetClientRectLG(lgrt);
	mmrt = lg2mm(lgrt);
} // CFCDynamicDrawView::GetClientRectMM.

//----- 05.03.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SnapMP
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOmAiNmAjFfHiCpAiDfIiDgJiDgCiDhGjFmPiKlHiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmX		:_xZkqqHx_jFmPiKlHiClHiCoJiNmAjFfHiCpAiOhHjCoIiBeBjFnEiClHiBeC_xHqqkZx_
// *			mmY		:_xZkqqHx_jFmPiKlHiClHiCoJiNmAjFfHiCpAiOhHjCoIiBeBjFnEiClHiBeC_xHqqkZx_
// *			alpha	:_xZkqqHx_iDfIiDgJiDgCiDhGiKnEiKhFiCmJiKhMiCkPiCoJiMfHjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.23 Fukushiro M. _xZkqqHx_iDeMiBfLiPoOjFpBiCpAiIpIjAjEiCkJiCoHiNoNiPjM_xHqqkZx_.
// *************************************************************************/
//void CFCDynamicDrawView::SnapMP (mmetol& mmX, mmetol& mmY, double alpha) const
//{
//	if (!g_pReg->GetIsSnap()) return;
//	if (!almost0(g_pReg->GetSnapInterval().x))
//	//----- _xZkqqHx_iDfIiDgJiDgCiDhGiKnEiKhFiCkKiCePiCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		const mmetol mmSnap = alpha * g_pReg->GetSnapInterval().x;
//		ASSERT(0 < mmSnap);
//		mmX = D2L(mmX / mmSnap) * mmSnap;
//	}
//	if (!almost0(g_pReg->GetSnapInterval().y))
//	//----- _xZkqqHx_iDfIiDgJiDgCiDhGiKnEiKhFiCkKiCePiCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		const mmetol mmSnap = alpha * g_pReg->GetSnapInterval().y;
//		ASSERT(0 < mmSnap);
//		mmY = D2L(mmY / mmSnap) * mmSnap;
//	}
//} // CFCDynamicDrawView::SnapMP.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SnapMP
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOmAiNmAjFfHiCpAiDfIiDgJiDgCiDhGjFmPiKlHiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmpt	:_xZkqqHx_jFmPiKlHiClHiCoJiNmAjFfH_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.23 Fukushiro M. _xZkqqHx_iDeMiBfLiPoOjFpBiCpAiIpIjAjEiCkJiCoHiNoNiPjM_xHqqkZx_.
// *************************************************************************/
//void CFCDynamicDrawView::SnapMP (DBLPoint& mmpt) const
//{
//	SnapMP(mmpt.x, mmpt.y);
//} // CFCDynamicDrawView::SnapMP.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::LimitMP
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	Ctrl&Shift_xZkqqHx_iDeMiBfLiCmFiInKjDkOiNmAjFfHiCpAjFmPiKlHiClHiCoJ_xHqqkZx_._xZkqqHx_iOmAiNmAjFfH_xHqqkZx_.
// *			_xZkqqHx_jAnNiMhGiDgNiBfLiDgH_xHqqkZx_P230.
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmptMov	: _xZkqqHx_iInKjDkOiNmAjFfH_xHqqkZx_._xZkqqHx_jFmPiKlHjBePiCmMiNmAjFfHiCpAiOpDiOoGiCoIiBeBjFmPiKlHiMoDiCmMiNmAjFfHiCpAjFnEiClH_xHqqkZx_.
// *			nFlags	: _xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLiDhLiBfLiDgIiCmMiPoOjFpB_xHqqkZx_.
// *			mptFix	: _xZkqqHx_iMmFjCoIiNmAjFfH_xHqqkZx_.
// *			mmlnAry	: _xZkqqHx_iInKjDkOiNmAjFfHiCkKiInKjDkOiCmFiCkLiCoJjClMjApMiCmMjEhKjHpB_xHqqkZx_.
// *			iArySz	: mmlnAry_xZkqqHx_iCmMiDfEiDeDiDfJ_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::LimitMP (	DBLPoint& mmptMov,
//									UINT nFlags,
//									const DBLPoint& mmptFix,
//									const DBLLine mmlnAry[], int iArySz) const
//{
//	// _xZkqqHx_iNmFiPiJiCmMiDhNiDeFiDfIiNmAjFfHiCpAjFnLjBlGiBeC_xHqqkZx_
//	const DBLPoint mmptOrg = mmptMov;
//	// _xZkqqHx_iCnMiClIiBeBiDfIiDgJiDgCiDhGjFmPiKlHiBeC_xHqqkZx_
//	FFSnapMP(mmptMov);
//	// _xZkqqHx_jClMjApMiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkPiCoKiCmOjFjMiLeB_xHqqkZx_.
//	if (iArySz <= 0) return;
//	// _xZkqqHx_iDfGiDhEiDgHiDeMiBfLiCkKiJjPiClDiCoKiCmEiCmIiCkPiCoKiCmOjFjMiLeB_xHqqkZx_.
//	if (!(nFlags & MK_SHIFT)) return;
//
//	/*----- mmlnAry_xZkqqHx_iCmMjCiGiCkJiCoH_xHqqkZx_mmptOrg_xZkqqHx_iCmJiNmFiCoAiLnPiCkCjClMjApMiCpAjBeJiCnE_xHqqkZx_ -----*/
//	double	mmLen2;
//	DBLLine	mmlnTarget = mmlnAry[0];
//	double	mmLen2Min = (mmlnAry[0].GetNearest(mmptOrg) - mmptOrg).PowLen();
//	for (int iC = 1; iC < iArySz; iC++)
//	{
//		// _xZkqqHx_jClMjApMiCmG_xHqqkZx_mmptOrg_xZkqqHx_iCmMiLjHjHkDiCmMjDpBiPoGiCpAiOfKiPgPiClHiCoJiBeC_xHqqkZx_
//		mmLen2 = (mmlnAry[iC].GetNearest(mmptOrg) - mmptOrg).PowLen();
//		// _xZkqqHx_iLjHjHkDiCmMjDpBiPoGjCgMiCpAiOgHiCmBiCmEiBeB_xHqqkZx_mmptOrg_xZkqqHx_iCmGiCmMiLjHjHkDiCkKiNmFiCoAiLnPiCkCjClMjApMiCpAjBeJiCnEiBeC_xHqqkZx_
//		if (mmLen2 < mmLen2Min)
//		{
//			mmlnTarget = mmlnAry[iC];
//			mmLen2Min = mmLen2;
//		}
//	}
//	//----- _xZkqqHx_iImIiNhOiCmMiPiIjHjNiCmFiCmNjClMjApM_xHqqkZx_ mmlnTarget _xZkqqHx_iCpAiOgHjHhA_xHqqkZx_ -----
//
//	// _xZkqqHx_jClMjApMiCkKjAiCjClMiCmMiOjOiBeC_xHqqkZx_
//	if (mmlnTarget.IsVertical())
//	{
//		// x_xZkqqHx_jCgMiCpAjAnNjCoIiBeC_xHqqkZx_x_xZkqqHx_iCmN_xHqqkZx_y_xZkqqHx_iCmMjCgMiCmJiKnGiMfHiCmIiCkNiIoKjCoIiBeC_xHqqkZx_
//		mmptMov.x = mmlnTarget.GetX(0);
//		return;
//	}
//	// _xZkqqHx_jClMjApMiCkKjAiFjFlNiCmMiOjOiBeC_xHqqkZx_
//	if (mmlnTarget.IsHorizontal())
//	{
//		// y_xZkqqHx_jCgMiCpAjAnNjCoIiBeC_xHqqkZx_y_xZkqqHx_iCmN_xHqqkZx_x_xZkqqHx_iCmMjCgMiCmJiKnGiMfHiCmIiCkNiIoKjCoIiBeC_xHqqkZx_
//		mmptMov.y = mmlnTarget.GetY(0);
//		return;
//	}
//
//	/*----- mmptOrg_xZkqqHx_iCmM_xHqqkZx_x_xZkqqHx_iNmAjFfHiCmG_xHqqkZx_y_xZkqqHx_iNmAjFfHiCmMiCmHiClPiCoHiCpAjAlGiCkJiClHiCkJiCpAiMiIjCoI_xHqqkZx_ -----*/
//	double mmEvalChangeX;
//	double mmNewMov_x = mmlnTarget.GetX(mmptOrg.y);
//	if ((mmNewMov_x <= mmptOrg.x && mmptOrg.x <= mmptFix.x) ||
//		(mmptFix.x <= mmptOrg.x && mmptOrg.x <= mmNewMov_x))
//	{
//		mmEvalChangeX = 0.0;
//	} else
//	{
//		mmEvalChangeX = fabs(mmptOrg.x - mmNewMov_x);
//		if (fabs(mmptOrg.x - mmptFix.x) < mmEvalChangeX)
//			mmEvalChangeX = fabs(mmptOrg.x - mmptFix.x);
//	}
//
//	double mmEvalChangeY;
//	double mmNewMov_y = mmlnTarget.GetY(mmptOrg.x);
//	if ((mmNewMov_y <= mmptOrg.y && mmptOrg.y <= mmptFix.y) ||
//		(mmptFix.y <= mmptOrg.y && mmptOrg.y <= mmNewMov_y))
//	{
//		mmEvalChangeY = 0.0;
//	} else
//	{
//		mmEvalChangeY = fabs(mmptOrg.y - mmNewMov_y);
//		if (fabs(mmptOrg.y - mmptFix.y) < mmEvalChangeY)
//			mmEvalChangeY = fabs(mmptOrg.y - mmptFix.y);
//	}
//	// x,y_xZkqqHx_iCmMjFfNiJlPjCgMiCmMjHmHiCkCiBgJjCoBiCkCiBgKjFpLiCpAiNmMjHhAiBeC_xHqqkZx_
//	if (mmEvalChangeX < mmEvalChangeY)
//		mmptMov.x = mmlnTarget.GetX(mmptMov.y);
//	else
//		mmptMov.y = mmlnTarget.GetY(mmptMov.x);
//} // CFCDynamicDrawView::LimitMP.
//----- 05.03.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 03.07.14 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetScreenViewRect
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDeFiDeCiDjDiDgIiDeFiCmMjHmMiIoGiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgKiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	scrtView	:_xZkqqHx_jHmMiIoG_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iClBiCmMiDeFiDeCiDjDiDgIiDeFiCmMjHmMiIoGiCpAiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmFiLeMjIfOiClFiCmEiCkCiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMiPoDjFpLiMpMiBeFiNlGjFpLiMpMiCmMiDiKiDfEiDeDiDfJiCpAiMjPiPgPiClHiCoJiClNiCnPiCmJiOgHjHhAiBeC_xHqqkZx_
// *			MainFrame_xZkqqHx_iCmMiInKjDkOiBeFiDiKiDfEiDeDiDfJiCmMjDhIiCmJjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_iClBiCoKiImIiKePiCmFiPoDjFpLiMpMiBeFiNlGjFpLiMpMiCmMiDiKiDfEiDeDiDfJiCpAiMjPiPgPiClHiCoJjFpLjGeAiCkKjGlDiCkCiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::SetScreenViewRect (const CRect& scrtView)
//{
//	m_scrtView = scrtView;
//} // CFCDynamicDrawView::SetScreenViewRect.
//----- 03.07.14 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetToolTimer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfOiDeDiDhNiBfLiCmM_xHqqkZx_ON/OFF_xZkqqHx_iCpAiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bIsOn		:ON_xZkqqHx_iCmJiClHiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeB_xHqqkZx_OFF_xZkqqHx_iCmJiClHiCoJiPoKiNiHiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwElapse	:_xZkqqHx_iDfOiDeDiDiAiDeBiDeFiDgHiCnMiCmFiCmMiOjOiKnEiCpAiOhHjCoIiBeCiDhOiDiKjFgCiBeCiDgGiDhEiDeIiDiLiDgHiCmN_xHqqkZx_250_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iKnGjAjEiCkKjAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBiOlIjEhDiClFiClNiPoKiNiHiCmN_xHqqkZx_ FALSE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.11 Fukushiro M. _xZkqqHx_iNfIjAfGiBeC_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::SetToolTimer (BOOL bIsOn, DWORD dwElapse)
{
	if (bIsOn)
	{
		if (m_bIsToolTimer) return FALSE;
		if (SetTimer(FDTIMER_VIEW_TOOL, dwElapse, NULL) != 0)
		{
			m_bIsToolTimer = TRUE;
		} else
		{
			return FALSE;
		}
	} else
	{
		if (!m_bIsToolTimer) return FALSE;
//----- 01.11.12 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		if (KillTimer(FDTIMER_VIEW_TOOL))
//		{
//			m_bIsToolTimer = FALSE;
//		}
//----- 01.11.12 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// KillTimer_xZkqqHx_iCmMjGnPiCoIjCgMiCmNiDgAiDeGiDgCiDeOiClFiCmIiCkCiBeC_xHqqkZx_m_bIsToolTimer == TURE,
		// KillTimer() == FALSE _xZkqqHx_iCmMiPoKiNiHiCkKiCkAiCmBiClNiClNiCnPiBeC_xHqqkZx_
		KillTimer(FDTIMER_VIEW_TOOL);
		m_bIsToolTimer = FALSE;
//----- 01.11.12 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
	return TRUE;
} // CFCDynamicDrawView::SetToolTimer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetLastPoint
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNmFiMoDiCmMiDhNiDeFiDfIiDeOiDiKiDgCiDeOiNmAjFfHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiDeOiDiKiDgCiDeOiNmAjFfHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const DBLPoint& CFCDynamicDrawView::GetLastPoint () const
{
	return m_mmptLast;
} // CFCDynamicDrawView::GetLastPoint.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetLastPoint
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNmFiMoDiCmMiDhNiDeFiDfIiDeOiDiKiDgCiDeOiNmAjFfHiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmpt	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetLastPoint (const DBLPoint& mmpt)
{
	m_mmptLast = mmpt;
} // CFCDynamicDrawView::SetLastPoint.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::ScrollTo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJoGjGmKiCpAiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lgX 		:_xZkqqHx_jAfGiClFiCkCiDfIiDeOiDiNiBfLiDiLiImKjChFiBeCjIfPjHjNiNmAjFfHiBeC_xHqqkZx_
 *			lgY 		:_xZkqqHx_jAfGiClFiCkCiDfIiDeOiDiNiBfLiDiLiImKjChFiBeCjIfPjHjNiNmAjFfHiBeC_xHqqkZx_
 *			bRedrawNow	:_xZkqqHx_jBkGiOjOiNmEjFgAiJoGiCmIiCoH_xHqqkZx_ TRUE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::ScrollTo (long lgX, long lgY, BOOL bRedrawNow)
{
	CRect rtClient;
	GetClientRect(&rtClient);
	const DBLRect mmrtSheetEx = g_pEnv->GetSheetRectEx();

	const long lOfstXMin	= mm2lg(mmrtSheetEx.left);
	const long lOfstXMax	= mm2lg(mmrtSheetEx.right);
	const long lPageX		= rtClient.Width();

	if (lOfstXMax - lPageX < lgX)
		lgX = lOfstXMax - lPageX;
	if (lgX < lOfstXMin)
		lgX = lOfstXMin;

	const long lOfstYMin	= mm2lg(mmrtSheetEx.top);
	const long lOfstYMax	= mm2lg(mmrtSheetEx.bottom);
	const long lPageY		= rtClient.Height();

	if (lOfstYMax - lPageY < lgY)
		lgY = lOfstYMax - lPageY;
	if (lgY < lOfstYMin)
		lgY = lOfstYMin;

	if (lgX == g_->lgOffsetX && lgY == g_->lgOffsetY) return;

//----------<NOT EXPORT TO VIEWER>-----------
	//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCpAjDkPiKpKiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
	if (GetRTFEditor()->IsWindowVisible())
	//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiPpDjBnEiCmMiPoKiNiH_xHqqkZx_ -----
	{
		CRect rect;
		GetRTFEditor()->GetWindowRect(&rect);
		ScreenToClient(&rect);
		rect.left += g_->lgOffsetX - lgX;
		rect.right += g_->lgOffsetX - lgX;
		rect.top += g_->lgOffsetY - lgY;
		rect.bottom += g_->lgOffsetY - lgY;
		// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAiDfIiDeOiDiNiBfLiDiLiBeCiNmEjFgAiJoGiCmNiClFiCmIiCkCiBeC_xHqqkZx_
		GetRTFEditor()->MoveWindow(&rect, FALSE);
	}
//----------</NOT EXPORT TO VIEWER>-----------

	// _xZkqqHx_jAiFjFlNiDiLiBfLiDiJiBfLiCpAiInKjDkO_xHqqkZx_.
	if (FFGetMainWnd()->HRuler() != NULL)
		FFGetMainWnd()->HRuler()->ScrollTo(lgX);
	// _xZkqqHx_jAiCjClMiDiLiBfLiDiJiBfLiCpAiInKjDkO_xHqqkZx_.
	if (FFGetMainWnd()->VRuler() != NULL)
		FFGetMainWnd()->VRuler()->ScrollTo(lgY);

	SetScrollPos(SB_HORZ, D2L(lgX / m_dScrollRatioX));
	SetScrollPos(SB_VERT, D2L(lgY / m_dScrollRatioY));

//----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	if (lPageX <= ::abs(g_->lgOffsetX - lgX) ||
//		lPageY <= ::abs(g_->lgOffsetY - lgY))
//	//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmKiCkKiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjClEiCkGiCoJiPoKiNiH_xHqqkZx_ -----
//----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	if (lPageX <= ::abs(g_->lgOffsetX - lgX) ||
		lPageY <= ::abs(g_->lgOffsetY - lgY) ||
		!bRedrawNow)
	//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmKiCkKiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjClEiCkGiCoJiPoKiNiH_xHqqkZx_
	//			_xZkqqHx_iIlNiCkCiCmN_xHqqkZx_ _xZkqqHx_jBkGiOjOiNmEjFgAiJoGiCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	{
		g_->lgOffsetX = lgX;
		g_->lgOffsetY = lgY;
		if (IsWindowVisible())
		{
			// _xZkqqHx_jBfDiJoGjGmKiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiClFiCmEiNmEjFgAiJoGiBeC_xHqqkZx_
			SetClientToRgn();
			if (bRedrawNow) SendRgnRedraw();
		}
	} else
	//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmKiCkKiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjClEiCkGiCmIiCkCiPoKiNiH_xHqqkZx_
	//			_xZkqqHx_iKiOiCmC_xHqqkZx_ _xZkqqHx_jBkGiOjOiNmEjFgAiJoGiCmMiPoKiNiH_xHqqkZx_ -----
	{
		const long lgMoveX = g_->lgOffsetX - lgX;
		const long lgMoveY = g_->lgOffsetY - lgY;
		if (IsWindowVisible())
		{
			CClientDC dc(this); // _xZkqqHx_jFgAiJoGjHhAiCmMiDgGiDgPiDeDiDfI_xHqqkZx_ _xZkqqHx_iDfCiDjDiDgFiDeMiDfIiDgH_xHqqkZx_
			//----- X_xZkqqHx_jFpLiMpMiCmMiDfIiDeOiDiNiBfLiDiLiCpAiOmAiNhD_xHqqkZx_ -----
			g_->lgOffsetX = lgX;
			CRect rtUpdateX;
			(void)dc.ScrollDC(lgMoveX, 0, &rtClient, &rtClient, NULL, &rtUpdateX);
			// _xZkqqHx_iNmEjFgAiJoGjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClFiCmEiNmEjFgAiJoGiBeC_xHqqkZx_
			DPtoLP(rtUpdateX);
			AddRgn(rtUpdateX);
			//----- Y_xZkqqHx_jFpLiMpMiCmMiDfIiDeOiDiNiBfLiDiLiCpAiOmAiNhD_xHqqkZx_ -----
			g_->lgOffsetY = lgY;
			CRect rtUpdateY;
			(void)dc.ScrollDC(0, lgMoveY, &rtClient, &rtClient, NULL, &rtUpdateY);
			// _xZkqqHx_iNmEjFgAiJoGjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClFiCmEiNmEjFgAiJoGiBeC_xHqqkZx_
			DPtoLP(rtUpdateY);
			AddRgn(rtUpdateY);
//----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//			if (bRedrawNow) SendRgnRedraw();
//----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
			// _xZkqqHx_jFeLiClIjBkGiOjOiNmEjFgAiJoGiCmFiCkAiCoJiClNiCnPiBeBiNmEjFgAiJoGiBeC_xHqqkZx_
			SendRgnRedraw();
//----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		} else
		{
			g_->lgOffsetX = lgX;
			g_->lgOffsetY = lgY;
		}
	}
} // CFCDynamicDrawView::ScrollTo.

//----- 03.03.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::ScrollToX
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJoGjGmKiCpAjAiFjFlNjFpLiMpMiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lgX :	_xZkqqHx_jAfGiClFiCkCiDfIiDeOiDiNiBfLiDiLiImKjChFiBeCjIfPjHjNiNmAjFfHiBeC_xHqqkZx_
// *			bRedrawNow	:_xZkqqHx_jBkGiOjOiNmEjFgAiJoGiCmIiCoH_xHqqkZx_ TRUE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.07 Fukushiro M. _xZkqqHx_iNmEjFgAiJoGiIpIjAjEjCmHiJmBiBeC_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::ScrollToX (long lgX, BOOL bRedrawNow)
//{
//	CRect rtClient;
//	GetClientRect(&rtClient);
//	const DBLRect mmrtSheetEx = g_pEnv->GetSheetRectEx();
//	const long lOfstMin	= mm2lg(mmrtSheetEx.left);
//	const long lOfstMax	= mm2lg(mmrtSheetEx.right);
//	const long lPage	= rtClient.Width();
//
//	if (lOfstMax - lPage < lgX)
//		lgX = lOfstMax - lPage;
//	if (lgX < lOfstMin)
//		lgX = lOfstMin;
//
//	if (lgX != g_->lgOffsetX)
//	{
//		//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCpAjDkPiKpKiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
//		if (GetRTFEditor()->IsWindowVisible())
//		//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiPpDjBnEiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			CRect rect;
//			GetRTFEditor()->GetWindowRect(&rect);
//			ScreenToClient(&rect);
//			rect.left += g_->lgOffsetX - lgX;
//			rect.right += g_->lgOffsetX - lgX;
//			// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAiDfIiDeOiDiNiBfLiDiLiBeCiNmEjFgAiJoGiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//			GetRTFEditor()->MoveWindow(&rect, FALSE);
//		}
//
//		// _xZkqqHx_iDiLiBfLiDiJiBfLiCpAiInKjDkO_xHqqkZx_.
//		if (FFGetMainHRuler() != NULL)
//			FFGetMainHRuler()->ScrollTo(lgX);
//
//		SetScrollPos(SB_HORZ, D2L(lgX / m_dScrollRatioX));
//
//		if (lPage <= ::abs(g_->lgOffsetX - lgX))
//		//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmKiCkKiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjClEiCkGiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			g_->lgOffsetX = lgX;
//			if (IsWindowVisible())
//			{
//				// _xZkqqHx_jBfDiJoGjGmKiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiClFiCmEiNmEjFgAiJoGiBeC_xHqqkZx_
//				SetClientToRgn();
//				if (bRedrawNow) SendRgnRedraw();
//			}
//		} else
//		//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmKiCkKiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjClEiCkGiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//		{
//			const long lgMove = g_->lgOffsetX - lgX;
//			g_->lgOffsetX = lgX;
//			if (IsWindowVisible())
//			{
//				CClientDC dc(this); // _xZkqqHx_jFgAiJoGjHhAiCmMiDgGiDgPiDeDiDfI_xHqqkZx_ _xZkqqHx_iDfCiDjDiDgFiDeMiDfIiDgH_xHqqkZx_
//				//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDhLiDgCiDeOiDfIiCmMjBoFiCkLiClDiCpAjDlOiCoJ_xHqqkZx_ -----
//				CRect coRect;
//				(void)dc.ScrollDC(lgMove, 0, &rtClient, &rtClient, NULL, &coRect);
//				// _xZkqqHx_iNmEjFgAiJoGjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClFiCmEiNmEjFgAiJoGiBeC_xHqqkZx_
//				DPtoLP(coRect);
//				AppendToLastRgn(coRect);
//				if (bRedrawNow) SendRgnRedraw();
//			}
//		}
//	}
//} // CFCDynamicDrawView::ScrollToX.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::ScrollToY
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJoGjGmKiCpAjAiCjClMjFpLiMpMiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lgY :	_xZkqqHx_jAfGiClFiCkCiDfIiDeOiDiNiBfLiDiLiImKjChFiBeC_xHqqkZx_
// *			bRedrawNow	:_xZkqqHx_jBkGiOjOiNmEjFgAiJoGiCmIiCoH_xHqqkZx_ TRUE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.07 Fukushiro M. _xZkqqHx_iNmEjFgAiJoGiIpIjAjEjCmHiJmBiBeC_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::ScrollToY (long lgY, BOOL bRedrawNow)
//{
//	CRect rtClient;
//	GetClientRect(&rtClient);
//	const DBLRect mmrtSheetEx = g_pEnv->GetSheetRectEx();
//	const long lOfstMin	= mm2lg(mmrtSheetEx.top);
//	const long lOfstMax	= mm2lg(mmrtSheetEx.bottom);
//	const long lPage	= rtClient.Height();
//
//	if (lOfstMax - lPage < lgY)
//		lgY = lOfstMax - lPage;
//	if (lgY < lOfstMin)
//		lgY = lOfstMin;
//
//	if (lgY != g_->lgOffsetY)
//	{
////----- 01.11.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////		if (m_wndpScroll != NULL)
////		//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjDkPjClCiDeFiDeCiDjDiDgIiDeFiCpAiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
////		{
////			CRect	rect;
////			m_wndpScroll->GetWindowRect(&rect);
////			ScreenToClient(&rect);
////			rect.top += g_->lgOffsetY - lgY;
////			rect.bottom += g_->lgOffsetY - lgY;
////			// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAiDfIiDeOiDiNiBfLiDiLiBeCiNmEjFgAiJoGiCmNiClFiCmIiCkCiBeC_xHqqkZx_
////			m_wndpScroll->MoveWindow(&rect, FALSE);
////		}
////----- 01.11.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//		//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCpAjDkPiKpKiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
//		if (GetRTFEditor()->IsWindowVisible())
//		//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiPpDjBnEiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			CRect rect;
//			GetRTFEditor()->GetWindowRect(&rect);
//			ScreenToClient(&rect);
//			rect.top += g_->lgOffsetY - lgY;
//			rect.bottom += g_->lgOffsetY - lgY;
//			// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAiDfIiDeOiDiNiBfLiDiLiBeCiNmEjFgAiJoGiCmNiClFiCmIiCkCiBeC_xHqqkZx_
//			GetRTFEditor()->MoveWindow(&rect, FALSE);
//		}
////----- 01.11.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//
//		// _xZkqqHx_iDiLiBfLiDiJiBfLiCpAiInKjDkO_xHqqkZx_.
//		if (FFGetMainVRuler() != NULL)
//			FFGetMainVRuler()->ScrollTo(lgY);
//
//		SetScrollPos(SB_VERT, D2L(lgY / m_dScrollRatioY));
//
//		if (lPage <= ::abs(g_->lgOffsetY - lgY))
//		//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmKiCkKiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjClEiCkGiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			g_->lgOffsetY = lgY;
//			if (IsWindowVisible())
//			{
//				// _xZkqqHx_jBfDiJoGjGmKiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiClFiCmEiNmEjFgAiJoGiBeC_xHqqkZx_
//				SetClientToRgn();
//				if (bRedrawNow) SendRgnRedraw();
//			}
//		} else
//		//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmKiCkKiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjClEiCkGiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//		{
//			const long lgMove = g_->lgOffsetY - lgY;
//			g_->lgOffsetY = lgY;
//			if (IsWindowVisible())
//			{
//				CClientDC dc(this); // _xZkqqHx_jFgAiJoGjHhAiCmMiDgGiDgPiDeDiDfI_xHqqkZx_ _xZkqqHx_iDfCiDjDiDgFiDeMiDfIiDgH_xHqqkZx_
//				//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDhLiDgCiDeOiDfIiCmMjBoFiCkLiClDiCpAjDlOiCoJ_xHqqkZx_ -----
//				CRect coRect;
//				(void)dc.ScrollDC(0, lgMove, &rtClient, &rtClient, NULL, &coRect);
//				// _xZkqqHx_iNmEjFgAiJoGjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClFiCmEiNmEjFgAiJoGiBeC_xHqqkZx_
//				DPtoLP(coRect);
//				AppendToLastRgn(coRect);
//				if (bRedrawNow) SendRgnRedraw();
//			}
//		}
//	}
//} // CFCDynamicDrawView::ScrollToY.
//----- 03.03.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::DrawBack
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jEhHiMgJiCpAjFgAiJoGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDC	: CDC*
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iJoGjGmKiCmJiCkIiCkPiCoJiKgFiNmAjFfHiCpAjAhNiJpAiClHiCoJiBeCjHfNjEjCjHmMiIoGiCmGiDfGiBfLiDgHjHmMiIoGiCmNjDmGjHkHiClFiCmE_xHqqkZx_
 *			_xZkqqHx_iCkCiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
 *
 *          _xZkqqHx_iCfAiBeEiDfGiBfLiDgHjHmMiIoGiCmGiKgHjCkDiDfGiBfLiDgHjHmMiIoGiBeC_xHqqkZx_
 *
 *          Ax        Bx                          Cx        Dx
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_
 *    Ay _xZkqqHx_iEjP_xHqqkZx_ _xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjP_xHqqkZx_  SheetEx _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiBgDiBgDiBgDiBgDiBgDiBgDiBgD_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iBeG_xHqqkZx_                                    _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iBeG_xHqqkZx_           SheetExTop               _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iBeG_xHqqkZx_                                    _xZkqqHx_iEkA_xHqqkZx_              
 *    By _xZkqqHx_iEjP_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjP_xHqqkZx_  Sheet _xZkqqHx_iEjPiEjPiEjPiEjPiEkGiBgDiBgDiBgDiBgDiEkH_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_SheetEx _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_    Left_xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_SheetEx _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_   Right_xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_ SheetOutRight
 *          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *     Cy _xZkqqHx_iEjPiEkFiBgDiBgDiBgDiBgDiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_                                    _xZkqqHx_iBeG_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_            SheetExBottom           _xZkqqHx_iBeG_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_                                    _xZkqqHx_iBeG_xHqqkZx_        _xZkqqHx_iEkA_xHqqkZx_              
 *     Dy _xZkqqHx_iEjPiEkFiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEkH_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                              _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                              _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_            SheetOutBottom                    _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                              _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                              _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                              _xZkqqHx_iBeG_xHqqkZx_              
 *
 *
 *          _xZkqqHx_iCfBiBeEjHhAiOiGjHfNjEjCjHmMiIoGiBeC_xHqqkZx_
 *
 *                  Hx      Ix                          Jx      Kx
 *                  _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_
 *          _xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_  SheetEx _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiBgDiBgDiBgDiBgDiBgDiBgDiBgD_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_                                                          _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_                                                          _xZkqqHx_iEkA_xHqqkZx_              
 *     Hy _xZkqqHx_iEjPiEkA_xHqqkZx_      _xZkqqHx_iEkBiBgDiBgDiBgDiEkGiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiEkC_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_         MarginTop                _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_                                  _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *     Iy _xZkqqHx_iEjPiEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkFiEjPiEjPiEjPiEjP_xHqqkZx_  PageOuter _xZkqqHx_iEjPiEjPiEjPiEkGiBgDiBgDiBgDiEkH_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_Margin_xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_  Left_xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_Margin_xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_ Right_xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_ SheetOutRight
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *     Jy _xZkqqHx_iEjPiEkA_xHqqkZx_      _xZkqqHx_iEkFiBgDiBgDiBgDiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_                                  _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_           MarginBottom           _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iBeG_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *     Ky _xZkqqHx_iEjPiEkA_xHqqkZx_      _xZkqqHx_iEkEiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiBgDiEkIiBgDiBgDiBgDiEkD_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_                                                          _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkA_xHqqkZx_                                                          _xZkqqHx_iEkA_xHqqkZx_              
 *          _xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                                          _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                                          _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                  SheetOutBottom                          _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                                          _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                                          _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                                          _xZkqqHx_iBeG_xHqqkZx_              
 *          _xZkqqHx_iBeG_xHqqkZx_                                                          _xZkqqHx_iBeG_xHqqkZx_              
 *
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.15 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::DrawBack (CDC* pDC) const
{
	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjIfPjHjNiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
	CRect lgrtClient;
	GetClientRectLG(lgrtClient);

	// _xZkqqHx_iPoDjAhNiCfAiCmMiDfGiBfLiDgHiLoJiMgAiCmGiBeBiKgHjCkDiDfGiBfLiDgHiLoJiMgAiBeC_xHqqkZx_
	const DBLRect mmrtSheet = g_pEnv->GetSheetRect();
	const DBLRect mmrtSheetEx = g_pEnv->GetSheetRectEx();
	mmetol mmMarginL;
	mmetol mmMarginT;
	mmetol mmMarginR;
	mmetol mmMarginB;
	g_pEnv->GetDocPaperMargin(mmMarginL, mmMarginT, mmMarginR, mmMarginB);
	// _xZkqqHx_iDhJiBfLiDfHiDfEiDeDiDfJiCpAiOoGjDlOiBeC_xHqqkZx_
	mmetol mmPageW, mmPageH;
	g_pEnv->GetDocPrnPageSize(mmPageW, mmPageH);
	// _xZkqqHx_iDhJiBfLiDfHjBfDjBmMiCmMiKePjIgHiLoJiMgAiCpAiMhGiOfKiBeC_xHqqkZx_
	DBLRect mmrtPageOuter(	g_pEnv->GetDocPageLeftTop(),
							g_pEnv->GetDocPageLeftTop() +
								DBLPoint(mmPageW * g_pEnv->GetDocPageColumn(),
										 mmPageH * g_pEnv->GetDocPageLine()));

	const long lgAx = mm2lg(mmrtSheetEx.left);
	const long lgBx = mm2lg(mmrtSheet.left);
	const long lgCx = mm2lg(mmrtSheet.right);
	const long lgDx = mm2lg(mmrtSheetEx.right);

	const long lgAy = mm2lg(mmrtSheetEx.top);
	const long lgBy = mm2lg(mmrtSheet.top);
	const long lgCy = mm2lg(mmrtSheet.bottom);
	const long lgDy = mm2lg(mmrtSheetEx.bottom);

	const long lgHx = mm2lg(mmrtPageOuter.left - mmMarginL);
	const long lgIx = mm2lg(mmrtPageOuter.left);
	const long lgJx = mm2lg(mmrtPageOuter.right);
	const long lgKx = mm2lg(mmrtPageOuter.right + mmMarginR);

	const long lgHy = mm2lg(mmrtPageOuter.top - mmMarginT);
	const long lgIy = mm2lg(mmrtPageOuter.top);
	const long lgJy = mm2lg(mmrtPageOuter.bottom);
	const long lgKy = mm2lg(mmrtPageOuter.bottom + mmMarginB);

	const CRect lgrtSheet(lgBx, lgBy, lgCx, lgCy);

	const CRect lgrtSheetExLeft(lgAx, lgAy, lgBx, lgCy);
	const CRect lgrtSheetExTop(lgBx, lgAy, lgDx, lgBy);
	const CRect lgrtSheetExRight(lgCx, lgBy, lgDx, lgDy);
	const CRect lgrtSheetExBottom(lgAx, lgCy, lgCx, lgDy);

	const CRect lgrtMarginLeft(lgHx, lgHy, lgIx, lgJy);
	const CRect lgrtMarginTop(lgIx, lgHy, lgKx, lgIy);
	const CRect lgrtMarginRight(lgJx, lgIy, lgKx, lgKy);
	const CRect lgrtMarginBottom(lgHx, lgJy, lgJx, lgKy);

	// _xZkqqHx_iPoDjAhNiCfBiCmMiDfGiBfLiDgHiKePiCmMiLoJiMgAiBeC_xHqqkZx_
	const CRect lgrtSheetOutRight(lgDx, lgAy, LONG_MAX, LONG_MAX);
	const CRect lgrtSheetOutBottom(lgAx, lgDy, lgDx, LONG_MAX);

	// CDC_xZkqqHx_iCpA_xHqqkZx_Auto_xZkqqHx_iCmFiDiJiDgCiDhGiBeC_xHqqkZx_
	FCAutoDC atDC(pDC);
	// _xZkqqHx_iKgFiDhFiDiJiDfGiBeC_xHqqkZx_
	FCAtBrush brushSheet;
	FCAtBrush brushMargin;
	FCAtBrush brushSheetEx;
	FCAtBrush brushSheetOut;
	if (g_pDoc != NULL && g_pDoc->GetIsDocumentOpened())
	//----- _xZkqqHx_jFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iOiGjFjEjFkKiCmNiOiGjAeGiCmJiClHiCoJiBeC_xHqqkZx_
		brushSheet.Get()->CreateSolidBrush(g_pReg->GetOptiSheetColor());
		brushMargin.Get()->CreateSolidBrush(g_pReg->GetOptiRegColor(FDCL_PAPER_MARGIN));
	} else
	//----- _xZkqqHx_jFlGiPjBiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iOiGjFjEjFkKiCoAjEhHiMgJjAeGiCmJiClHiCoJiBeC_xHqqkZx_
		brushSheet.Get()->CreateSolidBrush(g_pReg->GetOptiRegColor(FDCL_WORKSPACE));
		brushMargin.Get()->CreateSolidBrush(g_pReg->GetOptiSheetColor());
	}
	brushSheetEx.Get()->CreateSolidBrush(g_pReg->GetOptiRegColor(FDCL_WORKSPACE));
	brushSheetOut.Get()->CreateSolidBrush(g_pReg->GetOptiRegColor(FDCL_WORKSPACE_BACKGROUND));

	// _xZkqqHx_iDfGiBfLiDgHjHmMiIoGiCpAjDgIiCoIiCmCiCnEiClHiBeC_xHqqkZx_
	CRect lgrtPaint;
	DBLRectVector::const_iterator iR;
	for (iR = m_vmmrtRgn.begin(); iR != m_vmmrtRgn.end(); iR++)
	{
		// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
		const CRect lgrtClip = mm2lg(*iR) & lgrtClient;
		lgrtPaint = lgrtClip & lgrtSheet;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushSheet);
		lgrtPaint = lgrtClip & lgrtSheetExLeft;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushSheetEx);
		lgrtPaint = lgrtClip & lgrtSheetExTop;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushSheetEx);
		lgrtPaint = lgrtClip & lgrtSheetExRight;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushSheetEx);
		lgrtPaint = lgrtClip & lgrtSheetExBottom;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushSheetEx);
		lgrtPaint = lgrtClip & lgrtSheetOutRight;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushSheetOut);
		lgrtPaint = lgrtClip & lgrtSheetOutBottom;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushSheetOut);
	}

//----- 05.10.09 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKjFmCiClGiCmEiCkCiCoJiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
	if (g_pDoc == NULL || !g_pDoc->GetIsDocumentOpened()) return;
//----- 05.10.09 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_jFlGiPjBjHhAiOiGjHfNjEjCiCkKjEpBjFfMiOkGiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
	if (!g_pReg->GetIsPageMarginVisible()) return;

	// _xZkqqHx_jHfNjEjCjHmMiIoGiCpAjDgIiCoIiCmCiCnEiClHiBeCiDfGiBfLiDgHjHmMiIoGiCmJiPoDiPjBiCkLiClHiCoJiClNiCnPiBeBiNmFiMoDiCmJiPiIjHjNiBeC_xHqqkZx_
	for (iR = m_vmmrtRgn.begin(); iR != m_vmmrtRgn.end(); iR++)
	{
		// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
		const CRect lgrtClip = mm2lg(*iR) & lgrtClient;
		// _xZkqqHx_iNlGjHfNjEjCiCpAjDgIiCoIiCmCiCnEiClFiBeC_xHqqkZx_
		lgrtPaint = lgrtClip & lgrtMarginLeft;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushMargin);
		// _xZkqqHx_iPoDjHfNjEjCiCpAjDgIiCoIiCmCiCnEiClFiBeC_xHqqkZx_
		lgrtPaint = lgrtClip & lgrtMarginTop;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushMargin);
		// _xZkqqHx_iJeFjHfNjEjCiCpAjDgIiCoIiCmCiCnEiClFiBeC_xHqqkZx_
		lgrtPaint = lgrtClip & lgrtMarginRight;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushMargin);
		// _xZkqqHx_iJlKjHfNjEjCiCpAjDgIiCoIiCmCiCnEiClFiBeC_xHqqkZx_
		lgrtPaint = lgrtClip & lgrtMarginBottom;
		if (!lgrtPaint.IsRectNull())
			atDC.FillRect(lgrtPaint, brushMargin);
	}
} // CFCDynamicDrawView::DrawBack.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::DrawGrid
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiKiDgCiDgIiCpAjFgAiJoGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDC	: CDC*
 *************************************************************************/
void CFCDynamicDrawView::DrawGrid (CDC* pDC) const
{
	// _xZkqqHx_iDePiDiKiDgCiDgIjEpBjFfMiOkGiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
	if (!g_pReg->GetIsGridVisible()) return;

	//----- PS_DOT/PS_DASH_xZkqqHx_iCmMiCkCiClIiCoKiCoAiDhAiDfOiBfLiDjDiCmN_xHqqkZx_24_xZkqqHx_iCmMjEhLjAjEiCmM_xHqqkZx_
	//		_xZkqqHx_jHgMiCmFiCkAiCoJiBeCiPjBiCkLiOgOiCnPiCmMiImKjChFiCpAiPoNiCmJ_xHqqkZx_24_xZkqqHx_iCmMjEhLjAjEiCmMiNmAjFfH_xHqqkZx_
	//		_xZkqqHx_iCmJiClHiCoKiCmOiBeBiDfIiDeOiDiNiBfLiDiLiClFiCmEiCoAjDfPjApMiCkKiPgEiCmIiCmBiCmEiOmAjApM_xHqqkZx_
	//		_xZkqqHx_iCmJiCmIiCmBiClNiCoIiClHiCoJiClBiCmGiCmNiCmIiCkC_xHqqkZx_						-----

	// CDC_xZkqqHx_iCpA_xHqqkZx_Auto_xZkqqHx_iCmFiDiJiDgCiDhGiBeC_xHqqkZx_
	FCAutoDC atDC(pDC);
	atDC.SetPen(PS_DOT, 0, g_pReg->GetOptiRegColor(FDCL_GRID));

	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjIfPjHjNiMgOiCmFiOoGjDlO_xHqqkZx_.
	CRect lgrtClient;
	GetClientRectLG(lgrtClient);
	// _xZkqqHx_iKgHjCkDiDfGiBfLiDgHjHmMiIoGiCmF_xHqqkZx_AND_xZkqqHx_iCpAiCmGiCoJiBeC_xHqqkZx_
	lgrtClient &= mm2lg(g_pEnv->GetSheetRectEx());
	// _xZkqqHx_iDePiDiKiDgCiDgIiKnEiKhFiCpAiOoGjDlOiBeC_xHqqkZx_
	const mmetol mmGridX = g_pReg->GetGridInterval().x;
	const mmetol mmGridY = g_pReg->GetGridInterval().y;
	long lC;
	if (!almost0(mmGridX))
	//----- _xZkqqHx_iDfIiDgJiDgCiDhGiKnEiKhFiCkKiCePiCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		long lgGridX;
		for (lC = D2L(lg2mm(lgrtClient.left) / mmGridX) - 1;; lC++)
		{
			lgGridX = mm2lg(lC * mmGridX);
			if (lgrtClient.right < lgGridX) break;

			//----- _xZkqqHx_iPjBiCkLiOgOiCnPiNmAjFfHiCpA_xHqqkZx_24_xZkqqHx_iCmMjEhLjAjEiCmJ_xHqqkZx_.. -----
			atDC.MoveTo(lgGridX, (lgrtClient.top / 24 - 1) * 24);
			atDC.LineTo(lgGridX, lgrtClient.bottom);
		}
	}
	if (!almost0(mmGridY))
	//----- _xZkqqHx_iDfIiDgJiDgCiDhGiKnEiKhFiCkKiCePiCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		long lgGridY;
		for (lC = D2L(lg2mm(lgrtClient.top) / mmGridY) - 1;; lC++)
		{
			lgGridY = mm2lg(lC * mmGridY);
			if (lgrtClient.bottom < lgGridY) break;
			//----- _xZkqqHx_iPjBiCkLiOgOiCnPiNmAjFfHiCpA_xHqqkZx_24_xZkqqHx_iCmMjEhLjAjEiCmJ_xHqqkZx_.. -----
			atDC.MoveTo((lgrtClient.left / 24 - 1) * 24, lgGridY);
			atDC.LineTo(lgrtClient.right, lgGridY);
		}
	}
} // CFCDynamicDrawView::DrawGrid.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::DrawPageLine
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhJiBfLiDfHiLkLiKeFjApMiCpAjFgAiJoGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDC	:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::DrawPageLine (CDC* pDC) const
{
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKjFmCiClGiCmEiCkCiCoJiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
	if (g_pDoc == NULL || !g_pDoc->GetIsDocumentOpened()) return;
	// _xZkqqHx_iDhJiBfLiDfHiLkLiKeFjApMiCkKjEpBjFfMiOkGiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
	if (!g_pReg->GetIsPageVisible()) return;

	CRect lgrtClient;
	GetClientRectLG(lgrtClient);

	// _xZkqqHx_iDhJiBfLiDfHiDfEiDeDiDfJiCpAiOoGjDlOiBeC_xHqqkZx_
	mmetol mmPageW, mmPageH;
	g_pEnv->GetDocPrnPageSize(mmPageW, mmPageH);
	// _xZkqqHx_iDhJiBfLiDfHjBfDjBmMiCmMiKePjIgHiLoJiMgAiCpAiMhGiOfKiBeC_xHqqkZx_
	DBLRect mmrtPage(g_pEnv->GetDocPageLeftTop(),
					 g_pEnv->GetDocPageLeftTop() +
							DBLPoint(mmPageW * g_pEnv->GetDocPageColumn(),
									 mmPageH * g_pEnv->GetDocPageLine()));
	CRect lgrtPage = mm2lg(mmrtPage);
	// _xZkqqHx_iDhJiBfLiDfHiKePjIgHiCmGiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCmMiPgEiCmIiCoIiCpAiMhGiOfKiBeC_xHqqkZx_
	long lgDrawL, lgDrawR;
	if (!::LinearOverlap(lgDrawL, lgDrawR, lgrtClient.left, lgrtClient.right,
						 lgrtPage.left, lgrtPage.right)) return;
	long lgDrawT, lgDrawB;
	if (!::LinearOverlap(lgDrawT, lgDrawB, lgrtClient.top, lgrtClient.bottom,
						 lgrtPage.top, lgrtPage.bottom)) return;

	// CDC_xZkqqHx_iCpA_xHqqkZx_Auto_xZkqqHx_iCmFiDiJiDgCiDhGiBeC_xHqqkZx_
	FCAutoDC atDC(pDC);
	//----- _xZkqqHx_iDhJiBfLiDfHiLkLiCpAjFgAiCkN_xHqqkZx_ -----
	atDC.SetPen(PS_SOLID, 0, g_pReg->GetOptiRegColor(FDCL_PAGE_BORDER));

	long lC;
	for (lC = 0; lC < g_pEnv->GetDocPageColumn() + 1; lC++)
	{
		long lgx = mm2lg(mmrtPage.left + mmPageW * lC);
		if (lgx < lgrtClient.left) continue;
		if (lgrtClient.right < lgx) break;

		atDC.MoveTo(lgx, lgDrawT);
		atDC.LineTo(lgx, lgDrawB);
	}
	for (lC = 0; lC < g_pEnv->GetDocPageLine() + 1; lC++)
	{
		long lgy = mm2lg(mmrtPage.top + mmPageH * lC);
		if (lgy < lgrtClient.top) continue;
		if (lgrtClient.bottom < lgy) break;

		atDC.MoveTo(lgDrawL, lgy);
		atDC.LineTo(lgDrawR, lgy);
	}
} // CFCDynamicDrawView::DrawPageLine.

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawView _xZkqqHx_iDeOiDiJiDfIiCmMiIpDiNpM_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnPreparePrinting
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKiIpDiNpMiCnMiClNiCmNiDhGiDiMiDhCiDiFiBfLiClDiCoKiCoJjBePiCmJiDhEiDiMiBfLiDiAiDiPiBfLiDeOiCkK_xHqqkZx_
 *			_xZkqqHx_iMmEiCnBiPgPiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pInfo	:_xZkqqHx_iIpDiNpMiCmJiKnGiClHiCoJjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iIpDiNpMiCkKiKeKiOgOiClDiCoKiClNiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iImIiKePiCpAjFnEiClFiCnMiClHiBeCiIpDiNpMiDfHiDiHiDhFiCkK_xHqqkZx_
 *			_xZkqqHx_iDeMiDiDiDjDiDfKiDiLiClDiCoKiClNiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iCpAjFnEiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::OnPreparePrinting (CPrintInfo* pInfo)
{
	// _xZkqqHx_iDhJiBfLiDfHjAjEiCmMiMhGiOfKiBeC_xHqqkZx_
	const long lPageNum = g_pDoc->GetSheetManager()->GetSheetIndexSize() *
							g_pEnv->GetDocPageColumn() * g_pEnv->GetDocPageLine();
	//----- _xZkqqHx_iIpDiNpMiDfPiDeDiDeBiDiNiDePiCmMjChFiCkLiKlHiCkGiPiIjHjN_xHqqkZx_ -----
	// _xZkqqHx_iKpJjBlGiCmMiIpDiNpMiDfPiDeDiDeBiDiNiDePiCpAiNoNiPjMiBeC_xHqqkZx_
	if (pInfo->m_pPD != NULL && pInfo->m_pPD->m_pd.hDC != NULL)
	{
		::DeleteDC(pInfo->m_pPD->m_pd.hDC);
		pInfo->m_pPD->m_pd.hDC = NULL;
	}
	delete pInfo->m_pPD;
	//----- _xZkqqHx_jAoKjHhAiIpDiNpMiDfPiDeDiDeBiDiNiDePiCpAjAnNjCoIiBeCiIpDiNpMjEmNiImNiCmJiDfGiBfLiDgHiCkKiOhHjCoIiCmFiCkLiCoJjEmF_xHqqkZx_ -----
	if (lPageNum == 1)
		pInfo->m_pPD = new CFCPrintDialog(FALSE, PD_ALLPAGES | PD_USEDEVMODECOPIES | PD_NOSELECTION);
	else
		pInfo->m_pPD = new CFCPrintDialog(FALSE, PD_ALLPAGES | PD_USEDEVMODECOPIES);
	pInfo->m_pPD->m_pd.hInstance = FFGetApp()->GetResourceInstance();
	pInfo->m_pPD->m_pd.lpPrintTemplateName = MAKEINTRESOURCE(IDD_COM_PRINT);
	pInfo->m_pPD->m_pd.Flags |= PD_ENABLEPRINTTEMPLATE;
	// _xZkqqHx_iDfGiBfLiDgHjAjEiCpAjAnNjCoIiBeCjDoAjFjEiCmFiMhGiOfKiCmJiOgHiCkEiBeC_xHqqkZx_
	((CFCPrintDialog*)pInfo->m_pPD)->SetSheetSize(g_pDoc->GetSheetManager()->GetSheetIndexSize());

	pInfo->SetMinPage(1);
	pInfo->SetMaxPage(lPageNum);	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiDhJiBfLiDfHiCmMjClHiClDiCpAjAnNjCoIiBeC_xHqqkZx_
	// _xZkqqHx_iIpDiNpMjBePiCmMiDgGiDhEiDeIiDiLiDgHiCmMjAnNjCoI_xHqqkZx_
	return DoPreparePrinting(pInfo);
} // CFCDynamicDrawView::OnPreparePrinting.

/*************************************************************************
 * <_xZkqqHx_iNfMjBkCjBmM_xHqqkZx_>	FCOnPrintData
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OnBeginPrinting_xZkqqHx_iKnGjAjEiCkJiCoH_xHqqkZx_OnPrint_xZkqqHx_iKnGjAjEiCnGiDgGiBfLiDfOiCpAjDgOiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	OnBeginPrinting_xZkqqHx_iKnGjAjEiCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
struct FCOnPrintData
{
	DBLPoint	mmptPrintable;		// _xZkqqHx_iHeB_xHqqkZx_ _xZkqqHx_iIpDiNpMiJmCjEfMjEmNiImNiCmMiDfEiDeDiDfJiBeC_xHqqkZx_
	double		dRatioOnPrint;		// _xZkqqHx_iHeC_xHqqkZx_ _xZkqqHx_iIpDiNpMiOjOiCmMiKgHjBoFjHkGiBeC_xHqqkZx_
	DBLPoint	mmptMarginBC;		// _xZkqqHx_iHeD_xHqqkZx_ |B1-C1|_xZkqqHx_iBeB_xHqqkZx_|B3-C3|_xZkqqHx_iCmMiLjHjHkDiBeC_xHqqkZx_
	DBLPoint	mmptMarginAC;		// _xZkqqHx_iHeE_xHqqkZx_ |A1-C1|_xZkqqHx_iBeB_xHqqkZx_|A3-C3|_xZkqqHx_iCmMiLjHjHkDiBeC_xHqqkZx_
	DBLPoint	mmptPaperSize;		// _xZkqqHx_iHeF_xHqqkZx_ _xZkqqHx_jHhAiOiGiDfEiDeDiDfJiBeC_xHqqkZx_
}; // struct FCOnPrintData.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnBeginPrinting
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNmFiPiJiCmMiDhJiBfLiDfHiCmMiIpDiNpM_xHqqkZx_(OnPrint)_xZkqqHx_jBePiCmJiIoKiJpBiClOiCkPiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jHhAiOiGiCmJjBmOiClFiCmEiBeBiDhGiDiKiDjDiDfOiCmFiIpDiNpMiJmCjEfMiCmIjEmNiImNiBeBiOmAiNnLiCmJiIpDiNpMiClHiCoJ_xHqqkZx_
 *			_xZkqqHx_iDhJiBfLiDfHjEmNiImNiCkKiCkAiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDhGiDiKiDjDiDfOiCmFiIpDiNpMiJmCjEfMiCmIjEmNiImNiCmNiBeBiDhGiDiKiDjDiDfOiCmJiCoGiCmBiCmEiInJiCmIiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jHhAiOiGiCmMjCfLiCkMiCoIiCkMiCoIiCnMiCmFiIpDiNpMiCmFiCkLiCoJiDhGiDiKiDjDiDfOiCoAiCkAiCoKiCmOiBeBjHfNjEjCiCmJ_xHqqkZx_10mm_xZkqqHx_iImIiPoD_xHqqkZx_
 *			_xZkqqHx_jFeLjHhGiCmGiClHiCoJiDhGiDiKiDjDiDfOiCoAiCkAiCoJiBeC_xHqqkZx_|A1-B1|_xZkqqHx_iBeB_xHqqkZx_|A2-B2|_xZkqqHx_iBeB_xHqqkZx_|A3-B3|_xZkqqHx_iBeB_xHqqkZx_|A4-B4|_xZkqqHx_iCkK_xHqqkZx_
 *			_xZkqqHx_iClBiCmMjHfNjEjCiCmFiCkAiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDhJiBfLiDfHjEmNiImNiCmNiBeBiBhFiDhGiDiKiDjDiDfOiCmGjHfNjEjCiCmMjAnNjCoIiBhGiCmFiOhHjCoIiClDiCoKiClNjHfNjEjCiCpA_xHqqkZx_
 *			_xZkqqHx_iPjMiCkCiClNjEmNiImNiBeCiCmCiCnMiCoI_xHqqkZx_ |A1-C1|_xZkqqHx_iBeB_xHqqkZx_|A2-C2|_xZkqqHx_iBeB_xHqqkZx_|A3-C3|_xZkqqHx_iBeB_xHqqkZx_|A4-C4|_xZkqqHx_iCkK_xHqqkZx_
 *			_xZkqqHx_iClLiCmMjHfNjEjCiCmFiCkAiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDhGiDiKiDjDiDfOiDgIiDiJiDeDiDgPiCmNiBeB_xHqqkZx_(B1,B3)_xZkqqHx_iCpAiMlEjDfPiCmGiClFiCmE_xHqqkZx_(B3,B4)_xZkqqHx_iCnMiCmFiCmM_xHqqkZx_
 *			_xZkqqHx_jEmNiImNiCpAiIpDiNpMiClHiCoJiBeCiCmCiCnMiCoIiBeBiNmAjFfHiCmGiClFiCmEiCmN_xHqqkZx_(0,0)_xZkqqHx_iBgA_xHqqkZx_(B3-B1,B4-B3)_xZkqqHx_iCmMjEmNiImN_xHqqkZx_
 *			_xZkqqHx_iCpAiIpDiNpMiClHiCoJiBeC_xHqqkZx_
 *
 *			_xZkqqHx_iOmAiNnLiCmJiDhJiBfLiDfHiCpAiIpDiNpMiClHiCoJiNnLiCmMiDfIiDgFiDgCiDhGiCmNiImIiJlKiCmFiCkAiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iCfAiBeEiDhJiBfLiDfHjEmNiImNiCmGiBeBjFlGiPjBjCiGiCmMiIpDiNpMjBmOiPnLiCmMiDhJiBfLiDfHjEmNiImNiCkJiCoHiBeBiIpDiNpMiOjOiCmM_xHqqkZx_
 *				_xZkqqHx_iKgHjBoFjHkGiCpAiOfKiPgPiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iCfBiBeEjFlGiPjBjCiGiCmMiIpDiNpMjBmOiPnLiDhJiBfLiDfHiCmMiNlGiPoDiCkJiCoH_xHqqkZx_(|B1-C1|,|B3-C3|)_xZkqqHx_iCmMiLjHjHkDiCpA_xHqqkZx_
 *				_xZkqqHx_iIpIiCkCiClNiImKjChFiCkKiMlEjDfPiCmGiCmIiCoJiCoGiCkEiBeBiDhCiDiFiBfLiCmMiDeJiDhEiDfKiDgCiDgHiCpAjClCjAkOiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iCfCiBeEjFlGiPjBjCiGiCmMiIpDiNpMjBmOiPnLiDhJiBfLiDfHiCmJiCkAiCoJjFjEjFgJiCpAjBfDiCmEjFfMiOkGiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iCfDiBeEiDhJiBfLiDfHjEmNiImNiCmMiKePjBkEiCpAjEjCjAeGiCmFjDgIiCoIiCmCiCnEiClFiBeBiCmNiCnNiPgPiClNjAhNiMgAiCpAiPmBiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iCfEiBeEjFlGiPjBjCiGiCmMiIpDiNpMjBmOiPnLiDhJiBfLiDfHiCmMiNlGiPoDiCkJiCoH_xHqqkZx_(|A1-C1|,|A3-C3|)_xZkqqHx_iCmMiLjHjHkDiCpA_xHqqkZx_
 *				_xZkqqHx_iIpIiCkCiCmEiBeBiDeMiDiDiDjDiDgPiDfIiNmAjFfHiMgOiCmJiCkIiCkPiCoJ_xHqqkZx_(A1,A3)_xZkqqHx_iCpAiOfKiPgPiBeC_xHqqkZx_
 *			_xZkqqHx_iCfFiBeEiCfEiCmGjHhAiOiGiDfEiDeDiDfJiCkJiCoHiBeBiDeMiDiDiDjDiDgPiDfIiNmAjFfHiMgOiCmJiCkIiCkPiCoJ_xHqqkZx_(A1,A3,A2,A4)_xZkqqHx_iCpA_xHqqkZx_
 *				_xZkqqHx_iOfKiPgPiBeC_xHqqkZx_
 *			_xZkqqHx_iCfGiBeEiCfFiCmMjHhAiOiGiLoJiMgAiCmGiDhJiBfLiDfHjEnEiNiGiCmMiDeJiDhEiDfKiDgCiDgHiPoOjFpBiCkJiCoHiBeBiDhJiBfLiDfHjEnEiNiGiCmM_xHqqkZx_
 *				_xZkqqHx_iIpDiNpMiImKjChFiCpAiMiIjCoIiClFiBeBiDhJiBfLiDfHjEnEiNiGiCpAjFfMiOkGiClHiCoJiBeC_xHqqkZx_
 *
 *			_xZkqqHx_iCoGiCmBiCmEiBeBiDhJiBfLiDfHiCpAiIpDiNpMiClHiCoJiCmJiCmNiBeBiImIiJlKiCmMiPoOjFpBiCkKjFeLjHhGiCmFiCkAiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iHeA_xHqqkZx_ _xZkqqHx_jFlGiPjBjCiGiCmMiIpDiNpMjBmOiPnLiDhJiBfLiDfHiLoJiMgAiBeC_xHqqkZx_
 *			_xZkqqHx_iHeB_xHqqkZx_ _xZkqqHx_iIpDiNpMiJmCjEfMjEmNiImNiCmMiDfEiDeDiDfJiBeC_xHqqkZx_
 *			_xZkqqHx_iHeC_xHqqkZx_ _xZkqqHx_iIpDiNpMiOjOiCmMiKgHjBoFjHkGiBeC_xHqqkZx_
 *			_xZkqqHx_iHeD_xHqqkZx_ |B1-C1|_xZkqqHx_iBeB_xHqqkZx_|B3-C3|_xZkqqHx_iCmMiLjHjHkDiBeC_xHqqkZx_
 *			_xZkqqHx_iHeE_xHqqkZx_ |A1-C1|_xZkqqHx_iBeB_xHqqkZx_|A3-C3|_xZkqqHx_iCmMiLjHjHkDiBeC_xHqqkZx_
 *			_xZkqqHx_iHeF_xHqqkZx_ _xZkqqHx_jHhAiOiGiDfEiDeDiDfJiBeC_xHqqkZx_
 *
 *			_xZkqqHx_iHeAiCmNiBeBiIpDiNpMiClDiCoKiCoJiDhJiBfLiDfHjGiIiCmJiInJiCmIiCoJjCgMiCmFiCkAiCoIiBeBiHeBiBgAiHeFiCmNiIpDiNpMiDhJiBfLiDfHiCmJ_xHqqkZx_
 *			_xZkqqHx_iKnGiCoNiCoHiClIjDjJiClFiCkCjCgMiCmFiCkAiCoJiBeCiCoGiCmBiCmE_xHqqkZx_OnBeginPrinting_xZkqqHx_iKnGjAjEjCiGiCmFiHeBiBgAiHeFiCpA_xHqqkZx_
 *			_xZkqqHx_iOfKiPgPiClFiBeB_xHqqkZx_OnPrint_xZkqqHx_iKnGjAjEjCiGiCmFiHeAiCpAiOfKiPgPiClHiCoJiBeC_xHqqkZx_
 *
 *             A1                                    A2
 *             _xZkqqHx_iBkL_xHqqkZx_                                    _xZkqqHx_iBkL_xHqqkZx_
 *         A3_xZkqqHx_iBkIiEkBiEjPiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ _xZkqqHx_jHhAiOiG_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    B1                        B2    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iBkL_xHqqkZx_                        _xZkqqHx_iBkL_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_B3_xZkqqHx_iBkIiEkBiEjPiEjPiEjPiIpDiNpMiJmCjEfMjEmNiImNiEjPiEjPiEjPiEkC_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    C1            C2    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iBkL_xHqqkZx_            _xZkqqHx_iBkL_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_C3_xZkqqHx_iBkIiEkBiDhJiBfLiDfHjEmNiImNiEjPiEkC_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_C4_xZkqqHx_iBkIiEkEiEjPiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_                        _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_                        _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_B4_xZkqqHx_iBkIiEkEiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_                                    _xZkqqHx_iEkA_xHqqkZx_
 *             _xZkqqHx_iEkA_xHqqkZx_                                    _xZkqqHx_iEkA_xHqqkZx_
 *         A4_xZkqqHx_iBkIiEkEiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.07.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnBeginPrinting (CDC* pDC, CPrintInfo* pInfo)
{
//	AfxDebugBreak();

	if (pInfo->m_pPD->PrintSelection())
	//----- _xZkqqHx_iMlLiNnNiCmMiDhJiBfLiDfHiCpAiIpDiNpMiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iMlLiNnNiCmMiDfGiBfLiDgHiCmMiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
		long lCurrentSheetIndex = g_pDoc->GetSheetManager()->SheetIDToIndex(g_pDoc->GetCurrentSheetId());
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCmMjCiGjAfDiNmAjFfHiCpAjIfPjHjNiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
		CRect lgrtClient;
		GetClientRectLG(lgrtClient);
// 06.02.25 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//		lgrtClient.CenterPoint();
		//----- _xZkqqHx_jFlGiPjBiDhJiBfLiDfHiDfEiDeDiDfJiCpAiOoGjDlO_xHqqkZx_ -----
		mmetol mmDocPageWidth, mmDocPageHeight;
		g_pEnv->GetDocPrnPageSize(mmDocPageWidth, mmDocPageHeight);
		long lgptDocPageWidth = mm2lg(mmDocPageWidth);
		long lgptDocPageHeight = mm2lg(mmDocPageHeight);
		// _xZkqqHx_iIpDiNpMiKeKiOgOiImKjChFiCmMiNlGiPoDiNmAjFfHiBeC_xHqqkZx_
		CPoint lgptPageStartLeftTop = mm2lg(g_pEnv->GetDocPageLeftTop());
		// _xZkqqHx_iIpDiNpMiKeKiOgOiImKjChFiCpAiMlEjDfPiCmGiClHiCoJiBeBjCiGjAfDiNmAjFfHiCmMiDeJiDhEiDfKiDgCiDgHjCgMiCpAiMhGiOfKiBeC_xHqqkZx_
		CSize sz = lgrtClient.CenterPoint() - lgptPageStartLeftTop;
		// _xZkqqHx_jCiGjAfDiNmAjFfHiDeJiDhEiDfKiDgCiDgHjCgMiCpAiDhJiBfLiDfHiDfEiDeDiDfJiCmFiKiEiCmBiClNjCgMiCkKiBeBiClBiCmMiDfGiBfLiDgHiCmJiCkIiCkPiCoJiDhJiBfLiDfHiCmMiImKjChFiBeC_xHqqkZx_
		long lPageHorz = sz.cx / lgptDocPageWidth;
		long lPageVert = sz.cy / lgptDocPageHeight;
		// _xZkqqHx_iPkMiClDiClHiCkMiCoJiBeBjBoFiCkLiClHiCkMiCoJiPoKiNiHiCmNjFoCjAlDiBeC_xHqqkZx_
		if (lPageHorz < 0) lPageHorz = 0;
		if (lPageVert < 0) lPageVert = 0;
		if (g_pEnv->GetDocPageColumn() <= lPageHorz)
			lPageHorz = g_pEnv->GetDocPageColumn() - 1;
		if (g_pEnv->GetDocPageLine() <= lPageVert)
			lPageVert = g_pEnv->GetDocPageLine() - 1;
		// _xZkqqHx_jBfDiDfGiBfLiDgHiCpAjCmKiClFiCmEiCmMiDhJiBfLiDfHjEnEiNiGiCpAiMhGiOfKiBeC_xHqqkZx_
		long lCurrentPage = lCurrentSheetIndex * g_pEnv->GetDocPageColumn() * g_pEnv->GetDocPageLine() +
							lPageVert * g_pEnv->GetDocPageColumn() + lPageHorz + 1;
		pInfo->m_pPD->m_pd.nFromPage = lCurrentPage;
		pInfo->m_pPD->m_pd.nToPage = lCurrentPage;
	}

	// _xZkqqHx_iDiGiBfLiDfFiDgGiBfLiDfOiBeC_xHqqkZx_
	pInfo->m_lpUserData = NULL;
do {
	// _xZkqqHx_jHhAiOiGiCmMiDfEiDeDiDfJiBgJ_xHqqkZx_|A1-A2|_xZkqqHx_iBeB_xHqqkZx_|A3-A4|_xZkqqHx_iBgKiBeC_xHqqkZx_
	mmetol mmPaperWidth, mmPaperHeight;
	//----- _xZkqqHx_jHhAiOiGiCmMiDfEiDeDiDfJiCpAiMhGiOfKiClHiCoJ_xHqqkZx_ -----
	FFGetPaperSize(	mmPaperWidth,
					mmPaperHeight,
					TStrToWStr(pInfo->m_pPD->GetDeviceName()),
					TStrToWStr(pInfo->m_pPD->GetPortName()),
					pInfo->m_pPD->GetDevMode());
	// GetDevMode_xZkqqHx_iKnGjAjEiCpAiMmEiCpBiClOiCmMiCmFiBeB_xHqqkZx_hDevMode_xZkqqHx_iCpAiKeKjFpKiClFiCmEiCkIiCkNjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
	::GlobalUnlock(pInfo->m_pPD->m_pd.hDevMode);
	//----- _xZkqqHx_jFlGiPjBiDhJiBfLiDfHiDfEiDeDiDfJiCpAiOoGjDlO_xHqqkZx_ -----
	mmetol mmDocPageWidth, mmDocPageHeight;
	g_pEnv->GetDocPrnPageSize(mmDocPageWidth, mmDocPageHeight);
	// _xZkqqHx_iDhGiDiKiDjDiDfOiCmMiDgOiBfLiDgIjDeJiCmIjHfNjEjCiCpAiOoGjDlOiBgJ_xHqqkZx_|A1-B1|_xZkqqHx_iBeB_xHqqkZx_|A2-B2|_xZkqqHx_iBeB_xHqqkZx_|A3-B3|_xZkqqHx_iBeB_xHqqkZx_|A4-B4|_xZkqqHx_iBgKiBeC_xHqqkZx_
	mmetol mmHardMarginL, mmHardMarginT, mmHardMarginR, mmHardMarginB;
	::CalcHardMargin(mmHardMarginL, mmHardMarginT, mmHardMarginR, mmHardMarginB, pDC);

	// _xZkqqHx_iIpDiNpMiOjOiCmMiDgIiDeMiDiFiDiBiDjDiDgHiCmMiKgHjBoFjHkGiBeC_xHqqkZx_
	double dRatioOnPrint;
	// _xZkqqHx_iIpDiNpMiOjOiCmMjHfNjEjCiBgJ_xHqqkZx_ |A1-C1|_xZkqqHx_iBeB_xHqqkZx_|A2-C2|_xZkqqHx_iBeC_xHqqkZx_|A3-C3|,|A4-C4|_xZkqqHx_iCmNiPgDiJkBiCmMiCkCiClIiCoKiCkJiCkKjHfNiCmBiClNiPoKiNiHiCmJjFoCjAlDiClDiCoKiCoJiBgKiBeC_xHqqkZx_
	mmetol mmPrnMarginL, mmPrnMarginT, mmPrnMarginR, mmPrnMarginB;

	if (g_pEnv->IsUseDocMarginAsPrnMargin())
	//----- _xZkqqHx_jHfNjEjCiOhHjCoIiCpAiClFiCmIiCkCiBgJjFlGiPjBjHfNjEjCiCkJiCoHiOkJjDkOiMhGiOfKiCmMiBgKiPoKiNiH_xHqqkZx_ -----
	{
		//----- _xZkqqHx_jFlGiPjBjHhAiOiGiDfEiDeDiDfJiCpAiOoGjDlO_xHqqkZx_ -----
		short nPaperType;
		mmetol mmDocPaperW, mmDocPaperH;
		g_pEnv->GetDocPaperSize(nPaperType, mmDocPaperW, mmDocPaperH);
		//----- _xZkqqHx_jFlGiPjBjHhAiOiGjHfNjEjCiCpAiOoGjDlO_xHqqkZx_ -----
		mmetol mmDocMarginL, mmDocMarginT, mmDocMarginR, mmDocMarginB;
		g_pEnv->GetDocPaperMargin(	mmDocMarginL, mmDocMarginT,
									mmDocMarginR, mmDocMarginB);
		//----- _xZkqqHx_jHhAiOiGiCmMjHfNjEjCiCmGiKgHjBoFjHkGiCpAiMhGiOfK_xHqqkZx_ -----
		::CalcAutoMargin(mmPrnMarginL, mmPrnMarginT, mmPrnMarginR, mmPrnMarginB,
						dRatioOnPrint,
						mmDocPaperW, mmDocPaperH, mmDocPageWidth, mmDocPageHeight,
						mmDocMarginL, mmDocMarginT, mmDocMarginR, mmDocMarginB,
						mmPaperWidth, mmPaperHeight,
						mmHardMarginL, mmHardMarginT, mmHardMarginR, mmHardMarginB);
	} else
	//----- _xZkqqHx_jHfNjEjCiOhHjCoIiCpAiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iIpDiNpMiOjOiCmMjHfNjEjCiCpAiOoGjDlOiBeC_xHqqkZx_
		g_pEnv->GetPrnPaperMargin(	mmPrnMarginL, mmPrnMarginT,
									mmPrnMarginR, mmPrnMarginB);
		// _xZkqqHx_iIpDiNpMjHfNjEjCiCkKiDhGiDiKiDjDiDfOiCmMiDgOiBfLiDgIjHfNjEjCiCoGiCoIiPkMiClDiCkCiPoKiNiHiCmNiIpDiNpMiClFiCmIiCkCiBeC_xHqqkZx_
		if (mmPrnMarginL < mmHardMarginL || mmPrnMarginT < mmHardMarginT ||
			mmPrnMarginR < mmHardMarginR || mmPrnMarginB < mmHardMarginB) break;
		// _xZkqqHx_iIpDiNpMiCmMiDhJiBfLiDfHiDfEiDeDiDfJiCpAiMhGiOfKiBgJ_xHqqkZx_|C1-C2|_xZkqqHx_iBeB_xHqqkZx_|C3-C4|_xZkqqHx_iBgKiBeC_xHqqkZx_
		mmetol mmPrnPageW = mmPaperWidth - mmPrnMarginL - mmPrnMarginR;
		mmetol mmPrnPageH = mmPaperHeight - mmPrnMarginT - mmPrnMarginB;

		// _xZkqqHx_iIpDiNpMiDhJiBfLiDfHiDfEiDeDiDfJiCkKiCePiImIiJlKiCmIiCoHiIpDiNpMiClFiCmIiCkCiBeC_xHqqkZx_
		if (almost0(mmPrnPageW) || almost0(mmPrnPageH)) break;
		if (mmPrnPageW <= 0.0 || mmPrnPageH <= 0.0) break;
		// _xZkqqHx_iPgDiBeFiJkBiCmMiKgHjBoFjHkGiCpAiMhGiOfKiBeC_xHqqkZx_
		double dRatioW = mmPrnPageW / mmDocPageWidth;
		double dRatioH = mmPrnPageH / mmDocPageHeight;
		// _xZkqqHx_iIpDiNpMiOjOiCmMiDgIiDeMiDiFiDiBiDjDiDgHiCmMiKgHjBoFjHkGiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
		dRatioOnPrint = dRatioW < dRatioH ? dRatioW : dRatioH;
	}

	//----- _xZkqqHx_iIpDiNpMiCmJiOgHjHhAiClHiCoJiDgGiBfLiDfOiCpAiPiAjEpF_xHqqkZx_ -----
	FCOnPrintData* pData = new FCOnPrintData;
	// _xZkqqHx_iIpDiNpMiJmCjEfMiCmIjEmNiImNiCmMjFjNiBeFiNiCiClDiBeC_xHqqkZx_
	pData->mmptPrintable.x = mmPaperWidth - mmHardMarginL - mmHardMarginR;
	pData->mmptPrintable.y = mmPaperHeight - mmHardMarginT - mmHardMarginB;
	// _xZkqqHx_iIpDiNpMiOjOiCmMiKgHjBoFjHkGiBgJiOmAiNmAjFfHjEoEjHkGiCmFiBgKiBeC_xHqqkZx_
	pData->dRatioOnPrint = dRatioOnPrint;
	// _xZkqqHx_iDhGiDiKiDjDiDfOiCmMjHfNjEjCiCpAiPjMiCkCiClNiNlGiPoDiIpDiNpMiKeKiOgOiImKjChFiBeC_xHqqkZx_
	pData->mmptMarginBC.SetPoint(	mmPrnMarginL - mmHardMarginL,
									mmPrnMarginT - mmHardMarginT);
	// _xZkqqHx_iHeE_xHqqkZx_ |A1-C1|_xZkqqHx_iBeB_xHqqkZx_|A3-C3|_xZkqqHx_iCmMiLjHjHkDiBeC_xHqqkZx_
	pData->mmptMarginAC.SetPoint(mmPrnMarginL, mmPrnMarginT);
	// _xZkqqHx_iHeF_xHqqkZx_ _xZkqqHx_jHhAiOiGiDfEiDeDiDfJiBeC_xHqqkZx_
	pData->mmptPaperSize.SetPoint(mmPaperWidth, mmPaperHeight);
	pInfo->m_lpUserData = pData;
	return;
} while (FALSE);
	// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiBeC_xHqqkZx_
	// IDS_ERR_MSG_WRONG_VALUE_MARGIN = "_xZkqqHx_iIpDiNpMjHfNjEjCiCmMjCgMiCkKiKnEiIoBiCmBiCmEiCkCiCnMiClH_xHqqkZx_"
	FFErrorBox(IDS_ERR_MSG_WRONG_VALUE_MARGIN);
} // CFCDynamicDrawView::OnBeginPrinting.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEndPrinting
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNmFiMoDiCmMiDhJiBfLiDfHiCmMiIpDiNpM_xHqqkZx_(OnPrint)_xZkqqHx_iMoDiCmJiIoKiJpBiClOiCkPiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.07.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEndPrinting (CDC* /*pDC*/, CPrintInfo* pInfo)
{
	// _xZkqqHx_iDiGiBfLiDfFiDgGiBfLiDfOiBeC_xHqqkZx_
	FCOnPrintData* pData = (FCOnPrintData*)pInfo->m_lpUserData;
	if (pData != NULL)
	{
		delete pData;
		pInfo->m_lpUserData = NULL;
	}
} // CFCDynamicDrawView::OnEndPrinting.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnPrint
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMiDhJiBfLiDfHiCmMiIpDiNpMiCnMiClNiCmNiDhGiDiMiDhCiDiFiBfLiCmMiClNiCnP_xHqqkZx_
 *			_xZkqqHx_iDhEiDiMiBfLiDiAiDiPiBfLiDeOiCkKiMmEiCnBiPgPiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDC		:_xZkqqHx_iIpDiNpMjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeC_xHqqkZx_
 *			pInfo	:_xZkqqHx_iIpDiNpMiPoOjFpBiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iIpDiNpMiClDiCoKiCoJiKgFiDhJiBfLiDfHiCmFiBeBiDhEiDiMiBfLiDiAiDiPiBfLiDeOiCmN_xHqqkZx_ OnPrepareDC _xZkqqHx_iDiBiDjDiDgPiKnGjAjEiCpA_xHqqkZx_
 *			_xZkqqHx_iMmEiCnBiPgPiClFiClNjClMiMoDiCmJiClBiCmMiKnGjAjEiCpAiMmEiCnBiPgPiClFiCnMiClHiBeC_xHqqkZx_
 *			OnBeginPrinting_xZkqqHx_iKnGjAjEiCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnPrint (CDC* pDC, CPrintInfo* pInfo)
{
	// _xZkqqHx_iDiGiBfLiDfFiDgGiBfLiDfOiCpAiOoGjDlOiBeC_xHqqkZx_
	FCOnPrintData* pData = (FCOnPrintData*)pInfo->m_lpUserData;
	if (pData == NULL) return;

	// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiCmJiDhGiDiKiDjDiDfOjFgAiJoGiCmFiCkAiCoJiClBiCmGiCpAjAnNjCoIiBeC_xHqqkZx_
	const FCAutoBackup<FTDrawWhich> backupDrawWhich(g_->eDrawWhich, FDDR_PRINTER);
	// _xZkqqHx_iDhGiDiKiDjDiDfOiCmMiCgDiCgPiCgM_xHqqkZx_(Dot Per Milimeter)_xZkqqHx_iCpAiOoGjDlOiBeC_xHqqkZx_
	double dDpm = double(pDC->GetDeviceCaps(LOGPIXELSX)) / 25.4;
	// _xZkqqHx_iDfIiDfOiDgCiDeOiCmJiPpDjBnEiPoOjFpBiCpAjBnCjEpAiBeC_xHqqkZx_
	pDC->SaveDC();
	// _xZkqqHx_iIpDiNpMiOjOiKgHjBoFjHkGiCmGiDhGiDiKiDjDiDfOiCmMiCgDiCgPiCgMiCkJiCoHiDfJiBfLiDiAjCgMiCpAiOfKiPgPiClFiBeBjAnNjCoIiBeC_xHqqkZx_
	const FCAutoBackup<double> backupZoom(g_->dZoom, dDpm * pData->dRatioOnPrint);
	// _xZkqqHx_iDhAiDiMiDgCiDgHiCpAiJpAiPmBiBeC_xHqqkZx_
	const FCAutoBackup<CPalette*> backupFDPalette(g_pFDPalette, NULL);

	ASSERT(!almost0(g_pEnv->GetDocPageColumn()));

	//----- _xZkqqHx_iIpDiNpMiKeKiOgOiNmAjFfHiCpAiMhGiOfK_xHqqkZx_ -----
	// _xZkqqHx_iDfGiBfLiDgHiImKjChFiCmMiMhGiOfKiBeC_xHqqkZx_
	const int iSheetIdx = (pInfo->m_nCurPage - 1) /
							(g_pEnv->GetDocPageColumn() * g_pEnv->GetDocPageLine());
	const int iCurPage = (pInfo->m_nCurPage - 1) %
							(g_pEnv->GetDocPageColumn() * g_pEnv->GetDocPageLine());
	// _xZkqqHx_iDhJiBfLiDfHiImKjChFiCmMiMhGiOfKiBeC_xHqqkZx_
	const int iClmIdx = iCurPage % g_pEnv->GetDocPageColumn();
	const int iLinIdx = iCurPage / g_pEnv->GetDocPageColumn();

	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMiDhJiBfLiDfHiDfEiDeDiDfJiCpAiOoGjDlOiBeC_xHqqkZx_
	mmetol mmDocPageWidth, mmDocPageHeight;
	g_pEnv->GetDocPrnPageSize(mmDocPageWidth, mmDocPageHeight);
	// _xZkqqHx_iIpDiNpMiDhJiBfLiDfHjEmNiImNiCpAiOoGjDlOiBeC_xHqqkZx_
	DBLRect mmrtPrintPage(	g_pEnv->GetDocPageLeftTop().x + (iClmIdx * mmDocPageWidth),
							g_pEnv->GetDocPageLeftTop().y + (iLinIdx * mmDocPageHeight),
							g_pEnv->GetDocPageLeftTop().x + ((iClmIdx + 1) * mmDocPageWidth),
							g_pEnv->GetDocPageLeftTop().y + ((iLinIdx + 1) * mmDocPageHeight));
	// _xZkqqHx_iDfGiBfLiDgHiDfEiDeDiDfJiCpAiNgMjHlGiClFiCmEiBeBiIpDiNpMiClDiCoKiCoJjEmNiImNiCpAiOoGjDlOiBeC_xHqqkZx_
	DBLRect mmrtPrintArea = mmrtPrintPage & g_pEnv->GetSheetRect();

	// _xZkqqHx_iDhGiDiKiDjDiDfOiCmFiIpDiNpMiJmCjEfMiCmIjEmNiImNiCpAiBeBiDeMiDiDiDjDiDgPiDfIiPoDiCmMjIfPjHjNiNmAjFfHiCmMiLoJiMgAiCmGiClFiCmEiOoGjDlOiBeC_xHqqkZx_
	// mmrtPrintPage_xZkqqHx_iCmNiDeMiDiDiDjDiDgPiDfIiPoDiCmMiNmAjFfHiBeB_xHqqkZx_pData->mmptMarginBC_xZkqqHx_iCmNjHhAiOiGiPoDiCmMiNmAjFfHiCmFiCkAiCoJiClNiCnPiBeB_xHqqkZx_
	// _xZkqqHx_iClLiCmMjFmPiKlHiCmNiInJiCmIiCoJiDfJiBfLiDiAjCgMiCpAjHhAiCkCiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
	CRect lgrtPrintableRect;
	lgrtPrintableRect.left = mm2lg(mmrtPrintPage.left) - mm2lg(pData->mmptMarginBC.x, dDpm);
	lgrtPrintableRect.top = mm2lg(mmrtPrintPage.top) - mm2lg(pData->mmptMarginBC.y, dDpm);
	lgrtPrintableRect.right = lgrtPrintableRect.left + mm2lg(pData->mmptPrintable.x, dDpm);
	lgrtPrintableRect.bottom = lgrtPrintableRect.top + mm2lg(pData->mmptPrintable.y, dDpm);

	//----- _xZkqqHx_iIpDiNpMiJmCjEfMiLoJiMgAiCmMiNlGiPoDiCpAjFgAiJoGiDeJiDhEiDfKiDgCiDgHjCgMiCmGiClFiCmEjAnNjCoI_xHqqkZx_ -----
	const FCAutoBackup<long> backupOffsetX(g_->lgOffsetX, lgrtPrintableRect.left);
	const FCAutoBackup<long> backupOffsetY(g_->lgOffsetY, lgrtPrintableRect.top);

	pDC->SetWindowOrg(0, 0);
	pDC->SetViewportOrg(0, 0);

	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	ClearRgn();
	// _xZkqqHx_iIpDiNpMjEmNiImNiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmGiClFiCmEjAnNjCoIiBeC_xHqqkZx_
	AddPrintRgn(mmrtPrintArea);

//----- 05.06.18 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	FCAutoDC atDC(pDC);
	if (g_pReg->GetIsPaintSheetOnPrint())
	//----- _xZkqqHx_iIpDiNpMiOjOiCmJiDfGiBfLiDgHiCpAjDgIiCoIiCmCiCnEiClHjAnNjCoIiCkKiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfGiBfLiDgHjAeGiCmJjEjCjAeGiImIiKePiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmNiBeBjEhHiMgJiCpAjDgIiCoIiCmCiCnEiClHiBeC_xHqqkZx_
		COLORREF colSheet = g_pReg->GetOptiSheetColor();
		if (colSheet != FD_COLREF_WHITE)
			atDC.FillRect(mm2lg(mmrtPrintArea), FCAtBrush(colSheet));
	}
//----- 05.06.18 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_jFfMiOkGjHhAiChJiDeJiBfLiDfPiBfLiCpAiOoGjDlOiBeC_xHqqkZx_
	FCZOrder zOrder;
	SheetID stid = g_pDoc->GetSheetManager()->SheetIndexToID(iSheetIdx);
	FCLayerManager*	pSheet = g_pDoc->GetSheetManager()->GetSheet(stid);
	pSheet->GetZOrder(zOrder, FDOZ_ON_PRINT, 0, pSheet->GetCurrentLayerIdx());
	FCZOrderIterator iObj;
	for (zOrder.Begin(iObj); !iObj.IsEnd(); iObj++)
	{
		if (!(mmrtPrintArea & (*iObj)->GetOuterFrame()).IsRectNull())
			(*iObj)->OnDraw(pDC, FALSE);
	}
	//----- _xZkqqHx_iDhNiBfLiDfHiDjDiBgJiDfGiBfLiDgHiCpAiNgMjHlGiBgKiCmMjFjEjFkKiCpAiBeBjEjCiCmFiPoDiPjBiCkLiClHiCoJ_xHqqkZx_ -----
	atDC.SetStockBrush(WHITE_BRUSH);
	atDC.SetStockPen(NULL_PEN);
	CRect lgrtPrintableEx = lgrtPrintableRect;
	lgrtPrintableEx.InflateRect(10, 10);
	// _xZkqqHx_jHhAiOiGiNlGiCpAjDgIiCoIiCmCiCnEiClHiBeC_xHqqkZx_
	atDC.Rectangle(	lgrtPrintableEx.left,
					lgrtPrintableEx.top,
					mm2lg(mmrtPrintArea.left),
					lgrtPrintableEx.bottom);
	// _xZkqqHx_jHhAiOiGiPoDiCpAjDgIiCoIiCmCiCnEiClHiBeC_xHqqkZx_
	atDC.Rectangle(	lgrtPrintableEx.left,
					lgrtPrintableEx.top,
					lgrtPrintableEx.right,
					mm2lg(mmrtPrintArea.top));
	// _xZkqqHx_jHhAiOiGiJeFiCpAjDgIiCoIiCmCiCnEiClHiBeC_xHqqkZx_
	atDC.Rectangle(	mm2lg(mmrtPrintArea.right),
					lgrtPrintableEx.top,
					lgrtPrintableEx.right,
					lgrtPrintableEx.bottom);
	// _xZkqqHx_jHhAiOiGiJlKiCpAjDgIiCoIiCmCiCnEiClHiBeC_xHqqkZx_
	atDC.Rectangle(	lgrtPrintableEx.left,
					mm2lg(mmrtPrintArea.bottom),
					lgrtPrintableEx.right,
					lgrtPrintableEx.bottom);

	//----- _xZkqqHx_iDhEiDgCiDfOiCmMiIpDiNpM_xHqqkZx_ -----
	// _xZkqqHx_iDhJiBfLiDfHjEnEiNiGiCpAiIpDiNpMiClHiCoJiCkJiBeI_xHqqkZx_
	BOOL bIsPrintPageNumber = g_pEnv->GetIsPrintFooter();
	// _xZkqqHx_iDhJiBfLiDfHjEnEiNiGiCmMjAeGiCkKiOhHjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiCmNiIpDiNpMiClFiCmIiCkCiBeC_xHqqkZx_
	if (g_pEnv->GetFooterColor() == FD_S_COLOR_TRANSPARENT ||
		g_pEnv->GetFooterColor() == FD_S_COLOR_UNSPECIFY ||
		g_pEnv->GetFooterColor() == FD_S_COLOR_UNUSE ||
		g_pEnv->GetFooterText()[0] == L'\0')
		bIsPrintPageNumber = FALSE;
	if (bIsPrintPageNumber)
	//----- _xZkqqHx_iDhJiBfLiDfHjEnEiNiGiCpAiIpDiNpMiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		//----- _xZkqqHx_iCnMiClIiDhJiBfLiDfHjEnEiNiGjFlGiOjKjHpBiCpAiNoMjAkMiClHiCoJ_xHqqkZx_ -----
		// _xZkqqHx_jBiNiDfGiBfLiDgHjAjEiBeC_xHqqkZx_
		long lTotalSheet = g_pDoc->GetSheetManager()->GetSheetIndexSize();
		// _xZkqqHx_iCfAiDfGiBfLiDgHjCiGiCmMjBiNiDhJiBfLiDfHjAjEiBeC_xHqqkZx_
		long lTotalPageInOne = g_pEnv->GetDocPageColumn() * g_pEnv->GetDocPageLine();
		// _xZkqqHx_jBfDiDfGiBfLiDgHjCiGiCmMjBiNiDhJiBfLiDfHjAjEiBeC_xHqqkZx_
		long lTotalPageInAll = lTotalPageInOne * lTotalSheet;
		// _xZkqqHx_jBfDiDfGiBfLiDgHjCmKiClFiCmEiCmMiMlLiNnNiCmMiDhJiBfLiDfHjEnEiNiGiBeC_xHqqkZx_
		long lPageNumberInAll = pInfo->m_nCurPage;
		// _xZkqqHx_iMlLiNnNiCmMiDfGiBfLiDgHiCmJiCkIiCkPiCoJiMlLiNnNiCmMiDhJiBfLiDfHjEnEiNiGiBeC_xHqqkZx_
		long lPageNumberInOne = ((lPageNumberInAll - 1) % lTotalPageInOne) + 1;
		// _xZkqqHx_iMlLiNnNiCmMiDfGiBfLiDgHjEnEiNiGiBeC_xHqqkZx_
		long lSheetNumber = ((lPageNumberInAll - 1) / lTotalPageInOne) + 1;
		// _xZkqqHx_iDfGiBfLiDgHiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
		WString wstrSheetTitle;
		SheetID stid = g_pDoc->GetSheetManager()->SheetIndexToID(lSheetNumber - 1);
		g_pDoc->GetSheetManager()->GetSheetInfo(wstrSheetTitle, stid);
		// _xZkqqHx_iIpDiNpMiClHiCoJjFlGiOjKjHpBiCpAiOoGjDlOiBeC_xHqqkZx_
		WString wstrPrintText;
		FFEvalPageNumberText(	wstrPrintText,
								g_pEnv->GetFooterText(),
								lPageNumberInOne,
								lPageNumberInAll,
								lTotalPageInOne,
								lTotalPageInAll,
								lSheetNumber,
								lTotalSheet,
								wstrSheetTitle);

		// _xZkqqHx_jHhAiOiGjEmNiImNiCpAiBeBiDeMiDiDiDjDiDgPiDfIiPoDiCmMjIfPjHjNiNmAjFfHiCmMiLoJiMgAiCmGiClFiCmEiOoGjDlOiBeC_xHqqkZx_
		// mmrtPrintPage_xZkqqHx_iCmNiDeMiDiDiDjDiDgPiDfIiPoDiCmMiNmAjFfHiBeB_xHqqkZx_pData->mmptMarginAC_xZkqqHx_iCmNjHhAiOiGiPoDiCmMiNmAjFfHiCmFiCkAiCoJiClNiCnPiBeB_xHqqkZx_
		// _xZkqqHx_iClLiCmMjFmPiKlHiCmNiInJiCmIiCoJiDfJiBfLiDiAjCgMiCpAjHhAiCkCiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
		CRect lgrtPaperRect;
		lgrtPaperRect.left = mm2lg(mmrtPrintPage.left) - mm2lg(pData->mmptMarginAC.x, dDpm);
		lgrtPaperRect.top = mm2lg(mmrtPrintPage.top) - mm2lg(pData->mmptMarginAC.y, dDpm);
		lgrtPaperRect.right = lgrtPaperRect.left + mm2lg(pData->mmptPaperSize.x, dDpm);
		lgrtPaperRect.bottom = lgrtPaperRect.top + mm2lg(pData->mmptPaperSize.y, dDpm);

		// _xZkqqHx_iDhEiDgCiDfOjHhAiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
		LOGFONT logFont;
		g_pEnv->GetFooterFont().ReqInit(logFont, 0.0, 0, dDpm);
		atDC.SetFont(&logFont);
		atDC.SetTextColor(g_pEnv->scid2cref(g_pEnv->GetFooterColor()));
		atDC.SetBkMode(TRANSPARENT);
		// _xZkqqHx_iDgFiDeMiDfIiDgHiCmMiDfEiDeDiDfJiCpAiOoGjDlOiBeC_xHqqkZx_
		CSize szText = atDC.GetTextExtent(wstrPrintText, wstrPrintText.GetLength());
		// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAjFfMiOkGiClHiCoJiNlGiPoDiCmMiNmAjFfHiCpAiOfKiPgPiBeC_xHqqkZx_
		CPoint ptPageNumberLT;
		switch (g_pEnv->GetHorzFooterPosition())
		{
		case 0:	// _xZkqqHx_iNlGiBeC_xHqqkZx_
			ptPageNumberLT.x = lgrtPaperRect.left;
			break;
		case 1:	// _xZkqqHx_iNlGiJeFjCiGiJjLiBeC_xHqqkZx_
			ptPageNumberLT.x = (lgrtPaperRect.left + lgrtPaperRect.right - szText.cx) / 2;
			break;
		case 2:	// _xZkqqHx_iJeFiBeC_xHqqkZx_
			ptPageNumberLT.x = lgrtPaperRect.right - szText.cx;
			break;
		}
		switch (g_pEnv->GetVertFooterPosition())
		{
		case 0:	// _xZkqqHx_iPoDiBeC_xHqqkZx_
			ptPageNumberLT.y = lgrtPaperRect.top;
			break;
		case 1:	// _xZkqqHx_iPoDiJlKjCiGiJjLiBeC_xHqqkZx_
			ptPageNumberLT.y = (lgrtPaperRect.top + lgrtPaperRect.bottom - szText.cy) / 2;
			break;
		case 2:	// _xZkqqHx_iJlKiBeC_xHqqkZx_
			ptPageNumberLT.y = lgrtPaperRect.bottom - szText.cy;
			break;
		}
		ptPageNumberLT.x += mm2lg(g_pEnv->GetHorzFooterOffset(), dDpm);
		ptPageNumberLT.y += mm2lg(g_pEnv->GetVertFooterOffset(), dDpm);

		// _xZkqqHx_iDgFiDeMiDfIiDgHiCmMjFfMiOkGjEmNiImNiCkKjHhAiOiGiCmJiOpLiCnMiCoJiPoKiNiHiCmMiCnNiIpDiNpMiBeC_xHqqkZx_
		// lgrtPrintableRect_xZkqqHx_iCmFjAkHiMmAiClFiCmIiCkCiCmMiCmNiBeBjBlNiPkNiCmMiDeJiBfLiDgPiBfLiCmNiLjGjHgFiClHiCoJiClNiCnPiBeC_xHqqkZx_
		if (lgrtPaperRect.PtInRect(ptPageNumberLT) &&
			lgrtPaperRect.PtInRect(ptPageNumberLT + szText))
		{
			atDC.ExtTextOut(ptPageNumberLT.x, ptPageNumberLT.y, wstrPrintText, CP_ACP, NULL);
		}
//----- 05.06.21 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		atDC.SetPen(PS_SOLID, 2, RGB(0,0,0));
//		atDC.Rectangle(lgrtPrintableRect);
//----- 05.06.21 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	}

	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	ClearRgn();
	// _xZkqqHx_jBnCjEpAiClFiClNiPoOjFpBiCpAjFjMiLeBiBeC_xHqqkZx_
	pDC->RestoreDC(-1);
} // CFCDynamicDrawView::OnPrint.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEndPrintPreview
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiMiDhCiDiFiBfLiCpAiPeJjHlJiClHiCoJiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_iDeJiDjDiDiJiDeDiDjDiDhNiDgKiDiFiDeBiDiLiOfBiPmG_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEndPrintPreview (CDC* pDC, CPrintInfo* pInfo, POINT point, CPreviewView* pView)
{
//----- 02.08.07 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (_xZkqqHx_iIpDiNpMiDhGiDiMiDhCiDiFiBfLiOjOiCmJiDgAiDgCiDhGiDfIiDgHiDeBjBiAiNoMiClHiCoJiCmGjHiOiClPiCoJ_xHqqkZx_)-----
	// _xZkqqHx_iDhGiDiMiDhCiDiFiBfLiPiIjHjNiPeJjHlJiCpAiDhEiDiMiBfLiDiAiCmJjCmKjCgNiBeC_xHqqkZx_
	FFGetMainWnd()->OnEndPrintPreview();
//----- 02.08.07 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (_xZkqqHx_iIpDiNpMiDhGiDiMiDhCiDiFiBfLiOjOiCmJiDgAiDgCiDhGiDfIiDgHiDeBjBiAiNoMiClHiCoJiCmGjHiOiClPiCoJ_xHqqkZx_)-----
	// _xZkqqHx_iDgGiDeCiDfIiDhGiDiMiDeDjFgAiJoGiDiCiBfLiDgIiBeC_xHqqkZx_
	g_->eDrawWhich = FDDR_DISPLAY;
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnEndPrintPreview(pDC, pInfo, point, pView);
	// _xZkqqHx_iDhGiDiMiDhCiDiFiBfLiCmMiKnEiCmJ_xHqqkZx_Window_xZkqqHx_iDfEiDeDiDfJiCkKjFmPiNfIiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmJjBmOiJjOiBeC_xHqqkZx_
	UpdateScrollSize();
// 03.08.03 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	Invalidate();
	PostRgnRedraw(TRUE);
} // CFCDynamicDrawView::OnEndPrintPreview.

/////////////////////////////////////////////////////////////////////////////
// OLE _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHiCmMiDfEiDhMiBfLiDgHiCmGiDfCiDhNiDjDiDgI_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::IsSelected
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClN_xHqqkZx_OLE_xZkqqHx_iCkKiBeB_xHqqkZx_OLE_xZkqqHx_jFjEjFgJiCmGiClFiCmEjBeJjBpAiClDiCoKiCmEiCkCiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDocItem	:OLE
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	:_xZkqqHx_jBeJjBpAiClDiCoKiCmEiCkCiCoJ_xHqqkZx_.
 *			FALSE	:_xZkqqHx_jBeJjBpAiClDiCoKiCmEiCkCiCmIiCkC_xHqqkZx_.
 *************************************************************************/
BOOL CFCDynamicDrawView::IsSelected (const CObject* pDocItem) const
{
	// CMolipDrawCntrItem4_0 _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiClOiCkPiCmFiNfMjAkMiClDiCoKiCmEiCkCiCoJiOjOiCmJiCmN_xHqqkZx_
	// _xZkqqHx_iImIiJlKiCmJiOkGiClHjFpLjGeAiCmFiPfMjFkKiCmFiClHiBeCiInJiCmIiCoJjBeJjBpAjFpLiOkOiCpAiDgOiDjDiDgIiDiLiClHiCoJiCmGiCkLiCmJiCmN_xHqqkZx_
	// _xZkqqHx_iClBiCmMiPoKiPiKiCpAiPjBiCkLiKlHiCkGiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_

	// TODO: _xZkqqHx_iClBiCmMiKnGjAjEiCmNjBeJjBpAiClDiCoKiClN_xHqqkZx_ OLE _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHiCmMiDeBiDeDiDgFiDiAiCmJjBmOiClHiCoJiDgFiDfIiDgHiCpAiOmAiMlLiClFiCnMiClHiBeC_xHqqkZx_
	ObjDynabaseVector::const_iterator i;
	for (i = SelectObjVector().begin(); i != SelectObjVector().end(); i++)
	{
		if ((*i)->IsKindOf(FDOJ_OLE))
		{
			if (reinterpret_cast<FCObjOle*>(*i)->GetOleClientItem() == pDocItem) return TRUE;
		}
	}
	return FALSE;
} // CFCDynamicDrawView::IsSelected.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnInsertObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeJiDhFiDfHiDeGiDeOiDgHiCmMiNoMjAkMiCmGjDfMiCoIjFhEiCkPiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.03 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnInsertObject ()
{
	// _xZkqqHx_jAfGiLeLiCmM_xHqqkZx_ CMolipDrawCntrItem4_0 _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiPoOjFpBiCpAjDlOiCoJiClNiCnPiCmM_xHqqkZx_
	// _xZkqqHx_jFfHiPiAjDeJiCmIiDeJiDhFiDfHiDeGiDeOiDgHjBhNjDpMiDfPiDeDiDeBiDiNiDeP_xHqqkZx_ _xZkqqHx_iDhLiDgCiDeOiDfIiCpAiMmEiCnBiPgPiClFiCnMiClHiBeC_xHqqkZx_

	// _xZkqqHx_iDiKiDjDiDeOjDfMiCoIjFhEiCkPiCmNjGlDiMpIiCmJjAnNjCoIiBeC_xHqqkZx_
	// _xZkqqHx_iDiKiDjDiDeOjDfMiCoIjFhEiCkPiCmJiClHiCoJiCmGiBeB_xHqqkZx_DD4_xZkqqHx_jFnCiPfHjCiGiCmJjBlMiCmMiDeBiDhGiDiKiCmF_xHqqkZx_OLE_xZkqqHx_iDgGiBfLiDfOiCmM_xHqqkZx_
	// _xZkqqHx_jFnCiPfHiCkKjDkPiOjOiCmJiCmFiCkLiCmEiClFiCnMiCkEiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiClNiCnPiBeB_xHqqkZx_DD4_xZkqqHx_iDhEiDeAiDeDiDiLiPeJjHlJiOjOiCmJiCoAiBeB_xHqqkZx_OLE_xZkqqHx_iDgGiBfLiDfOjFnCiPfHiPpDjBnEiCkKiInLiOjNiClDiCoKiCmE_xHqqkZx_
	// ~FCObjOle_xZkqqHx_iCmFiDeHiDiJiBfLiCkKjEkNjAlGiClHiCoJiBeC_xHqqkZx_
	// Undo_xZkqqHx_iCoAiCkEiCnMiCkNiNhDiCkJiCmIiCkNiCmIiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iCnMiClNiBeBjHjKjHpAjFlGiPjBiCmMiBeBjFnCiPfHiLeMjIfOiCpAjBfDiCmEiOgDiClHiBeBiCmGiCkCiCkEiKfEjEePiCkJiCoHiKePiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
// 06.03.27 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	COleInsertDialog dlg;
	COleInsertDialog dlg(IOF_SELECTCREATENEW|IOF_DISABLELINK);
	if (dlg.DoModal() != IDOK)
		return;

	BeginWaitCursor();

	CMolipDrawCntrItem4_0* pItem = NULL;
	TRY
	{
		// _xZkqqHx_iClBiCmMiDgIiDeMiDiFiDiBiDjDiDgHiCmJjAnKjBlBiClDiCoKiClNjAfGiLeLiCmMiDeBiDeDiDgFiDiAiCpAiNoMjAkMiClFiCnMiClHiBeC_xHqqkZx_
		CFCFoundDoc* pDoc = g_pDoc;
		ASSERT_VALID(pDoc);
		pItem = new CMolipDrawCntrItem4_0(pDoc);
		ASSERT_VALID(pItem);

		// _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_ _xZkqqHx_iDgGiBfLiDfOiCkJiCoHiDeBiDeDiDgFiDiAiCpAiPiJiKpKiJlLiClFiCnMiClHiBeC_xHqqkZx_
		if (!dlg.CreateItem(pItem))
			AfxThrowMemoryException();  // _xZkqqHx_jHoBiKePiPiIjHjNiCpAiNhDiCkCiCnMiClHiBeC_xHqqkZx_
		ASSERT_VALID(pItem);

		if (pItem->GetType() == OT_LINK)
		// _xZkqqHx_iDiKiDjDiDeO_xHqqkZx_ _xZkqqHx_iDeBiDeDiDgFiDiAiCmMiPoKiNiH_xHqqkZx_
		{
			AfxDebugBreak();
		}


//----- 05.05.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// _xZkqqHx_iCnMiClOiIoKjDhIiCoAiLeMjIfOiDfKiDgCiDfGiDiHiDjDiCpAiKeKiCkCiCmEiCkCiCmIiCkCiPpDjBnEiCmFiClBiClBiCkKiMmEiCnBiPgPiClDiCoKiClNiPoKiNiHiCmNiBeB_xHqqkZx_
		// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCkKiKeKiCkCiCmEiCkCiCmIiCkCiPpDjBnEiCmFiCkAiCoJiBeC_xHqqkZx_
		// FCObjDynabase::RegisterObjID_xZkqqHx_iKnGjAjEiCmFiCmNiBeB_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCkKiNoMjAkMiNmPiCnNiCmFiCmIiCkPiCoKiCmO_xHqqkZx_
		// _xZkqqHx_iCmIiCoHiCmIiCkCiClNiCnPiBeBiClBiClBiCmFjAoGiCmJiDfKiDgCiDfGiDiHiDjDiCpAiKeKiCkCiCmE_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiNoMjAkMiClDiClJiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
		g_pDoc->SessionBegin();
//----- 05.05.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

		// OLE_xZkqqHx_jFjEjFgJiCpAiNoMjAkMiBeCiDfEiDeDiDfJiCmN_xHqqkZx_OLE_xZkqqHx_iDeBiDeDiDgFiDiAjAnNjCoIiOjOiCmJiMiIjCoIiClHiCoJiClNiCnPiBeBjDeLjDjGiCmFjHmHiCkCiBeC_xHqqkZx_
		FCObjOle* pObj = (FCObjOle*)::NewFDObjAny(FDOJ_OLE);
		// OLE_xZkqqHx_jFjEjFgJiCmJ_xHqqkZx_OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCpAjAnNjCoIiClHiCoJiBeCiClBiCmMiOjOiBeBjFjEjFgJiDfEiDeDiDfJiCoAiMiIjCoIiClDiCoKiCoJiBeC_xHqqkZx_
		pObj->SetOleClientItemAndSize(pItem);
		// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAiOoGjDlOiClFiBeBjFjEjFgJiCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
		pObj->RegisterObjID();
		//----- _xZkqqHx_jFjEjFgJiCkKiJoGjGmKiCmMjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiInKjDkO_xHqqkZx_ -----
		// _xZkqqHx_iJoGjGmKiCmMjFfMiOkGjHmMiIoGiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
		DBLRect mmrtClient;
		GetClientRectMM(mmrtClient);
		// _xZkqqHx_jFjEjFgJiDfEiDeDiDfJiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
		DBLRect mmrtFrame = pObj->GetResizeFrame();
		mmrtFrame += mmrtClient.CenterPoint() - mmrtFrame.CenterPoint();
		mmrtFrame += g_pEnv->CheckFrameInSheetEx(mmrtFrame);
		// _xZkqqHx_iInKjDkOiPiIjHjNiBeC_xHqqkZx_
		DBLPoint mmptMove = mmrtFrame.CenterPoint() - pObj->GetResizeFrame().CenterPoint();
		pObj->Move(mmptMove.x, mmptMove.y);

//----- 05.05.27 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
//		g_pDoc->SessionBegin();
//----- 05.05.27 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
		// _xZkqqHx_jFjEjFgJjAlGjAkMiCmMiLeMjIfOiBeC_xHqqkZx_
		g_pDoc->MulticmdCreate1Obj(pObj, g_pDoc->GetCurrentSheetId(), LAST_LAYER_ORDER);
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
		g_pDoc->SessionEnd();

		// _xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiCpAiJpAiPjMiBeC_xHqqkZx_
		ClearSelectObj();
		// _xZkqqHx_jAfGiClFiCkCjFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiBeC_xHqqkZx_
		AppendSelectObj(pObj);
		// OLE_xZkqqHx_jFjEjFgJjFnCiPfHiPpDjBnEiCmJiBeC_xHqqkZx_
		PostMessage(WM_COMMAND, ID_TOOL_ANY_EDIT, (LPARAM)0);

		pDoc->UpdateAllViews(NULL);
	}
	CATCH(CException, e)
	{
		if (pItem != NULL)
		{
			ASSERT_VALID(pItem);
			pItem->Delete();
		}
		FFErrorBox(IDP_FAILED_TO_CREATE);
	}
	END_CATCH

	EndWaitCursor();
} // CFCDynamicDrawView::OnInsertObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateOleInsertNew
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeJiDhFiDfHiDeGiDeOiDgHiCmMiNoMjAkMiCmGjDfMiCoIjFhEiCkPiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateOleInsertNew (CCmdUI* pCmdUI)
{
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() && !m_pDrawTool->IsEditingText());
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() &&
//					!g_pDoc->IsOleDocumentsOpened() &&
//					!m_pDrawTool->IsEditingText());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly,etc_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
	pCmdUI->Enable(FFCanBasicOperate() && FFCanCreateObject());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
} // CFCDynamicDrawView::OnUpdateOleInsertNew.

// _xZkqqHx_iImIiJlKiCmJiOkGiClHiDfCiDhNiDjDiDgI_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJiCmNjBgHiCnNiNjOiCnNjAoGjFnCiPfHiCpAjCiGiOhOiClHiCoJiClNiCnPiCmMjFfHiPiAjDeJiCmI_xHqqkZx_
// _xZkqqHx_iDeMiBfLiDhLiBfLiDgI_xHqqkZx_ _xZkqqHx_iDiGiBfLiDfFiBfL_xHqqkZx_ _xZkqqHx_iDeDiDjDiDfOiBfLiDhEiDeGiDeDiDfIiCpAjHhAiInDiClFiCmEiCkCiCnMiClHiBeCiClBiClBiCmFiDfCiDjDiDgFiDgJ_xHqqkZx_
// _xZkqqHx_iBgJiDfEiBfLiDgPiBfLiCmFiCmNiCmIiCkCiBgKiCmNiBeBiDgGiDeCiDeBiDeOiDgFiDeCiDhIiBfLiDfGiDiHiDjDiCpAiIpIiCkLiLeOiClBiClFiCnMiClHiBeC_xHqqkZx_
void CFCDynamicDrawView::OnCancelEditCntr ()
{
	// _xZkqqHx_iClBiCmMiDhCiDiFiBfLiPoDiCmJiCkAiCoJjBgHiCnNiNjOiCnNjAoGiCmFjHeMiMpIiCmIiDeBiDeDiDgFiDiAiCpAjFmCiClGiCnMiClHiBeC_xHqqkZx_
	COleClientItem* pActiveItem = g_pDoc->GetInPlaceActiveItem(this);
	if (pActiveItem != NULL)
	{
		pActiveItem->Close();
	}
	ASSERT(g_pDoc->GetInPlaceActiveItem(this) == NULL);
} // CFCDynamicDrawView::OnCancelEditCntr.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnSetFocus
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDeKiDfIiCkKjAnNjCoIiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pOldWnd	: _xZkqqHx_iClBiCmMjBePiCmJiDhEiDeIiBfLiDeKiDfIiCkKjAnNjCoIiClDiCoKiCmEiCkCiClNiDeFiDeCiDjDiDgIiDeF_xHqqkZx_.
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCkKjBgHiCnNiNjOiCnNjAoGiCmFjFnCiPfHiClDiCoKiCmNiClGiCnPiClNiCmGiCkLiCmJiCmN_xHqqkZx_
 *			OnSetFocus _xZkqqHx_iCmG_xHqqkZx_ OnSize _xZkqqHx_iCmMjDmBjFmKiCmIiDgOiDjDiDgIiDiKiDjDiDePiCmJiCmNiDfCiDjDiDgFiDgJiCkK_xHqqkZx_
 *			_xZkqqHx_jFeLjHhGiCmFiClHiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnSetFocus (CWnd* pOldWnd)
{
	COleClientItem* pActiveItem = NULL;
	if (g_pDoc != NULL)
		pActiveItem = g_pDoc->GetInPlaceActiveItem(this);
	if (pActiveItem != NULL &&
		pActiveItem->GetItemState() == COleClientItem::activeUIState)
	{
		// _xZkqqHx_jDkPiClGiDhCiDiFiBfLiCmJiCkAiCoJiDeBiDeDiDgFiDiAiCmJiCmNiDhEiDeIiBfLiDeKiDfIiCpAjAnNjCoIiClHiCoJjFeLjHhGiCkKiCkAiCoIiCnMiClHiBeC_xHqqkZx_
		CWnd* pWnd = pActiveItem->GetInPlaceWindow();
		if (pWnd != NULL)
		{
			pWnd->SetFocus();   // _xZkqqHx_iKoOjGhLiDeOiDiJiDfIiCpAiMmEiCnBiPgPiClFiCmEiCmNiCkCiCkPiCnMiClJiCpBiBeC_xHqqkZx_
			return;
		}
	}
	// IME_xZkqqHx_iCpAjFmCiClGiCoJiBeC_xHqqkZx_
	::CloseImeStatus(m_hWnd);
	// _xZkqqHx_iDgDiBfLiDiLiCmJjCmKjCgNiBeC_xHqqkZx_
	if (GetCurrentTool() != NULL)
		GetCurrentTool()->OnSetFocus(pOldWnd);
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnSetFocus(pOldWnd);
} // CFCDynamicDrawView::OnSetFocus.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnKillFocus
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDeKiDfIiCkKjBlMiCmJiInKiCmBiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pNewWnd	: _xZkqqHx_jAfGiClFiCkNiDhEiDeIiBfLiDeKiDfIiCkKjAnNjCoIiClDiCoKiCoJiDeFiDeCiDjDiDgIiDeF_xHqqkZx_.
 *************************************************************************/
void CFCDynamicDrawView::OnKillFocus (CWnd* pNewWnd)
{
	BASE_CLASS::OnKillFocus(pNewWnd);
	// _xZkqqHx_iDgDiBfLiDiLiCmJjCmKjCgNiBeC_xHqqkZx_
	if (GetCurrentTool() != NULL)
		GetCurrentTool()->OnKillFocus(pNewWnd);
} // CFCDynamicDrawView::OnKillFocus.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfEiDeDiDfJiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nType	: _xZkqqHx_iDfEiDeDiDfJjFmPiNfIiCmMiDfOiDeDiDhG_xHqqkZx_
 *			cx, cy	: _xZkqqHx_jAfGiClFiCkCiDfEiDeDiDfJ_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCkKjBgHiCnNiNjOiCnNjAoGiCmFjFnCiPfHiClDiCoKiCmNiClGiCnPiClNiCmGiCkLiCmJiCmN_xHqqkZx_
 *			OnSetFocus _xZkqqHx_iCmG_xHqqkZx_ OnSize _xZkqqHx_iCmMjDmBjFmKiCmIiDgOiDjDiDgIiDiKiDjDiDePiCmJiCmNiDfCiDjDiDgFiDgJiCkK_xHqqkZx_
 *			_xZkqqHx_jFeLjHhGiCmFiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.24 Fukushiro M. _xZkqqHx_iDiKiDfEiDeDiDfJiCmFiCoAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCkKjHeMiMpIiCmJiClHiCoJiBeC_xHqqkZx_
 *			98.10.25 Fukushiro M. _xZkqqHx_iPiIjHjNiCpA_xHqqkZx_OnWindowPosChanged_xZkqqHx_iCnGiInKjDkO_xHqqkZx_.
 *************************************************************************/
void CFCDynamicDrawView::OnSize (UINT nType, int cx, int cy)
{
	BASE_CLASS::OnSize(nType, cx, cy);
	COleClientItem* pActiveItem = g_pDoc->GetInPlaceActiveItem(this);
	if (pActiveItem != NULL)
		pActiveItem->SetItemRects();
} // CFCDynamicDrawView::OnSize.

/////////////////////////////////////////////////////////////////////////////
// OLE _xZkqqHx_iDfEiBfLiDgPiBfL_xHqqkZx_ _xZkqqHx_iDfEiDhMiBfLiDgH_xHqqkZx_

// _xZkqqHx_iImIiJlKiCmMiDfCiDhNiDjDiDgIiDgOiDjDiDgIiDiJiCmNjGiEiCnPiClBiCnNjFnCiPfHiDfKiDgCiDfGiDiHiDjDiCpAiDeMiDiDiDjDiDfKiDiLiClHiCoJiDfIiDfOiDjDiDfPiBfLiDgI_xHqqkZx_ _xZkqqHx_iDeMiBfL_xHqqkZx_
// _xZkqqHx_iDhLiBfLiDgI_xHqqkZx_ _xZkqqHx_iDiGiBfLiDfFiBfL_xHqqkZx_ _xZkqqHx_iDeDiDjDiDfOiDhEiDeGiBfLiDfIiCpAjHhAiInDiClFiCnMiClHiBeC_xHqqkZx_
// _xZkqqHx_iClBiClBiCmFiBeBiDfEiBfLiDgPiBfL_xHqqkZx_ (_xZkqqHx_iDfCiDjDiDgFiDgJiCmFiCmNiCmIiCkC_xHqqkZx_) _xZkqqHx_iCmNiBeBiDgGiDeCiDeBiDeOiDgFiDeCiDhIiBfLiDfGiDiHiDjDiCpAiIpIiCkLiLeOiClBiClFiCnMiClHiBeC_xHqqkZx_
void CFCDynamicDrawView::OnCancelEditSrvr ()
{
	g_pDoc->OnDeactivateUI(FALSE);
} // CFCDynamicDrawView::OnCancelEditSrvr.

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawView _xZkqqHx_iDeOiDiJiDfIiCmMjAgGjCgG_xHqqkZx_

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

void CFCDynamicDrawView::Dump(CDumpContext& dc) const
{
	BASE_CLASS::Dump(dc);
} // CFCDynamicDrawView::Dump.

//----- 02.12.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//CFCFoundDoc* CFCDynamicDrawView::GetDocument() // _xZkqqHx_jEpBiDgGiDgPiDgCiDeP_xHqqkZx_ _xZkqqHx_iDgPiBfLiDfHiDiHiDjDiCmNiDeDiDjDiDiJiDeDiDjDiCmFiClHiBeC_xHqqkZx_
//{
//	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CFCFoundDoc)));
//	return (CFCFoundDoc*)m_pDocument;
//}
//----- 02.12.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
#endif //_DEBUG

//----- 99.05.31 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetLink
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiInKjDkOjDjJiCmFiJgFiLlPiCpAiOpDiCkPiCoJiDiKiDjDiDeOiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pvArrow	: _xZkqqHx_iDiKiDjDiDeOiBgJjGoOiIpDiBgKjFjEjFgJiCmM_xHqqkZx_vector
// *************************************************************************/
//void CFCDynamicDrawView::SetLink (FDObjArrow* pArrow)
//{
//	m_tLink.push_back(pArrow);
//}
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::LinkNotice
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiDjDiDeOiBgJjGoOiIpDiBgKjFjEjFgJiCmJiKnGjIeBjFjEjFgJiCmMiInKjDkOiCpAjCmKjCgNiClHiCoJiBeC_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::LinkNotice ()
//{
//#if 0
//	vector< FDObjArrow*, allocator< FDObjArrow* > >::iterator new_end;
//	vector< FDObjArrow*, allocator< FDObjArrow* > >::iterator i;
//
//	sort(m_tLink.begin(), m_tLink.end());
//	new_end = unique(m_tLink.begin(), m_tLink.end());
//
//	for (i = m_tLink.begin(); i != new_end; i++)
//	{
//		AddRgn(*i);
//		(*i)->ObjectChangedNotice();
//		AddRgn(*i);
//	}
//	m_tLink.clear();
//#endif//0
//}
//----- 99.05.31 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetGrid
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiKiDgCiDgIjFjNiCmMiOoGjDlO_xHqqkZx_
// *************************************************************************/
//double CFCDynamicDrawView::GetGrid () const
//{
//	return m_mmGrid;
//} // CFCDynamicDrawView::GetGrid.
//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetSnap
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDgJiDgCiDhGjFjNiCmMiOoGjDlO_xHqqkZx_
// *************************************************************************/
//double CFCDynamicDrawView::GetSnap () const
//{
//	return m_mmSnap;
//} // CFCDynamicDrawView::GetSnap.
//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::IsGridVisible
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiKiDgCiDgIiCkKiJmCiOiLiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJ_xHqqkZx_.
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	:_xZkqqHx_iDePiDiKiDgCiDgIiCkKiJmCiOiL_xHqqkZx_
// *			FALSE	:_xZkqqHx_iDePiDiKiDgCiDgIiCkKjFhDiJmCiOiL_xHqqkZx_
// *************************************************************************/
//BOOL CFCDynamicDrawView::IsGridVisible () const
//{
//	return m_bIsGridVisible;
//} // CFCDynamicDrawView::IsGridVisible.
//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::IsSnapActive
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDgJiDgCiDhGiCkKjHeMiMpIiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJ_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	:_xZkqqHx_iDfIiDgJiDgCiDhGiCkKjHeMiMpI_xHqqkZx_
// *			FALSE	:_xZkqqHx_iDfIiDgJiDgCiDhGiCkKjGlDiMpI_xHqqkZx_
// *************************************************************************/
//BOOL CFCDynamicDrawView::IsSnapActive () const
//{
//	return m_bIsSnapActive;
//} // CFCDynamicDrawView::IsSnapActive.
//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetGrid
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiKiDgCiDgIjFjNiCpAjAnNjCoIiClHiCoJ_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmGrid	:_xZkqqHx_iDePiDiKiDgCiDgIjFjN_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::SetGrid (double mmGrid)
//{
//	m_mmGrid = mmGrid;
//} // CFCDynamicDrawView::SetGrid.
//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetSnap
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDgJiDgCiDhGiKnEiKhFiCpAjAnNjCoIiClHiCoJ_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmSnap	:_xZkqqHx_iDfIiDgJiDgCiDhGiKnEiKhF_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::SetSnap (double mmSnap)
//{
//	m_mmSnap = mmSnap;
//} // CFCDynamicDrawView::SetSnap.
//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetGridVisible
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiKiDgCiDgIiCmMiJmCiOiLiBeFjFhDiJmCiOiLiCpAjAnNjCoIiClHiCoJ_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bVisible	:_xZkqqHx_iJmCiOiLiCmJiClHiCoJiCmIiCoHiCmO_xHqqkZx_TRUE,_xZkqqHx_jFhDiJmCiOiLiCmJiClHiCoJiCmIiCoHiCmO_xHqqkZx_FALSE_xZkqqHx_iCpAjAnNjCoI_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::SetGridVisible (BOOL bVisible)
//{
//	m_bIsGridVisible = bVisible;
//} // CFCDynamicDrawView::SetGridVisible.
//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetSnapActive
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDgJiDgCiDhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJ_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bActive	:_xZkqqHx_jHeMiMpIiCmJiClHiCoJiCmIiCoH_xHqqkZx_TRUE,_xZkqqHx_jGlDiMpIiCmJiClHiCoJiCmIiCoH_xHqqkZx_FALSE_xZkqqHx_iCpAjAnNjCoI_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::SetSnapActive (BOOL bActive)
//{
//	m_bIsSnapActive = bActive;
//} // CFCDynamicDrawView::SetSnapActive.
//----- 00.02.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 99.12.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetPageSize
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhJiBfLiDfHiCmMjBoFiCkLiClDiCpAjAnNjCoIiClHiCoJ_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmWidth		: _xZkqqHx_jFjN_xHqqkZx_
// *			mmHeight	: _xZkqqHx_iNiCiClD_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::SetPageSize (double mmWidth, double mmHeight)
//{
//	m_mmPageWidth	= mmWidth;
//	m_mmPageHeight	= mmHeight;
//}
//----- 99.12.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 99.12.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetSheetRect
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMiCfDiLpHiCmMiNmAjFfHiCpAiOmAiNmAjFfHiCmFjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmrtSheet	: _xZkqqHx_iNmAjFfH_xHqqkZx_.
// *************************************************************************/
//void CFCDynamicDrawView::SetSheetRect (const DBLRect& mmrtSheet)
//{
//	m_mmrtSheet = mmrtSheet;
//	m_mmrtSheetEx = mmrtSheet;
//	m_mmrtSheetEx.Extend(FD_PAGE_MARGIN + lg2mm(10));
//}
//----- 99.12.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::UpdateScrollSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiCpAiNfIjAfGiClHiCoJiBeCiDfJiBfLiDiAiBeBiDgIiDeMiDiFiDiBiDjDiDgHiDfEiDeDiDfJiBeB_xHqqkZx_
 *			_xZkqqHx_iJoGjGmKiDfEiDeDiDfJjDjJiCkKjFmPiNfIiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iImIiJlKiCmM_xHqqkZx_4_xZkqqHx_iCmCiCmMiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_
 *			0._xZkqqHx_iDfJiBfLiDiAjCgMiCmMiNmFjBoFjCgMiCmMiMhGiOfKiCmGiBeBiDfJiBfLiDiAiDeJiBfLiDgPiBfLiCmMjFoCjAlDiBeC_xHqqkZx_
 *			1._xZkqqHx_iJoGjGmKiImKjChFiCmMiDeJiDhEiDfKiDgCiDgHjCgMiCmMjClCjAkO_xHqqkZx_
 *				_xZkqqHx_iJoGjGmKiImKjChFiCkKiDfGiBfLiDgHiCpAiCmNiCnNiPgPiCmIiCkCiCoGiCkEiBeBiCnMiClNiCfH_xHqqkZx_pixel_xZkqqHx_iCmMjEhLjAjEiCmJ_xHqqkZx_
 *				_xZkqqHx_iCmIiCoJiCoGiCkEiCmJjClCjAkOiClHiCoJiBeC_xHqqkZx_
 *			2._xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiCmMjClCjAkO_xHqqkZx_
 *				_xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiCmMiInKjDkOjHmKiCmGiJoGjGmKiCmMiInKjDkOjHmKiCmMjDeLjAnIiCmIjEoEjHkGiCpAiOfKiPgPiBeC_xHqqkZx_
 *				_xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiCpAjAlDiClFiCkCiImKjChFiCmJiInKjDkOiBeC_xHqqkZx_
 *			3._xZkqqHx_iDiLiBfLiDiJiBfLiCmMjClCjAkO_xHqqkZx_
 *				_xZkqqHx_iDiLiBfLiDiJiBfLiCmMiDhDiDgCiDgAiCmMjDeLjAnIiCmIjCgMiCpAiOfKiPgPiBeC_xHqqkZx_
 *				_xZkqqHx_iDiLiBfLiDiJiBfLiCmMjFfMiOkGiCpAjAlDiClFiCkCiImKjChFiCmJiInKjDkOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iNmEjFgAiJoGjHhAiCmMiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMjAnNjCoIjDjJiCmNiNhDiCoNiCmIiCkCiBeCjGhLiKnGjAjEiOmAiNhDiMoDiCmN_xHqqkZx_
 *			_xZkqqHx_jBfDiJoGjGmKiNmEjFgAiJoGiCkKiKoOjGhLiBeCjFmPiNfIiImKjChFiClOiCkPiNmEjFgAiJoGiClFiClNiCkCiPoKiNiHiCmNiBeB_xHqqkZx_
 *			_xZkqqHx_jGhLiKnGjAjEiOmAiNhDjBePiCmJjCgMiCpAjFnLjBlGiClFiBeBiOmAiNhDiMoDiCmMjCgMiCmGjEoEiKhCiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.28 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkMiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::UpdateScrollSize ()
{
	//	g_->dZoom_xZkqqHx_iCmNiBeBiIpDiNpMiOjOiCmJiCoGiCoIjBoFiCkLiCmIjCgMiCkKjAnNjCoIiClDiCoKiCoJiClBiCmGiCmJjCiNiInD_xHqqkZx_ -----
	// Window_xZkqqHx_iNmFjBoFiDfEiDeDiDfJiBeCiClBiCoKiCpAjClEiCkGiCoJiCmGiBeB_xHqqkZx_CDC::GetClipBox_xZkqqHx_jDjJiCkKiInJiPoNjDkOiNoMiBeC_xHqqkZx_
	double dMaxWinSz;
	dMaxWinSz = double(MAXSHORT) * 1000; // _xZkqqHx_jCgMiCmJiNkKiLjCjGlDiClFiBeC_xHqqkZx_

	//----- _xZkqqHx_iDfJiBfLiDiAiNmFjBoFjCgMiBgJ_xHqqkZx_g_->lZoom256Max_xZkqqHx_iBgKiCpAiMiIjCoI_xHqqkZx_ -----
	DBLRect mmrtEx = g_pEnv->GetSheetRectEx();
	double dZoom;
	double dZoomMin = DBL_MAX;
	if (!almost0(mmrtEx.left))
	{
		dZoom = fabs(dMaxWinSz / mmrtEx.left);
		if (dZoom < dZoomMin) dZoomMin = dZoom;
	}
	if (!almost0(mmrtEx.top))
	{
		dZoom = fabs(dMaxWinSz / mmrtEx.top);
		if (dZoom < dZoomMin) dZoomMin = dZoom;
	}
	if (!almost0(mmrtEx.right))
	{
		dZoom = fabs(dMaxWinSz / mmrtEx.right);
		if (dZoom < dZoomMin) dZoomMin = dZoom;
	}
	if (!almost0(mmrtEx.bottom))
	{
		dZoom = fabs(dMaxWinSz / mmrtEx.bottom);
		if (dZoom < dZoomMin) dZoomMin = dZoom;
	}

	g_->lZoom256Max = long((dZoomMin * 256.0) / g_->dDisplayPPM);
	if (FD_ZOOM256_MAX < g_->lZoom256Max) g_->lZoom256Max = FD_ZOOM256_MAX;

	//----- _xZkqqHx_iDfJiBfLiDiAiNmFjBoFjCgMiCpAiDeJiBfLiDgPiBfLiClFiCmEiCkCiCoJiPoKiNiHiCmNiBeBiDfJiBfLiDiAiCpAiNmEjAnNjCoI_xHqqkZx_ -----
	if (g_->lZoom256Max < g_->lZoom256)
	{
		PostMessage(WM_USER_SET_ZOOM256, TRUE, g_->lZoom256Max);
		return;
	}

	// _xZkqqHx_iKgHjCkDiDfGiBfLiDgHiCmMjIfPjHjNiNmAjFfHiCpAjDlOiCoJiBeC_xHqqkZx_
	CRect lgrtSheetEx = mm2lg(g_pEnv->GetSheetRectEx());

	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCmMjBoFiCkLiClDiCpAjIfPjHjNiNmAjFfHiCmFjDlOiCoJiBeC_xHqqkZx_
	CRect lgrtClient;
	GetClientRectLG(lgrtClient);

	//----- _xZkqqHx_iMlLiNnNiCmMiDfIiDeOiDiNiBfLiDiLiImKjChFiCpAjFoCjAlDiClHiCoJ_xHqqkZx_ -----
	long lgDiff;
	lgDiff = lgrtClient.right - lgrtSheetEx.right;
	if (0 < lgDiff)
	{
		lgrtClient.left -= lgDiff;
		lgrtClient.right -= lgDiff;
		g_->lgOffsetX -= lgDiff;
	}
	lgDiff = lgrtSheetEx.left - lgrtClient.left;
	if (0 < lgDiff)
	{
		lgrtClient.left += lgDiff;
		lgrtClient.right += lgDiff;
		g_->lgOffsetX += lgDiff;
	}
	lgDiff = lgrtClient.bottom - lgrtSheetEx.bottom;
	if (0 < lgDiff)
	{
		lgrtClient.top -= lgDiff;
		lgrtClient.bottom -= lgDiff;
		g_->lgOffsetY -= lgDiff;
	}
	lgDiff = lgrtSheetEx.top - lgrtClient.top;
	if (0 < lgDiff)
	{
		lgrtClient.top += lgDiff;
		lgrtClient.bottom += lgDiff;
		g_->lgOffsetY += lgDiff;
	}

	// SetScrollInfo_xZkqqHx_iKnGjAjEiCmFiDfIiDeOiDiNiBfLiDiLiDgPiBfLiCkKiPmBjGmFiClHiCoJiCmGiBeB_xHqqkZx_OnSize_xZkqqHx_iCkJiCoHiClBiCmMiKnGjAjEiCkK_xHqqkZx_
	// _xZkqqHx_iDgMiDfIiDgHiClFiCmEiClFiCnMiCkEiBeCiClBiCoKiCpAjGgIiCkOiClNiCnPiBeB_xHqqkZx_nPage_xZkqqHx_iCkKjBoFiCkLiCkNiCmIiCoHiCmIiCkCiCoGiCkEiCmJiClHiCoJiBeC_xHqqkZx_

	long lgMax = ::abs(lgrtSheetEx.left);
	if (lgMax < abs(lgrtSheetEx.right)) lgMax = abs(lgrtSheetEx.right);
	if (lgMax < lgrtClient.Width())	 lgMax = lgrtClient.Width();
	m_dScrollRatioX = static_cast<double>(lgMax) / 30000.0;

	lgMax = ::abs(lgrtSheetEx.top);
	if (lgMax < abs(lgrtSheetEx.bottom)) lgMax = abs(lgrtSheetEx.bottom);
	if (lgMax < lgrtClient.Height())	  lgMax = lgrtClient.Height();
	m_dScrollRatioY = static_cast<double>(lgMax) / 30000.0;

	//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiCmMiPiJiKpKiJlL_xHqqkZx_ -----
	SCROLLINFO	oSCInfo;
	oSCInfo.cbSize	= sizeof(oSCInfo);
	oSCInfo.fMask	= SIF_ALL;
	oSCInfo.nMin	= D2L(lgrtSheetEx.left / m_dScrollRatioX);
	oSCInfo.nMax	= D2L(lgrtSheetEx.right / m_dScrollRatioX);
	oSCInfo.nPage	= D2L(lgrtClient.Width() / m_dScrollRatioX);
	oSCInfo.nPos	= D2L(g_->lgOffsetX / m_dScrollRatioX);
	// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiPmBjGmFiCpAjGgIiCkOiBeC_xHqqkZx_
	if (oSCInfo.nMax - oSCInfo.nMin < int(oSCInfo.nPage))
		oSCInfo.nPage = oSCInfo.nMax - oSCInfo.nMin;
	SetScrollInfo(SB_HORZ, &oSCInfo);

	//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiCmMiPiJiKpKiJlL_xHqqkZx_ -----
	oSCInfo.cbSize	= sizeof(oSCInfo);
	oSCInfo.fMask	= SIF_ALL;
	oSCInfo.nMin	= D2L(lgrtSheetEx.top / m_dScrollRatioY);
	oSCInfo.nMax	= D2L(lgrtSheetEx.bottom / m_dScrollRatioY);
	oSCInfo.nPage	= D2L(lgrtClient.Height() / m_dScrollRatioY);
	oSCInfo.nPos	= D2L(g_->lgOffsetY / m_dScrollRatioY);
	// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiPmBjGmFiCpAjGgIiCkOiBeC_xHqqkZx_
	if (oSCInfo.nMax - oSCInfo.nMin < int(oSCInfo.nPage))
		oSCInfo.nPage = oSCInfo.nMax - oSCInfo.nMin;
	SetScrollInfo(SB_VERT, &oSCInfo);

//----- 03.07.14 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	//----- Scale_xZkqqHx_iKnGiMfHiPiJiKpKiJlL_xHqqkZx_ -----
//	//----- _xZkqqHx_jIfPjHjNiNmAjFfHiCkK_xHqqkZx_20pixel_xZkqqHx_jCpGjDhIiCmJiCmIiCoJiCoGiCkEiCmJiBeBiDhDiDgCiDgAiCpAjClCjAkO_xHqqkZx_ -----
//	// 20pixel_xZkqqHx_iCpA_xHqqkZx_HI_xZkqqHx_iNmAjFfHiCmJjFmPiKlHiBeC_xHqqkZx_
//	hic hiPitch = lg2hi(20);
//	//----- HI_xZkqqHx_iNmAjFfHjCgMiCpAiBeB_xHqqkZx_a * 10^b (1 <= a < 10) _xZkqqHx_iCmJjFmPiKlH_xHqqkZx_ -----
//	double b = log10(hiPitch);
//	if (0 < b)
//	{
//		b = int(b);
//	} else
//	{
//		if ((b - int(b)) != 0.0)
//			b = int(b) - 1.0;
//	}
//	double p = pow(10.0, b);
//	double a = hiPitch / p;
//	//----- a _xZkqqHx_iCpA_xHqqkZx_1.0,2.5,5.0,10.0_xZkqqHx_iCmMiCkCiClIiCoKiCkJiLnPiCkCjCgMiCmJjFfHiPiAiJlL_xHqqkZx_ -----
//	double ra = 1.0;
//	double dif = fabs(a - ra);
//	// _xZkqqHx_iDhDiDgCiDgAiCfAiCmMiPkMjAjEjDfPiImIiJlKiCmMiMiFjAjEiBeC_xHqqkZx_0.1 _xZkqqHx_iCmIiCoHiCmO_xHqqkZx_ -1_xZkqqHx_iBeC_xHqqkZx_
//	short nZoomFigure = b + 1.0;
//	if (fabs(a - 2.5) < dif)
//	{
//		ra = 2.5;
//		dif = fabs(a - ra);
//		nZoomFigure = b;
//	}
//	if (fabs(a - 5.0) < dif)
//	{
//		ra = 5.0;
//		dif = fabs(a - ra);
//		nZoomFigure = b + 1.0;
//	}
//	if (fabs(a - 10.0) < dif)
//	{
//		ra = 10.0;
//		dif = fabs(a - ra);
//		nZoomFigure = b + 2.0;
//	}
//	if (0 < nZoomFigure) nZoomFigure = 0;
//	// Scale_xZkqqHx_iCmMiNnHiCkJiCkCiNiPiCnNjFjNiBeC_xHqqkZx_
//	mmetol mmScalePitch0 = hi2mm(ra * p);
//	// Scale_xZkqqHx_iCmMjBlOiCkCiNiPiCnNjFjNiBeC_xHqqkZx_
//	mmetol mmScalePitch1 = 10.0 * mmScalePitch0;
//----- 03.07.14 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 03.07.14 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	if (FFGetMainHRuler() != NULL)
//	{
//		// _xZkqqHx_iDfIiDfAiBfLiDiLiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
//		FFGetMainHRuler()->OnViewSize();
//// 03.07.14 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
////		FFGetMainHRuler()->SetPitch(mmScalePitch0, mmScalePitch1, nZoomFigure);
//	}
//	if (FFGetMainVRuler() != NULL)
//	{
//		// _xZkqqHx_iDfIiDfAiBfLiDiLiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
//		FFGetMainVRuler()->OnViewSize();
//// 03.07.14 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
////		FFGetMainVRuler()->SetPitch(mmScalePitch0, mmScalePitch1, nZoomFigure);
//	}
//----- 03.07.14 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDiLiBfLiDiJiBfLiNfIjAfGiCmMiDiBiDgCiDfKiBfLiDfHiCpAjChOjAmPiBeC_xHqqkZx_
	FFPushPendingMessage(FCPendingMessage(FD_PMSG_MAIN_HRULER,
										WM_USER_UPDATE_RULER, NULL, NULL,
										TRUE,
										FD_PMSG_MAIN_HRULER|FD_PMSG_IF_VISIBLE,
										FD_PMSG_VIEW|FD_PMSG_IF_VISIBLE));
	FFPushPendingMessage(FCPendingMessage(FD_PMSG_MAIN_VRULER,
										WM_USER_UPDATE_RULER, NULL, NULL,
										TRUE,
										FD_PMSG_MAIN_VRULER|FD_PMSG_IF_VISIBLE,
										FD_PMSG_VIEW|FD_PMSG_IF_VISIBLE));
//----- 03.07.14 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::UpdateScrollSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::ScrollToObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAjFjEjFgJiCkKiDhCiDiFiBfLiCkJiCoHiCmNiCnNiPgPiCmEiCkCiCoJiPoKiNiHiCmNiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFmPjAjE_xHqqkZx_>	stObjId	:_xZkqqHx_jBeJjBpAjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfIiDeOiDiNiBfLiDiLiClFiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDfIiDeOiDiNiBfLiDiLiClFiClNiPoKiNiHiCmNiBeBiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMiNmEjFgAiJoGiCpAiNhDiCkEiBeC_xHqqkZx_
 *			_xZkqqHx_iDfIiDeOiDiNiBfLiDiLiClFiCmIiCkCiPoKiNiHiCmNiBeBiJlNiCoAiClFiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::ScrollToObject (const DWORDSet& stObjId)
{
	// _xZkqqHx_jBeJjBpAjFjEjFgJiCkKjGlDiCkCiPoKiNiHiCmN_xHqqkZx_ FALSE_xZkqqHx_iBeC_xHqqkZx_
	if (stObjId.empty()) return FALSE;
	// _xZkqqHx_jFjEjFgJiCmJiKePjAnKiClHiCoJiNmFiPkMiCmMiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	DBLRect mmrtFrame;
	// _xZkqqHx_jFjEjFgJiCmJiKePjAnKiClHiCoJiNmFiPkMiCmMiDhEiDiMiBfLiDiAiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
	::GetResizeFrame(mmrtFrame, stObjId);
	//----- _xZkqqHx_jFjEjFgJiCkKjFfMiOkGjHmMiIoGiCpAiCmNiCnNiPgPiClDiCmIiCkCiPiIjHjN_xHqqkZx_ -----
	// _xZkqqHx_iJoGjGmKiCmMjFfMiOkGjHmMiIoGiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
	DBLRect mmrtClient;
	GetClientRectMM(mmrtClient);
	// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
	if ((mmrtFrame & mmrtClient).IsRectNull())
	{
		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiNmAjFfHiCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBjFiNmEjFgAiJoGiBeC_xHqqkZx_
		// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmNiBeBiDfIiDeOiDiNiBfLiDiLiKnGjAjEiCmFiCkEiCnMiCkNiPiIjHjNiClDiCoKiCoJiBeC_xHqqkZx_
		SetScrollCenter(mmrtFrame.CenterPoint());
		return TRUE;
	}
	return FALSE;
} // CFCDynamicDrawView::ScrollToObject.

//----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetScrollCenter
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDfGiBfLiDgHiCmMiNmAjFfHiCkKiBeBiDhCiDiFiBfLiCmMjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmpt	:_xZkqqHx_jCiGjAfDiNmAjFfHiCpAiOhHjCoIiBeC_xHqqkZx_
// *			stid	:_xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeCiDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiPoKiNiHiCmNiBeB_xHqqkZx_
// *					 FD_SHEET_UNSPECIFY_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::SetScrollCenter (const DBLPoint& mmpt, SheetID stid)
//{
//	// _xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmFiCmNiCmIiCkCiPoKiNiHiBeBiDfGiBfLiDgHiCpAiInKjDkOiClFiCmEjBfDjBmMiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
//	if (stid != FD_SHEET_UNSPECIFY && stid != g_pDoc->GetCurrentSheetId() &&
//		g_pDoc->GetSheetManager()->SheetIDToIndex(stid) != DWORD(-1))
//	{
//		// _xZkqqHx_iDfGiBfLiDgHiCpAjFmPiNfIiBeC_xHqqkZx_
//		g_pDoc->SetCurrentSheetId(stid);
//		// _xZkqqHx_iDhCiDiFiBfLiCmJiNmEjFgAiJoGiCpAjAnNjCoIiBeCiMiLiJmKiBeBiImIiJlKiCmM_xHqqkZx_RgnRedraw_xZkqqHx_iCmFjBfDjBmMiNmEjFgAiJoGiCpAiOmAiNhDiBeC_xHqqkZx_
//		if (IsWindowVisible()) Invalidate();
//	}
//	if (mmpt.x != DBL_MAX && mmpt.y != DBL_MAX)
//	{
//		// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCmGiClFiCmEiLeMjIfOiBeC_xHqqkZx_
//		m_mmptLast = mmpt;
//
////		// _xZkqqHx_jIfPjHjNiNmAjFfHiCmJjFmPiKlHiBeC_xHqqkZx_
//		const CPoint lgpt = mm2lg(mmpt);
//		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiDgGiDgPiDeDiDfIiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
//		CRect dvrtClient;
//		GetClientRect(dvrtClient);
//		// X,Y_xZkqqHx_jFpLiMpMiCmJiBeB_xHqqkZx_lgpt_xZkqqHx_iCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
//		// _xZkqqHx_iNmEjFgAiJoGiCmNiBeBiNmFiMoDiCmJiCnMiCmGiCnPiCmEiBeC_xHqqkZx_
//		ScrollTo(lgpt.x - dvrtClient.Width() / 2, lgpt.y - dvrtClient.Height() / 2, FALSE);
//		if (IsWindowVisible()) SendRgnRedraw();
//	}
//} // CFCDynamicDrawView::SetScrollCenter.
//----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetScrollCenter
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDfGiBfLiDgHiCmMiNmAjFfHiCkKiBeBiDhCiDiFiBfLiCmMjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmpt	:_xZkqqHx_jCiGjAfDiNmAjFfHiCpAiOhHjCoIiBeCiImKjChFiCpAiInKjDkOiClFiCmIiCkCiPoKiNiHiCmNiBeB_xHqqkZx_
 *					 (DBL_MAX, DBL_MAX)_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			stid	:_xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeCiDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiPoKiNiHiCmNiBeB_xHqqkZx_
 *					 FD_SHEET_UNSPECIFY_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			lZoom256:_xZkqqHx_iDfJiBfLiDiAjCgMiCpAiOhHjCoIiBeCiOhHjCoIiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ -1 _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			bRedraw	:_xZkqqHx_iNmEjFgAiJoGiClHiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	bRedraw _xZkqqHx_iCmMjCgMiCmJiKnGiCoNiCoHiClIiBeBiNmEjFgAiJoGiCmMiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmNjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			02.12.10 Fukushiro M. _xZkqqHx_iIpIjAjEjDjJiCpAjFmPiNfIiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetScrollCenter (const DBLPoint& mmpt,
									  SheetID stid, long lZoom256, BOOL bRedraw)
{
	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjBfDjBmMiCpAiNmEjFgAiJoGiClHiCoJiCkJiBeI_xHqqkZx_
	BOOL bRedrawAll = FALSE;
	// _xZkqqHx_iNfIjAfGiClDiCoKiClNiCkJiBeI_xHqqkZx_
	BOOL bUpdated = FALSE;
	if (0 < lZoom256 && g_->lZoom256 != lZoom256)
	//----- _xZkqqHx_iDfJiBfLiDiAjFmPiNfIiCkKiOhHiOkGiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ _xZkqqHx_iKiOiCmC_xHqqkZx_ _xZkqqHx_iDfJiBfLiDiAjCgMiCkKiMlLiNnNiCmGiInJiCmIiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfJiBfLiDiAjCgMjAnNjCoIiCpAiOhHiOkGiBeCiNmEjFgAiJoGiCmNiClFiCmIiCkCiBeC_xHqqkZx_
		SendMessage(WM_USER_SET_ZOOM256, FALSE, lZoom256);
		// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjBfDjBmMiCpAiNmEjFgAiJoGiClHiCoJiCkJiBeI_xHqqkZx_
		bRedrawAll = TRUE;
		// _xZkqqHx_iNfIjAfGiClDiCoKiClNiCkJiBeI_xHqqkZx_
		bUpdated = TRUE;
	}
	// _xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmFiCmNiCmIiCkCiPoKiNiHiBeBiDfGiBfLiDgHiCpAiInKjDkOiClFiCmEjBfDjBmMiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
	if (stid != FD_SHEET_UNSPECIFY &&
		g_pDoc->GetSheetManager()->SheetIDToIndex(stid) != DWORD(-1) &&
		stid != g_pDoc->GetCurrentSheetId())
	//----- _xZkqqHx_iDfGiBfLiDgHiInKjDkOiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ _xZkqqHx_iKiOiCmC_xHqqkZx_ _xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfGiBfLiDgHiCpAiInKjDkOiClFiCmEjBfDjBmMiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
		// _xZkqqHx_iDfGiBfLiDgHiCpAjFmPiNfIiBeC_xHqqkZx_
		g_pDoc->SetCurrentSheetId(stid);
		// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjBfDjBmMiCpAiNmEjFgAiJoGiClHiCoJiCkJiBeI_xHqqkZx_
		bRedrawAll = TRUE;
		// _xZkqqHx_iNfIjAfGiClDiCoKiClNiCkJiBeI_xHqqkZx_
		bUpdated = TRUE;
	}
	if (mmpt.x != DBL_MAX && mmpt.y != DBL_MAX)
	//----- _xZkqqHx_jCiGjAfDiImKjChFiInKjDkOiCkKiOhHiOkGiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCmGiClFiCmEiLeMjIfOiBeC_xHqqkZx_
		m_mmptLast = mmpt;
		// _xZkqqHx_jIfPjHjNiNmAjFfHiCmJjFmPiKlHiBeC_xHqqkZx_
		const CPoint lgpt = mm2lg(mmpt);
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiDgGiDgPiDeDiDfIiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
		CRect dvrtClient;
		GetClientRect(dvrtClient);

		if (bRedraw && !bRedrawAll)
		//---- _xZkqqHx_iNmEjFgAiJoGiCkKiOhHiOkGiClDiCoKiCmEiCkCiCoJ_xHqqkZx_ _xZkqqHx_iKiOiCmC_xHqqkZx_ _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjBfDjBmMiCpAiNmEjFgAiJoGiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			// X,Y_xZkqqHx_jFpLiMpMiCmJiBeB_xHqqkZx_lgpt_xZkqqHx_iCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiClFiCmEiClHiCkOiNmEjFgAiJoGiBeCiDfIiDeOiDiNiBfLiDiLjHmKiCkKiPkNiCmIiCkCiPoKiNiHiCmNiBeB_xHqqkZx_
			// _xZkqqHx_iNmEjFgAiJoGjHmMiIoGiCkKiPkNiCmIiCkNiCmEiNmPiCnOiBeC_xHqqkZx_
			ScrollTo(lgpt.x - dvrtClient.Width() / 2,
					 lgpt.y - dvrtClient.Height() / 2, TRUE);
			// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjBfDjBmMiCpAiNmEjFgAiJoGiClHiCoJiCkJiBeI_xHqqkZx_
			bRedrawAll = FALSE;
			// _xZkqqHx_iNfIjAfGiClDiCoKiClNiCkJiBeI_xHqqkZx_
			bUpdated = FALSE;
		} else
		//---- _xZkqqHx_iNmEjFgAiJoGiCkKiOhHiOkGiClDiCoKiCmEiCkCiCmIiCkC_xHqqkZx_ _xZkqqHx_iIlNiCkCiCmN_xHqqkZx_ _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjBfDjBmMiCpAiNmEjFgAiJoGiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// X,Y_xZkqqHx_jFpLiMpMiCmJiBeB_xHqqkZx_lgpt_xZkqqHx_iCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiClFiCmEiCoAiNmEjFgAiJoGiClFiCmIiCkCiBeCiDfIiDeOiDiNiBfLiDiLjHmKiCkKiPkNiCmIiCkCiPoKiNiHiCmFiCoAiBeB_xHqqkZx_
			// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGjBfDjBmMiCmJiNmEjFgAiJoGiCmMiDiKiBfLiDfHiDiHiDjDiCkKjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
			ScrollTo(lgpt.x - dvrtClient.Width() / 2,
					 lgpt.y - dvrtClient.Height() / 2, FALSE);
			// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjBfDjBmMiCpAiNmEjFgAiJoGiClHiCoJiCkJiBeI_xHqqkZx_
			bRedrawAll = TRUE;
			// _xZkqqHx_iNfIjAfGiClDiCoKiClNiCkJiBeI_xHqqkZx_
			bUpdated = TRUE;
		}
	}
	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjBfDjBmMiCpAiNmEjFgAiJoGiClHiCoJiPoKiNiHiCmNiBeBiDhCiDiFiBfLiCmJiNmEjFgAiJoGiCpAjAnNjCoIiBeC_xHqqkZx_
	if (bRedrawAll) SetClientToRgn();
	// _xZkqqHx_iNmEjFgAiJoGiBeC_xHqqkZx_
	if (bRedraw && bUpdated && IsWindowVisible())
		SendRgnRedraw();
} // CFCDynamicDrawView::SetScrollCenter.
//----- 02.12.10 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

CPoint CFCDynamicDrawView::GetScrollPosition () const
{
	return CPoint(g_->lgOffsetX, g_->lgOffsetY);
} // CFCDynamicDrawView::GetScrollPosition.

void CFCDynamicDrawView::ScrollToPosition (CPoint point)
{
	TRACE(_T("ScrollToPosition %d %d\r\n"), point.x, point.y);
	ScrollTo(point.x, point.y, TRUE);
} // CFCDynamicDrawView::ScrollToPosition.

//----- 01.11.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetScrollWnd
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	View_xZkqqHx_iCmGiLkEiCmJiDfIiDeOiDiNiBfLiDiLiClHiCoJjFjEjFgJiCpAjAnNjCoIiClHiCoJ_xHqqkZx_.
// *************************************************************************/
//void CFCDynamicDrawView::SetScrollWnd (CWnd* pWnd)
//{
//	m_wndpScroll = pWnd;
//} // CFCDynamicDrawView::SetScrollWnd.
//----- 01.11.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetAutoScroll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOkJjDkOiDfIiDeOiDiNiBfLiDiLiCmM_xHqqkZx_On/Off_xZkqqHx_jAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bAuto	:On_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeB_xHqqkZx_Off_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetAutoScroll (BOOL bAuto)
{
	m_bAutoScroll = bAuto;
} // CFCDynamicDrawView::SetAutoScroll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetIsProhibitWheel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiDhKiDeDiBfLiDiLiCpAiLnGiOhOiClHiCoJiCkJiCmHiCkEiCkJiCpAjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bProhibit	:_xZkqqHx_iLnGiOhOiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetIsProhibitWheel (BOOL bProhibit)
{
	m_bIsProhibitWheel = bProhibit;
} // CFCDynamicDrawView::SetIsProhibitWheel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetIsProhibitWheel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiDhKiDeDiBfLiDiLiCpAiLnGiOhOiClHiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iLnGiOhOiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::GetIsProhibitWheel () const
{
	// _xZkqqHx_iDhNiDeFiDfIiDhKiDeDiBfLiDiLiCpAiLnGiOhOiBeI_xHqqkZx_
	return m_bIsProhibitWheel;
} // CFCDynamicDrawView::GetIsProhibitWheel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetCurrentTool
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNjBeJjBpAjCiGiCmMiDgDiBfLiDiLiCpAjFnEiClH_xHqqkZx_.
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgDiBfLiDiL_xHqqkZx_.
 *************************************************************************/
FCToolBase* CFCDynamicDrawView::GetCurrentTool () const
{
//----- 02.12.09 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	return m_pDrawTool;
//----- 02.12.09 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	if (g_pToolManager == NULL) return NULL;
	if (0 <= m_lDrawTool)
		return g_pToolManager->GetTool(m_lDrawTool);
	else
		return NULL;
//----- 02.12.09 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::GetCurrentTool.

//----- 06.12.26 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SwitchCurrentTool
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lToolId			:_xZkqqHx_jFmPiNfIjAoGiCmMiDgDiBfLiDiLiCpAiOhHjCoIiBeC_xHqqkZx_-1_xZkqqHx_iCpAiOhHjCoIiClHiCoJiCmG_xHqqkZx_
 *							 _xZkqqHx_jBeJjBpAiDgDiBfLiDiL_xHqqkZx_(ID_TOOL_SELECT)_xZkqqHx_iCmJjFmPiNfIiClDiCoKiCoJiBeC_xHqqkZx_
 *			bDoImmediate	:_xZkqqHx_jFmPiNfIiPiIjHjNiCpAjBkGiNmAiCmJiOmAiNhDiClHiCoJiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeB_xHqqkZx_
 *							 PostMessage_xZkqqHx_iCmFjChIiJiEiPiIjHjNiClHiCoJiPoKiNiHiCmN_xHqqkZx_FALSE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	SwitchCurrentTool_xZkqqHx_iKnGjAjEiCmJiCoGiCmBiCmEiBeBiDgDiBfLiDiLjFmPiNfIiPiIjHjNiCkKiCmIiClDiCoKiClNiPoKiNiHiBeB_xHqqkZx_
 *			_xZkqqHx_iOmAiNnLiCmJiDgDiBfLiDiLiCkKjFmPiNfIiClDiCoKiCoJiCnMiCmFiCmNiBhFjFmPiNfIjCiGiBhGiCmGiCmIiCoJiBeC_xHqqkZx_
 *			PostMessage_xZkqqHx_iCmJiCoGiCoJiDfOiDeDiDiAiDeNiDiDiDgCiDhGiCkKiCkAiCoJiClNiCnPiBeBiClLiCmMiKnEiCmJiPiIjHjNiCkK_xHqqkZx_
 *			_xZkqqHx_jBjGiCoJiCmMiCpAjGgIiCkOjGnKjDeJiCmFjDlBjDpMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.12.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SwitchCurrentTool (long lToolId, BOOL bDoImmediate)
{
	if (GetCurrentTool() == NULL)
		FFThrowMiscUnknown();
	// _xZkqqHx_iDgDiBfLiDiLiCpAiDfIiDeDiDgCiDgAiBeC_xHqqkZx_
	GetCurrentTool()->SwitchCurrentTool(lToolId, bDoImmediate);
} // CFCDynamicDrawView::SwitchCurrentTool.
//----- 06.12.26 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::UpdateShowObjLabel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMjFfMiOkGiBeFjEpBjFfMiOkGiDiCiBfLiDgIiCkKjFmPiNfIiClDiCoKiClNiPoKiNiHiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iOmAiNnLiCmMjFfMiOkGiBeFjEpBjFfMiOkGiCpAiNhDiCkEiBeCjBeJjBpAiCmMiJpAiPjMiCoAiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bRgnRedraw	:_xZkqqHx_iNmFiMoDiCmJ_xHqqkZx_RgnRedraw_xZkqqHx_iCpAiOmAiNhDiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *						 FALSE_xZkqqHx_iCmMiPoKiNiHiBeBiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCnGiCmMjDgPjIfOiCmMiCnNiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::UpdateShowObjLabel (BOOL bRgnRedraw)
{
	FCZOrder zOrder;
	FCZOrderIterator iObj;
	g_pDoc->GetZOrder(zOrder, FDOZ_ON_ANY);
	for (zOrder.Begin(iObj); !iObj.IsEnd(); iObj++)
	{
		if ((*iObj)->IsMemberKindOf(FDOJ_LABEL))
		{
			AddRgn(*iObj);
			if (!g_pReg->GetIsShowObjLabel())
				RemoveSelectObj(*iObj);
		}
	}
	if (bRgnRedraw) SendRgnRedraw();
} // CFCDynamicDrawView::UpdateShowObjLabel.

//----------<NOT EXPORT TO VIEWER>-----------

//----- 05.04.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////////////////////////////////////////////////////////////////////////////////
//// _xZkqqHx_iImIiJlKiCmMiKnGjAjEiCmMiDhNiDeOiDiNjDfHiKeKiCmMiCfAjHoBiBeC_xHqqkZx_
//// 
//// /*************************************************************************
////  * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::IsUsedSColor
////  *
////  * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCmJjBmOiClFiCmEiBeBiOhHjCoIiCmM_xHqqkZx_SColor_xZkqqHx_iCkKiOgHiCoNiCoKiCmEiCkCiCoJiCkJiCmHiCkEiCkJiCpA_xHqqkZx_
////  *			_xZkqqHx_jGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
////  *
////  * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	val	:SColorID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
////  *
////  * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iIoKiCmCiCmFiCoAiOgHiCoNiCoKiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
////  *
////  * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
////  *************************************************************************/
//// BOOL CFCDynamicDrawView::IsUsedSColor (SColorID val) const
//// {
////     //----- _xZkqqHx_iDgDiBfLiDiLiCmMjDoAjFjEjFjEjFgJiCpAiMjPiNlIiClHiCoJ_xHqqkZx_ ------
////     for (int iTool = 0; iTool < FD_MAX_TOOL_ID; iTool++)
////     {
////         if (GetTool(iTool) != NULL && GetTool(iTool)->GetInsideObject() != NULL)
////         {
////             if (((FCObjDynabase*)GetTool(iTool)->GetInsideObject())->IsUsedSColor(val))
////                 return TRUE;
////         }
////     }
////     return FALSE;
//// } // CFCDynamicDrawView::IsUsedSColor.
//// 
////////////////////////////////////////////////////////////////////////////////
//
//#define MYISUSED(x) \
//BOOL CFCDynamicDrawView::IsUsed##x (x##ID val) const \
//{ \
//	for (int iTool = 0; iTool < FD_MAX_TOOL_ID; iTool++) \
//	{ \
//		if (g_pToolManager->GetTool(iTool) != NULL && g_pToolManager->GetTool(iTool)->GetInsideObject() != NULL) \
//		{ \
//			if (g_pToolManager->GetTool(iTool)->GetInsideObject()->IsUsed##x(val)) \
//				return TRUE; \
//		} \
//	} \
//	return FALSE; \
//} \
//
//MYISUSED(SColor)
//MYISUSED(EmfImage)
//MYISUSED(BrushRegister)
//MYISUSED(PenRegister)
//MYISUSED(PenStyle)
//MYISUSED(SFont)
//MYISUSED(PictArrow)
//
//#undef MYISUSED
//----- 05.04.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----------</NOT EXPORT TO VIEWER>-----------

//----- 05.04.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::PictArrowFrameModified
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiCmMiDhEiDiMiBfLiDiAiCkKjFmPiNfIiClDiCoKiClNiClBiCmGiCpAjCmKjCgNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	paid	:_xZkqqHx_jFmPiNfIiClDiCoKiClNjGoOiIpDiCmMiCgIiCgDiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::PictArrowFrameModified (PictArrowID paid)
//{
//	for (int iTool = 0; iTool < FD_MAX_TOOL_ID; iTool++)
//	{
//		if (g_pToolManager->GetTool(iTool) != NULL && g_pToolManager->GetTool(iTool)->GetInsideObject() != NULL)
//		{
//			g_pToolManager->GetTool(iTool)->GetInsideObject()->PictArrowFrameModified(paid);
//		}
//	}
//} // CFCDynamicDrawView::PictArrowFrameModified.
//----- 05.04.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::CallForAllObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBfDiCmEiCmMjFjEjFgJiCmJjBmOiClFiCmEiBeBiDfCiBfLiDiLiDgPiDgCiDeOiKnGjAjEiCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	func	:_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiKnGjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			data	:_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiKnGjAjEiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiKnGjAjEiCkK_xHqqkZx_FALSE_xZkqqHx_iCmMiPoKiNiHiCmNiBeB_xHqqkZx_FALSE_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiKnGjAjEiCkK_xHqqkZx_FALSE_xZkqqHx_iCpAjFnEiClFiClNiPoKiNiHiCmNiBeBiClLiClBiCmFiPiIjHjNiCpAiPeJjHlJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::CallForAllObject (FuncForAllObject func, void* data) const
{
	for (int iTool = 0; iTool < FD_MAX_TOOL_ID; iTool++)
	{
		if (g_pToolManager->GetTool(iTool) != NULL && g_pToolManager->GetTool(iTool)->GetInsideObject() != NULL)
		{
			if (!(*func)(g_pToolManager->GetTool(iTool)->GetInsideObject(), data)) return FALSE;
		}
	}
	return TRUE;
} // CFCDynamicDrawView::CallForAllObject.


//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::CommandID2Tool
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_ID_xZkqqHx_iCkJiCoHiDgDiBfLiDiLjFmPjAjEiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwID	: _xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_ID
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCnGiCmMiDhMiDeDiDjDiDfO_xHqqkZx_.ID_xZkqqHx_iCmJjBmOiJjOiClHiCoJiDgDiBfLiDiLiCkKiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiCmN_xHqqkZx_
// *			NULL_xZkqqHx_iCpAjFnEiClH_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.09.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FCToolBase* CFCDynamicDrawView::CommandID2Tool (DWORD dwID) const
//{
//	for (int iTool = 0; iTool < FD_MAX_TOOL_ID; iTool++)
//	{
//		if (m_ToolIdTbl[iTool].dwCommandID == dwID)
//			return m_ToolIdTbl[iTool].pTool;
//	}
//	return NULL;
//} // CFCDynamicDrawView::CommandID2Tool.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::Tool2CommandID
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCnGiCmMiDhMiDeDiDjDiDfOiCkJiCoHiDfCiDhNiDjDiDgI_xHqqkZx_ID_xZkqqHx_iCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	toolp	: _xZkqqHx_iDgDiBfLiDiLiCnGiCmMiDhMiDeDiDjDiDfO_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_ID._xZkqqHx_jBmOiJjOiClHiCoJiDgDiBfLiDiLiCkKiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ DWORD(-1) _xZkqqHx_iCpAjFnEiClH_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.09.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//DWORD CFCDynamicDrawView::Tool2CommandID (const FCToolBase* toolp) const
//{
//	for (int iTool = 0; iTool < FD_MAX_TOOL_ID; iTool++)
//	{
//		if (m_ToolIdTbl[iTool].pTool == toolp)
//			return m_ToolIdTbl[iTool].dwCommandID;
//	}
//	return DWORD(-1);
//} // CFCDynamicDrawView::Tool2CommandID.
//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetRTFEditor
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCWndRichEdit* CFCDynamicDrawView::GetRTFEditor () const
{
	return m_pWndRichEdit;
} // CFCDynamicDrawView::GetRTFEditor.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetCurrentMessage
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDiBiDgCiDfKiBfLiDfHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDiBiDgCiDfKiBfLiDfHiNfMjBkCjBmMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	CWnd::GetCurrentMessage _xZkqqHx_iCmN_xHqqkZx_ protected _xZkqqHx_iCmIiCmMiCmFiBeB_xHqqkZx_public _xZkqqHx_iCmJjFmPiKlHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const MSG* CFCDynamicDrawView::GetCurrentMessage () const
{
	return CWnd::GetCurrentMessage();
} // CFCDynamicDrawView::GetCurrentMessage.

//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetTool
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiCmJjBmOiJjOiClHiCoJiDgDiBfLiDiLiCpAjFnEiClHiBeCjGlDiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwIndex	:_xZkqqHx_iDgDiBfLiDiLiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FCToolBase* CFCDynamicDrawView::GetTool (DWORD dwIndex) const
//{
//	return m_ToolIdTbl[dwIndex].pTool;
//} // CFCDynamicDrawView::GetTool.
//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::CanEditSelectObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiCkKjFnCiPfHiJmCjEfMiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFnCiPfHiJmCjEfMiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::CanEditSelectObject () const
{
	return ((m_wSelObjLayerFlag & FDOZ_ON_EDIT) == FDOZ_ON_EDIT);
} // CFCDynamicDrawView::CanEditSelectObject.

//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetCurrentTextBothFontName
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiDhEiDeIiDjDiDgHjGlMiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiDjDiDgHjGlMiBeCiLkEjCmKiCmMjCgMiCkKjGlDiCkCiPoKiNiHiCmNiLpDjFlGiOjKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
const wchar_t* CFCDynamicDrawView::GetCurrentTextBothFontName () const
{
	//----- _xZkqqHx_jFfHiPiAiKePiCmMiDhEiDeIiDjDiDgHjGlMiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	if ((m_fciSelFontInfo.dwMask & FDFI_FLAG_FACENAME) == FDFI_FLAG_FACENAME)
		return m_fciSelFontInfo.szFaceName;
	else
		return L"";
} // CFCDynamicDrawView::GetCurrentTextBothFontName.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetCurrentTextBothFontSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiDhEiDeIiDjDiDgHiDfEiDeDiDfJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiDjDiDgHiDfEiDeDiDfJiBeCiLkEjCmKiCmMjCgMiCkKjGlDiCkCiPoKiNiHiCmN_xHqqkZx_ DBL_MAX _xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
mmetol CFCDynamicDrawView::GetCurrentTextBothFontSize () const
{
	if ((m_fciSelFontInfo.dwMask & FDFI_FLAG_HEIGHT) == FDFI_FLAG_HEIGHT)
		return m_fciSelFontInfo.mmHeight;
	else
		return DBL_MAX;
} // CFCDynamicDrawView::GetCurrentTextBothFontSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetCurrentTextBothFontWeight
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiDhEiDeIiDjDiDgHiCmMjBlOiClDiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jBlOiClDiBeCiLkEjCmKiCmMjCgMiCkKjGlDiCkCiPoKiNiHiCmN_xHqqkZx_WORD(-1);
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
WORD CFCDynamicDrawView::GetCurrentTextBothFontWeight () const
{
	if ((m_fciSelFontInfo.dwMask & FDFI_FLAG_WEIGHT) == FDFI_FLAG_WEIGHT)
		return m_fciSelFontInfo.wWeight;
	else
		return WORD(-1);
} // CFCDynamicDrawView::GetCurrentTextBothFontWeight.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetIsCurrentTextBothFontItalic
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiOmOjBmMiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iOmOjBmMiCmMiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeBiClLiCoKiImIiKePiCmMiPoKiNiHiCmN_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::GetIsCurrentTextBothFontItalic () const
{
	if ((m_fciSelFontInfo.dwMask & FDFI_FLAG_ITALIC) == FDFI_FLAG_ITALIC)
		return m_fciSelFontInfo.byItalic;
	else
		return FALSE;
} // CFCDynamicDrawView::GetIsCurrentTextBothFontItalic.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetIsCurrentTextBothFontUnderline
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiOmOjBmMiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iOmOjBmMiCmMiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeBiClLiCoKiImIiKePiCmMiPoKiNiHiCmN_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::GetIsCurrentTextBothFontUnderline () const
{
	if ((m_fciSelFontInfo.dwMask & FDFI_FLAG_UNDERLINE) == FDFI_FLAG_UNDERLINE)
		return m_fciSelFontInfo.byUnderline;
	else
		return FALSE;
} // CFCDynamicDrawView::GetIsCurrentTextBothFontUnderline.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetCurrentTextBothFontColor
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMjFlGiOjKjAeGiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFlGiOjKjAeGiBeCiLkEjCmKiCmMjAeGiCkKjGlDiCkCiPoKiNiHiCmN_xHqqkZx_ FD_COLOR_REF_UNSPECIFY_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
COLORREF CFCDynamicDrawView::GetCurrentTextBothFontColor () const
{
	if ((m_fciSelFontInfo.dwMask & FDFI_FLAG_COLORREF) == FDFI_FLAG_COLORREF)
		return m_fciSelFontInfo.crColor;
	else
		return FD_COLOR_REF_UNSPECIFY;
} // CFCDynamicDrawView::GetCurrentTextBothFontColor.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetCurrentTextBothFontName
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiDhEiDeIiDjDiDgHjGlMiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFontName	:_xZkqqHx_iDhEiDeIiDjDiDgHjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetCurrentTextBothFontName (const wchar_t* wcpFontName)
{
	// _xZkqqHx_iDhEiDeIiDjDiDgHjFmPjAjEiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	FCFontCharInfo fciStdFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	FCFontCharInfo fciExtFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiKePiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	memset(&fciStdFontInfo, 0, sizeof(fciStdFontInfo));
	memset(&fciExtFontInfo, 0, sizeof(fciExtFontInfo));

	//----- _xZkqqHx_jEpBjFfHiPiAiDhEiDeIiDjDiDgHiCmJiPoOjFpBiCpAjAnNjCoI_xHqqkZx_ -----
	wcscpy(fciExtFontInfo.szFaceName, wcpFontName);
	fciExtFontInfo.dwMask |= FDFI_FLAG_FACENAME;

	// _xZkqqHx_jFfHiPiAiCmMiDhEiDeIiDjDiDgHiIoKjHjHiCpAiOoGjDlOiBeC_xHqqkZx_
	WStringSet stStdCodeFontName;
	FFCollectFontName(NULL, &stStdCodeFontName);
	if (stStdCodeFontName.find(wcpFontName) != stStdCodeFontName.end())
	//----- _xZkqqHx_jFfHiPiAiDhEiDeIiDjDiDgHiIoKjHjHiCmJiCoAjDkPiClGiDhEiDeIiDjDiDgHiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
	{
		//----- _xZkqqHx_jFfHiPiAiDhEiDeIiDjDiDgHiCmJiPoOjFpBiCpAjAnNjCoI_xHqqkZx_ -----
		wcscpy(fciStdFontInfo.szFaceName, wcpFontName);
		fciStdFontInfo.dwMask |= FDFI_FLAG_FACENAME;
	}
	// _xZkqqHx_iDhEiDeIiDjDiDgHiPoOjFpBiCpAjAnNjCoIiBeC_xHqqkZx_
	GetCurrentTool()->SetCurrentTextFont(fciExtFontInfo, fciStdFontInfo);
	// _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiDhEiDeIiBfLiDeKiDfIiCpAjGnPiClHiBeC_xHqqkZx_
	FFGetMainWnd()->GetWnd()->SetFocus();
} // CFCDynamicDrawView::SetCurrentTextBothFontName.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetCurrentTextBothFontSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiDhEiDeIiDjDiDgHiDfEiDeDiDfJiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmFontSize	:_xZkqqHx_iDhEiDeIiDjDiDgHiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetCurrentTextBothFontSize (mmetol mmFontSize)
{
	// _xZkqqHx_iMlLiNnNiCmMiDhEiDeIiDjDiDgHiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	FCFontCharInfo fciStdFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	FCFontCharInfo fciExtFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiKePiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	memset(&fciStdFontInfo, 0, sizeof(fciStdFontInfo));
	memset(&fciExtFontInfo, 0, sizeof(fciExtFontInfo));
	fciStdFontInfo.mmHeight = mmFontSize;
	fciStdFontInfo.dwMask |= FDFI_FLAG_HEIGHT;
	fciExtFontInfo.mmHeight = mmFontSize;
	fciExtFontInfo.dwMask |= FDFI_FLAG_HEIGHT;
	GetCurrentTool()->SetCurrentTextFont(fciExtFontInfo, fciStdFontInfo);
	// _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiDhEiDeIiBfLiDeKiDfIiCpAjGnPiClHiBeC_xHqqkZx_
	FFGetMainWnd()->GetWnd()->SetFocus();
} // CFCDynamicDrawView::SetCurrentTextBothFontSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetCurrentTextBothFontWeight
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiDhEiDeIiDjDiDgHiCmMjBlOiClDiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wWeight	:_xZkqqHx_jBlOiClDiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetCurrentTextBothFontWeight (WORD wWeight)
{
	// _xZkqqHx_iMlLiNnNiCmMiDhEiDeIiDjDiDgHiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	FCFontCharInfo fciStdFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	FCFontCharInfo fciExtFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiKePiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	memset(&fciStdFontInfo, 0, sizeof(fciStdFontInfo));
	memset(&fciExtFontInfo, 0, sizeof(fciExtFontInfo));
	fciStdFontInfo.wWeight = wWeight;
	fciStdFontInfo.dwMask |= FDFI_FLAG_WEIGHT;
	fciExtFontInfo.wWeight = wWeight;
	fciExtFontInfo.dwMask |= FDFI_FLAG_WEIGHT;
	GetCurrentTool()->SetCurrentTextFont(fciExtFontInfo, fciStdFontInfo);
	// _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiDhEiDeIiBfLiDeKiDfIiCpAjGnPiClHiBeC_xHqqkZx_
	FFGetMainWnd()->GetWnd()->SetFocus();
} // CFCDynamicDrawView::SetCurrentTextBothFontWeight.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetIsCurrentTextBothFontItalic
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiOmOjBmMiCkJiCmHiCkEiCkJiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	bIsItalic	:_xZkqqHx_iOmOjBmMiCmMiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetIsCurrentTextBothFontItalic (BOOL bIsItalic)
{
	// _xZkqqHx_iMlLiNnNiCmMiDhEiDeIiDjDiDgHiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	FCFontCharInfo fciStdFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	FCFontCharInfo fciExtFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiKePiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	memset(&fciStdFontInfo, 0, sizeof(fciStdFontInfo));
	memset(&fciExtFontInfo, 0, sizeof(fciExtFontInfo));
	fciStdFontInfo.byItalic = bIsItalic;
	fciStdFontInfo.dwMask |= FDFI_FLAG_ITALIC;
	fciExtFontInfo.byItalic = bIsItalic;
	fciExtFontInfo.dwMask |= FDFI_FLAG_ITALIC;
	GetCurrentTool()->SetCurrentTextFont(fciExtFontInfo, fciStdFontInfo);
	// _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiDhEiDeIiBfLiDeKiDfIiCpAjGnPiClHiBeC_xHqqkZx_
	FFGetMainWnd()->GetWnd()->SetFocus();
} // CFCDynamicDrawView::SetIsCurrentTextBothFontItalic.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetIsCurrentTextBothFontUnderline
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMiBeBiOmOjBmMiCkJiCmHiCkEiCkJiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	bIsUnderline	:_xZkqqHx_iOmOjBmMiCmMiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetIsCurrentTextBothFontUnderline (BOOL bIsUnderline)
{
	// _xZkqqHx_iMlLiNnNiCmMiDhEiDeIiDjDiDgHiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	FCFontCharInfo fciStdFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	FCFontCharInfo fciExtFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiKePiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	memset(&fciStdFontInfo, 0, sizeof(fciStdFontInfo));
	memset(&fciExtFontInfo, 0, sizeof(fciExtFontInfo));
	fciStdFontInfo.byUnderline = bIsUnderline;
	fciStdFontInfo.dwMask |= FDFI_FLAG_UNDERLINE;
	fciExtFontInfo.byUnderline = bIsUnderline;
	fciExtFontInfo.dwMask |= FDFI_FLAG_UNDERLINE;
	GetCurrentTool()->SetCurrentTextFont(fciExtFontInfo, fciStdFontInfo);
	// _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiDhEiDeIiBfLiDeKiDfIiCpAjGnPiClHiBeC_xHqqkZx_
	FFGetMainWnd()->GetWnd()->SetFocus();
} // CFCDynamicDrawView::SetIsCurrentTextBothFontUnderline.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::SetCurrentTextBothFontColor
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgFiDeMiDfIiDgHiCmMiBeBjFfHiPiAiBeFjFfHiPiAiKePiDhEiDeIiDjDiDgHiLkEjCmKiCmMjFlGiOjKjAeGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	colorRef	:_xZkqqHx_jFlGiOjKjAeGiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			06.10.04 Fukushiro M. CFCTolBrFont_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::SetCurrentTextBothFontColor (COLORREF colorRef)
{
	// _xZkqqHx_iMlLiNnNiCmMiDhEiDeIiDjDiDgHiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	FCFontCharInfo fciStdFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	FCFontCharInfo fciExtFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiKePiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	memset(&fciStdFontInfo, 0, sizeof(fciStdFontInfo));
	memset(&fciExtFontInfo, 0, sizeof(fciExtFontInfo));
	fciStdFontInfo.crColor = colorRef;
	fciStdFontInfo.dwMask |= FDFI_FLAG_COLORREF;
	fciExtFontInfo.crColor = colorRef;
	fciExtFontInfo.dwMask |= FDFI_FLAG_COLORREF;
	GetCurrentTool()->SetCurrentTextFont(fciExtFontInfo, fciStdFontInfo);
	// _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiDhEiDeIiBfLiDeKiDfIiCpAjGnPiClHiBeC_xHqqkZx_
	FFGetMainWnd()->GetWnd()->SetFocus();
} // CFCDynamicDrawView::SetCurrentTextBothFontColor.
//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 01.01.21 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnFindNextText
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiMjPiNpFiDhAiDgMiDiLiBhFiJlKjFpLiCpAiMjPiNpFiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	tcpText	:_xZkqqHx_iMjPiNpFiDgFiDeMiDfIiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iOjPiCkKiMkJiCmCiCkJiCmBiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.15 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCDynamicDrawView::OnFindNextText (const _TCHAR* tcpText)
//{
//	return GetCurrentTool()->OnFindNextText(tcpText);
//} // CFCDynamicDrawView::OnFindNextText.
//----- 01.01.21 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.01.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnReplaceNextText
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHjChFiKlHiDhAiDgMiDiLiBhFiOjPiCpAjChFiKlHiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	tcpBefore	:_xZkqqHx_iMjPiNpFiDgFiDeMiDfIiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *			tcpAfter	:_xZkqqHx_jChFiKlHiDgFiDeMiDfIiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jChFiKlHiCmFiCkLiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCDynamicDrawView::OnReplaceNextText (const _TCHAR* tcpBefore, const _TCHAR* tcpAfter)
//{
//	return GetCurrentTool()->OnReplaceNextText(tcpBefore, tcpAfter);
//} // CFCDynamicDrawView::OnReplaceNextText.
//----- 01.01.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::Terminate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFmPjAjEiCoCiPpDjBnEjDjJiCpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	OnDestroy_xZkqqHx_iBeB_xHqqkZx_DeleteContents_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.03.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::Terminate ()
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	if (m_lDrawTool != -1)
	{
		ClearSelectObj();	// _xZkqqHx_jFjEjFgJiCmMjBeJjBpAiCpAiJpAiPjMiBeC_xHqqkZx_
		g_pToolManager->GetTool(m_lDrawTool)->Unselect(&dc);
		g_pToolManager->GetTool(m_lDrawTool)->SetLockStatus(FALSE);	// _xZkqqHx_iDgDiBfLiDiLiDiNiDgCiDeOiJpAiPjMiBeC_xHqqkZx_
	}
	// _xZkqqHx_iDfOiDeDiDhNiBfLiCpAjCoCiOhOiBeC_xHqqkZx_
	SetToolTimer(FALSE);
	// _xZkqqHx_iOkJjDkOiDfIiDeOiDiNiBfLiDiLiCpAiDeJiDhEiBeC_xHqqkZx_
	m_bAutoScroll = FALSE;
	m_bIsProhibitWheel = FALSE;	// _xZkqqHx_iDhNiDeFiDfIiDhKiDeDiBfLiDiLiCpAiLnGiOhOiBeI_xHqqkZx_
	m_lDrawTool = -1;
} // CFCDynamicDrawView::Terminate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::CheckSelectObjLayer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiClDiCoKiCmEiCkCiCoJjFjEjFgJiCmMiDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiLjGiJmCiDhEiDiJiDePiCpAiDgAiDeGiDgCiDeOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_jAfGiClFiCkNjCmHiJmBiClDiCoKiClNjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_NULL_xZkqqHx_iCpAiOhHjCoIiClHiCoJiCmGiBeB_xHqqkZx_
 *					 _xZkqqHx_jBeJjBpAjCiGiCmMjBfDiCmEiCmMjFjEjFgJiCkJiCoHiNmEiMhGiOfKiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::CheckSelectObjLayer (const FCObjDynabase* pObj)
{
	if (pObj != NULL)
	//----- _xZkqqHx_iDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiDhEiDiJiDePiCmMiNfIjAfG_xHqqkZx_ -----
	{
		WORD wFlag;
		g_pDoc->GetCurrentSheet()->GetLayerInfo(NULL, &wFlag,
										g_pDoc->ObjDynabaseToLZOrder(pObj).dwLayerIdx);
		m_wSelObjLayerFlag &= wFlag;
	} else
	//----- _xZkqqHx_iDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiDhEiDiJiDePiCmMiNmEiMhGiOfK_xHqqkZx_ -----
	{
		WORD wFlag;
		m_wSelObjLayerFlag = WORD(-1);
		ObjDynabaseVector::const_iterator iObj;
		for (iObj = SelectObjVector().begin(); iObj != SelectObjVector().end(); iObj++)
		{
			g_pDoc->GetCurrentSheet()->GetLayerInfo(NULL, &wFlag,
											g_pDoc->ObjDynabaseToLZOrder(*iObj).dwLayerIdx);
			m_wSelObjLayerFlag &= wFlag;
		}
	}
} // CFCDynamicDrawView::CheckSelectObjLayer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::AppendSelectOneObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjBeJjBpAjCiGiDiKiDfIiDgHiCmJiCfAjFjEjFgJiCpAjCmHiJmBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_jBeJjBpAiPpDjBnEiCmJiClHiCoJjFjEjFgJiBeC_xHqqkZx_
 *			pDC		:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeCjFgAiJoGiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	AppendSelectObj_xZkqqHx_iCmMiDfEiDhFiKnGjAjEiBeCjFkBjAjEjFjEjFgJiCmMjFmPiNfIiOjOiCmJiJlNjDhIiCoA_xHqqkZx_
 *			_xZkqqHx_jBeJjBpAjFmPiNfIiDiBiDgCiDfKiBfLiDfHiCpAjEkNjAeNiClFiCmIiCkCiCoGiCkEiCmJiClBiCmMiDfEiDhFiKnGjAjEiCkKjFeLjHhGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::AppendSelectOneObj (FCObjDynabase* pObj, CDC* pDC)
{
	// _xZkqqHx_jBeJjBpAjFjEjFgJiPfHiNiHiCmJjCmHiJmBiBeCiKpJiCmJjBeJjBpAiNmPiCnNiCmIiCoHiCmOjFjMiLeBiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiDfGiBfLiDgHiCmJjBlGiNnNiClFiCmIiCkCjFjEjFgJiCmMiPoKiNiHiCoAjFjMiLeBiBeC_xHqqkZx_
	if (FFAddToLZSorted(m_vSelectObj, pObj) == DWORD(-1))
		return;
	// _xZkqqHx_iNmFiMoDiCmJjCmHiJmBiClDiCoKiClNjFjEjFgJiCpAjAnNjCoIiBeC_xHqqkZx_
	m_pLastSelectObj = pObj;
	// _xZkqqHx_iDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiDhEiDiJiDePiCmMiNfIjAfGiBeC_xHqqkZx_
	CheckSelectObjLayer(pObj);
	// _xZkqqHx_iDgDiBfLiDiLiCmJjBeJjBpAiCpAjCmKjCgNiBeC_xHqqkZx_
	GetCurrentTool()->OnAppendSelectObj(pDC, pObj);
	if (pObj->IsMemberKindOf(FDOJ_LABEL) && !g_pReg->GetIsShowObjLabel())
	//----- _xZkqqHx_jBeJjBpAjCmHiJmBiCkKiDiJiDhIiDiLjFjEjFgJiCmFiBeBiDiJiDhIiDiLjEpBjFfMiOkGiDiCiBfLiDgIiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJjFfMiOkGiDiCiBfLiDgIiCpAjFmPiNfIiBeC_xHqqkZx_
		// SetIsShowObjLabel_xZkqqHx_iCmNiBeBiDfCiDhNiDjDiDgIiCmJiClFiCmEiCmNiCmIiCoHiCmIiCkCiBeC_xHqqkZx_Undo_xZkqqHx_iDgPiDgCiDhEiDeAiCkK_xHqqkZx_
		// _xZkqqHx_iInDjAhNiClFiCmIiCkCiPoKiPiKiCmFjAnIjCgGiClDiCoKiCmEiClFiCnMiCkEiClNiCnPiBeC_xHqqkZx_
		g_pReg->SetIsShowObjLabel(TRUE);
		// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
		g_pDoc->SetModifiedFlag(TRUE);
		// _xZkqqHx_jFmPiNfIiCpAiDhCiDiFiBfLiCmJjElNiJgGiClHiCoJiBeC_xHqqkZx_
		UpdateShowObjLabel(pDC != NULL);
	}
//----- 05.06.05 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDhCiDiFiBfLiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
	PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::AppendSelectOneObj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::RemoveSelectOneObj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAjEpBjBeJjBpAiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_jFjEjFgJiBeC_xHqqkZx_
 *			pDC		:_xZkqqHx_jFgAiJoGjHhAiDgGiDgPiDeDiDfIiDfCiDjDiDgFiDeMiDfIiDgHiBeCjFgAiJoGiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::RemoveSelectOneObj (FCObjDynabase* pObj, CDC* pDC)
{
	// _xZkqqHx_jBeJjBpAjFjEjFgJjCiGiCmJjBlGiNnNiClHiCoJiCkJiKgNjEeGiBeC_xHqqkZx_
	ObjDynabaseVector::iterator iObj;
	iObj = find(m_vSelectObj.begin(), m_vSelectObj.end(), pObj);
	if (iObj == m_vSelectObj.end()) return;
	//----- _xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiPfHiNiHiCmJiDfOiBfLiDfBiDgCiDgHiCkKiMkJiCmCiCkJiCmBiClNiPoKiNiH_xHqqkZx_ -----
	// _xZkqqHx_iDgDiBfLiDiLiCmJjBeJjBpAiJpAiPjMiCpAjCmKjCgNiBeC_xHqqkZx_
	GetCurrentTool()->OnRemoveSelectObj(pDC, pObj);

//----- 06.03.01 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDgFiDeMiDfIiDgHiCmMjBeJjBpAiCpAiJpAiPjMiBeC_xHqqkZx_
	pObj->ClearTextSelection(NULL);
//----- 06.03.01 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// View_xZkqqHx_iCmMjBeJjBpAjFjEjFgJiCpAiJpAiPjMiBeC_xHqqkZx_
	m_vSelectObj.erase(iObj);
	if (pObj == m_pLastSelectObj)
	//----- _xZkqqHx_iDfOiBfLiDfBiDgCiDgHiCkKiNmFiMoDiCmJjBeJjBpAiClDiCoKiClNjFjEjFgJiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iNmFiMoDiCmJjCmHiJmBiClDiCoKiClNjFjEjFgJiCpAiJpAiPjMiBeC_xHqqkZx_
		if (m_vSelectObj.empty())
			m_pLastSelectObj = NULL;
		else
			m_pLastSelectObj = m_vSelectObj.back();
	}
//----- 05.06.05 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDhCiDiFiBfLiCmJjBeJjBpAjFmPiNfIjCmKjCgNiBeC_xHqqkZx_
	PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.06.05 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::RemoveSelectOneObj.

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawView _xZkqqHx_iDeOiDiJiDfIiCmMiDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnImeNotify
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	IME_xZkqqHx_iCmM_xHqqkZx_On/Off_xZkqqHx_iCpAjAnIiCoIjBnGiCkGiCoJiCmGiCkLiCmIiCmHiCkKjCmKjCgNiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_jCmKjCgNiCmMjDoAjHgFiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lParam	:
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJiCfAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnImeNotify (WPARAM wParam, LPARAM lParam)
{
//----- 02.06.25 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ (WindowsMe_xZkqqHx_iCmFiNmFiPiJiCmMiLeOjDkOiOjOiCmMiCnNjDpKjGhLiMoKjDpMjHmNiOjOiCmJ_xHqqkZx_IME_xZkqqHx_iCkKjFfMiOkGiClDiCoKiCmIiCkC_xHqqkZx_)-----
//#if defined(_IME_ON)
//	if (wParam == IMN_SETOPENSTATUS)
//	{
//		// IME_xZkqqHx_iCpAjFmCiClGiCoJiBeC_xHqqkZx_
//		::CloseImeStatus(m_hWnd);
//	}
//#endif // defined(_IME_ON)
//	return 1;
//----- 02.06.25 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ (WindowsMe_xZkqqHx_iCmFiNmFiPiJiCmMiLeOjDkOiOjOiCmMiCnNjDpKjGhLiMoKjDpMjHmNiOjOiCmJ_xHqqkZx_IME_xZkqqHx_iCkKjFfMiOkGiClDiCoKiCmIiCkC_xHqqkZx_)-----
#if defined(_IME_ON)
	if (wParam == IMN_SETOPENSTATUS)
	{
		// IME_xZkqqHx_iCpAjFmCiClGiCoJiBeC_xHqqkZx_
		::CloseImeStatus(m_hWnd);
		return 1;
	}
#endif // defined(_IME_ON)
	return Default();
//----- 02.06.25 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ (WindowsMe_xZkqqHx_iCmFiNmFiPiJiCmMiLeOjDkOiOjOiCmMiCnNjDpKjGhLiMoKjDpMjHmNiOjOiCmJ_xHqqkZx_IME_xZkqqHx_iCkKjFfMiOkGiClDiCoKiCmIiCkC_xHqqkZx_)-----
} // CFCDynamicDrawView::OnImeNotify.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUserToolbarDblclk
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCpAiDfPiDhFiDiLiDeOiDiKiDgCiDeOiClFiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *			lParam	:_xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJiCfAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnUserToolbarDblclk (WPARAM wParam, LPARAM lParam)
{
	DWORD dwCmdID = DWORD(lParam);
	// _xZkqqHx_iDgDiBfLiDiLjBeJjBpAiBeC_xHqqkZx_
	OnAnyTool(dwCmdID);
	// _xZkqqHx_iMlLiNnNiCmMiDgDiBfLiDiLiCpAiDiNiDgCiDeOiBeC_xHqqkZx_
	if (GetCurrentTool() != NULL) GetCurrentTool()->SetLockStatus(TRUE);
	return 1;
} // CFCDynamicDrawView::OnUserToolbarDblclk.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUserSetZoom256
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfJiBfLiDiAjEhLjHkGiCpAjAnNjCoIiClHiCoJiBeCjAnNjCoIiClHiCoJjAjEjCgMiCmNiBeB_xHqqkZx_256_xZkqqHx_iCpAiCfAjEhLiCmGiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jBkGiClPiBeBiCfBjEhLiCmIiCoHiCmO_xHqqkZx_512_xZkqqHx_iBeB_xHqqkZx_0.5_xZkqqHx_jEhLiCmIiCoHiCmO_xHqqkZx_128_xZkqqHx_iCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:HIWORD	:_xZkqqHx_iNmFiMoDiCmJiDeOiDiKiDgCiDeOiClFiClNiImKjChFiCpAjCiGjAfDiCmGiClHiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
 *					 LOWORD	:_xZkqqHx_iNmEjFgAiJoGiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_TRUE _xZkqqHx_iCmIiCoHiCmOiNmEjFgAiJoGiBeC_xHqqkZx_
 *			lParam	:_xZkqqHx_iDfJiBfLiDiAjEhLjHkGiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJiCfAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.04.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnUserSetZoom256 (WPARAM wParam, LPARAM lParam)
{
//----- 05.06.16 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfJiBfLiDiAjCgMiCmN_xHqqkZx_[FD_ZOOM256_MIN,g_->lZoom256Max]_xZkqqHx_iCmJiOpLiCnMiCoJiCoGiCkEiCmJiBeC_xHqqkZx_
//	if (lParam < FD_ZOOM256_MIN) lParam = FD_ZOOM256_MIN;
//	if (g_->lZoom256Max < lParam) lParam = g_->lZoom256Max;
//	// _xZkqqHx_iDfJiBfLiDiAjCgMiCmJjFmPiNfIjGlDiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
//	if (g_->lZoom256 == lParam) return 1;
//	// _xZkqqHx_iDfJiBfLiDiAjCgMiCmMjAnNjCoIiBeC_xHqqkZx_
//	g_->lZoom256 = lParam;
//	g_->dZoom = ((double)g_->lZoom256 * g_->dDisplayPPM) / 256.0;
//	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiDgGiDgPiDeDiDfIiNmAjFfHiCmFjDlOiCoJiBeC_xHqqkZx_
//	CRect dvrctClient;
//	GetClientRect(&dvrctClient);
//	// _xZkqqHx_iNmFiMoDiCmMiDeOiDiKiDgCiDeOiImKjChFiCkKjCiGjAfDiCmJjHiIiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiCmMiDeJiDhEiDfKiDgCiDgHiCpAiMhGiOfKiBjFjAnNjCoIiBeC_xHqqkZx_
//	g_->lgOffsetX = mm2lg(m_mmptLast.x) - dvrctClient.right / 2;
//	g_->lgOffsetY = mm2lg(m_mmptLast.y) - dvrctClient.bottom / 2;
//	UpdateScrollSize();
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiDfJiBfLiDiAjCgMjFmPiNfIiCpAjCmKjCgNiBeC_xHqqkZx_
//	GetCurrentTool()->OnZoomChanged();
//	// _xZkqqHx_jBfDjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiBeC_xHqqkZx_
//	SetClientToRgn();
//	// _xZkqqHx_iNmEjFgAiJoGiCkKiOhHiOkGiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmNiBeBjChIiJiEiCmFiNmEjFgAiJoGiBeC_xHqqkZx_
//	if (wParam) PostRgnRedraw();
//	//----- _xZkqqHx_iDfIiDgFiBfLiDfOiDfIiDgPiBfLiCnGiCmMjFfMiOkGiPiIjHjN_xHqqkZx_ -----
//	WString strMsg;
//	strMsg.Format(L"ZOOM %d%%", (g_->lZoom256 * 100) / 256);
//	FFGetMainWnd()->SetStatusBarText(strMsg);
//	return 1;
//----- 05.06.16 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iNmFiMoDiCmMiDeOiDiKiDgCiDeOiCpAjCiGjAfDiCmJiClHiCoJiCkJiBeI_xHqqkZx_
	BOOL bIsCenterLastClick = HIWORD(wParam);
	// _xZkqqHx_iNmEjFgAiJoGiClHiCoJiCkJiBeI_xHqqkZx_
	BOOL bIsRedraw = LOWORD(wParam);

	// _xZkqqHx_iDfJiBfLiDiAjCgMiCmN_xHqqkZx_[FD_ZOOM256_MIN,g_->lZoom256Max]_xZkqqHx_iCmJiOpLiCnMiCoJiCoGiCkEiCmJiBeC_xHqqkZx_
	if (lParam < FD_ZOOM256_MIN) lParam = FD_ZOOM256_MIN;
	if (g_->lZoom256Max < lParam) lParam = g_->lZoom256Max;
	// _xZkqqHx_iDfJiBfLiDiAjCgMiCmJjFmPiNfIjGlDiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (g_->lZoom256 == lParam) return 1;

	if (bIsCenterLastClick)
	//----- _xZkqqHx_iNmFiMoDiCmMiDeOiDiKiDgCiDeOiCpAjCiGjAfDiCmJiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfJiBfLiDiAjCgMiCmMjAnNjCoIiBeC_xHqqkZx_
		g_->lZoom256 = lParam;
		g_->dZoom = ((double)g_->lZoom256 * g_->dDisplayPPM) / 256.0;
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiDgGiDgPiDeDiDfIiNmAjFfHiCmFjDlOiCoJiBeC_xHqqkZx_
		CRect dvrctClient;
		GetClientRect(&dvrctClient);
		// _xZkqqHx_iNmFiMoDiCmMiDeOiDiKiDgCiDeOiImKjChFiCkKjCiGjAfDiCmJjHiIiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiCmMiDeJiDhEiDfKiDgCiDgHiCpAiMhGiOfKiBjFjAnNjCoIiBeC_xHqqkZx_
		g_->lgOffsetX = mm2lg(m_mmptLast.x) - dvrctClient.right / 2;
		g_->lgOffsetY = mm2lg(m_mmptLast.y) - dvrctClient.bottom / 2;
	} else
	//----- _xZkqqHx_iMlLiNnNiCmMiDhNiDeFiDfIiImKjChFiCpAjCiGjAfDiCmJiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		//----- _xZkqqHx_iDfJiBfLiDiAjFmPiNfIjBePiCmMiDhNiDeFiDfIiDeKiBfLiDfMiDiLiCmMiImKjChFiCpAiKgPiCkGiCmEiCkIiCkN_xHqqkZx_ -----
		// _xZkqqHx_iDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
		CPoint dvptMsc;
		(void)::GetCursorPos(&dvptMsc);
		// _xZkqqHx_iDfIiDeOiDiKiBfLiDjDiNmAjFfHiCpAiDeOiDiJiDeDiDeBiDjDiDgHiNmAjFfHiCnGjFmPiKlHiBeC_xHqqkZx_
		ScreenToClient(&dvptMsc);
		// _xZkqqHx_iClDiCoHiCmJiOmAiNmAjFfHiCmJjFmPiKlHiBeC_xHqqkZx_
		CPoint lgptMsc = dvptMsc;
		DPtoLP(lgptMsc, NULL);
		DBLPoint mmptMsc = lg2mm(lgptMsc);

		//----- _xZkqqHx_iDfJiBfLiDiAjCgMiCmMjAnNjCoI_xHqqkZx_ -----
		g_->lZoom256 = lParam;
		g_->dZoom = ((double)g_->lZoom256 * g_->dDisplayPPM) / 256.0;
		//----- _xZkqqHx_iDfJiBfLiDiAjFmPiNfIiMoDiCmMiPpAiMiPiCmFiBeBiDhNiDeFiDfIiImKjChFiCmMiNmAjFfHiCkKiInKjDkOiClFiCmIiCkCiCoGiCkEiBeBiDeJiDhEiDfKiDgCiDgHiCpAjClCjAkO_xHqqkZx_ -----
		CPoint lgptTarget = mm2lg(mmptMsc);
		g_->lgOffsetX = lgptTarget.x - dvptMsc.x;
		g_->lgOffsetY = lgptTarget.y - dvptMsc.y;
	}
	// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiCpAiNfIjAfGiBeC_xHqqkZx_
	UpdateScrollSize();
	// _xZkqqHx_iDgDiBfLiDiLiCmJiDfJiBfLiDiAjCgMjFmPiNfIiCpAjCmKjCgNiBeC_xHqqkZx_
	GetCurrentTool()->OnZoomChanged();
	// _xZkqqHx_jBfDjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiBeC_xHqqkZx_
	SetClientToRgn();
	// _xZkqqHx_iNmEjFgAiJoGiCkKiOhHiOkGiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmNiBeBjChIiJiEiCmFiNmEjFgAiJoGiBeC_xHqqkZx_
	if (bIsRedraw) PostRgnRedraw();
	//----- _xZkqqHx_iDfIiDgFiBfLiDfOiDfIiDgPiBfLiCnGiCmMjFfMiOkGiPiIjHjN_xHqqkZx_ -----
	WString strMsg;
	strMsg.Format(L"ZOOM %d%%", (g_->lZoom256 * 100) / 256);
	FFGetMainWnd()->SetStatusBarText(strMsg);
	return 1;
//----- 05.06.16 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::OnUserSetZoom256.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUserLayerUpdated
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiMiDeDiDiEiBfLiCkKiNfIjAfGiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *			lParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJiCfAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnUserLayerUpdated (WPARAM wParam, LPARAM lParam)
{
	// CanSelectTool()_xZkqqHx_iCpAjClCiCnHiCmIiCkCiCmGiBeBiDiMiDeDiDiEiBfLiCmMjFnCiPfHiMkAiCpAjBfDjFjEjGjFiPmB_xHqqkZx_->Undo->_xZkqqHx_jBlNiKhAjApMiDgDiBfLiDiLiCpAjBeJjBpA_xHqqkZx_->Redo->_xZkqqHx_jBlNiKhAjApMiCpAiNoMjAkMiClHiCoJiCmGjHiOiClPiCoJiBeC_xHqqkZx_

	//----- _xZkqqHx_iMlLiNnNiCmMiDgDiBfLiDiLiCkKiDiMiDeDiDiEiBfLiCmMiDeBiDeOiDfKiDfIiPpDiLlFiCmJ_xHqqkZx_
	//			_xZkqqHx_iClLiCkOiCoNiCmIiCkCiPoKiNiHiCmNjBeJjBpAiDgDiBfLiDiLiCmJiInKiNhDiClHiCoJ_xHqqkZx_ -----
	if (!GetCurrentTool()->CanSelectTool())
	{
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//		SendMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
		SwitchCurrentTool(ID_TOOL_SELECT, TRUE);
	}
	//----- _xZkqqHx_jBeJjBpAjFjEjFgJiCmMjBeJjFmKiCmGjFmAiCnHjBnGiCkG_xHqqkZx_ -----
	// _xZkqqHx_iDiMiDeDiDiEiBfLiPiHiPjIiCkKjDpMiCoKjBnGiCoNiCmBiCmEiCkCiCoJiJmCjEfMjAkLiCkKiCkAiCoJiClNiCnPiBeBjBeJjBpAiPiHiPjIiCoAjFmAiCnHjBnGiCkGiBeC_xHqqkZx_
	ObjDynabaseVector vNewSelect;
	ObjDynabaseSet stNewSelect;
	
	//----- _xZkqqHx_iNmEjDgPjIfOiCmFiCkLiCoJiCoAiCmMiClOiCkPiCpAjBeJiCnBiPgPiClH_xHqqkZx_ -----
	ObjDynabaseVector::const_iterator iObj;
	for (iObj = SelectObjVector().begin(); iObj != SelectObjVector().end(); iObj++)
	{
		if (GetCurrentTool()->CanHandle(*iObj))
		//----- _xZkqqHx_iDgDiBfLiDiLiCmFjFjEjFgJiCkKiIlFiCkGiCoJiPoKiNiHiBgJjDoAjFjEiCmFiDiMiDeDiDiEiBfLiCoAjClCiNlIiClFiCmEiCkCiCoJiBgK_xHqqkZx_ -----
		{
			vNewSelect.push_back(*iObj);
			stNewSelect.insert(*iObj);
		}
	}

	//----- _xZkqqHx_iDgFiDeMiDfIiDgHiCmMjBeJjBpAiCpAiLeMjIfOiBeCiDgHiDgCiDhGjFjEjFgJiCkKjBeJjBpAiClDiCoKiCoJiCoAiCmMiClOiCkPjBeJiCnE_xHqqkZx_ -----
	// _xZkqqHx_iNmEjBeJjBpAiClHiCoJiDgFiDeMiDfIiDgHjBeJjBpAiPoOjFpBiBeC_xHqqkZx_
	map<DWORD, longRangeVector> mpNewObjIdToCharSelect;
	// _xZkqqHx_iNkBiBeBjBeJjBpAiClDiCoKiCmEiCkCiCoJiDgFiDeMiDfIiDgHiCmMjFjEjFgJiPfHiNiHiCpAiOoGjDlOiBeC_xHqqkZx_
	DWORDSet stTextSelObjId;
	GetTextSelectedObjectId(stTextSelObjId);
	mdef_const_iterator(DWORDSet, iIds);
	m1_for (iIds, stTextSelObjId)
	//----- _xZkqqHx_iNkBiBeBjBeJjBpAiClDiCoKiCmEiCkCiCoJiDgFiDeMiDfIiDgHiCmMjFjEjFgJiPfHiNiHiCpAiDiLiBfLiDhG_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiOjNiCmCjFjEjFgJiCmMiDgHiDgCiDhGiCpAiOoGjDlOiBeC_xHqqkZx_
		FCObjDynabase* pTopObj = g_pDoc->ObjID2Object(*iIds)->GetGroupTop();
		// _xZkqqHx_iDgHiDgCiDhGjFjEjFgJiCkKiBeBiNmEjBeJjBpAjFjEjFgJiCmJjBkOiClHiCoJiPoKiNiHiCmNiBeBiDgFiDeMiDfIiDgHiCoAiNmEjBeJjBpAiBeC_xHqqkZx_
		if (stNewSelect.find(pTopObj) != stNewSelect.end())
			GetTextSelection(mpNewObjIdToCharSelect[*iIds], *iIds);
	}
	// _xZkqqHx_jBeJjBpAiCpAiJpAiPjMiBeCjDkPiOjOiCmJiDgFiDeMiDfIiDgHjBeJjBpAiCoAiJpAiPjMiClDiCoKiCoJiBeC_xHqqkZx_
	ClearSelectObj(TRUE);

	// _xZkqqHx_jFjEjFgJiCmMiNmEjBeJjBpAiCmMjBePiCmJiBeBiDgFiDeMiDfIiDgHiCpAjBeJjBpAiClFiCmEiCkIiCkNiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCkEiClHiCoJiCmGiBeBjFjEjFgJjBeJjBpAiOjOiCmJiBeBiDgFiDeMiDfIiDgHjBeJjBpAjFjEiCoAiNmEjFgAiJoGiClDiCoKiCoJiBeC_xHqqkZx_

	map<DWORD, longRangeVector>::const_iterator iIdRange;
	for (iIdRange = mpNewObjIdToCharSelect.begin();
		 iIdRange != mpNewObjIdToCharSelect.end(); iIdRange++)
	//----- _xZkqqHx_iNmEjBeJjBpAiClHiCoJiDgFiDeMiDfIiDgHiCmMiPoOjFpBiCpAiDiLiBfLiDhG_xHqqkZx_ -----
	{
		// _xZkqqHx_jFjEjFgJiBgJ_xHqqkZx_iIdRange->first_xZkqqHx_iBgKiCmMiDgFiDeMiDfIiDgHjEmNiImNjEhKjHpBiCpAiOoGjDlOiBeC_xHqqkZx_
		const longRangeVector& vTextRange = iIdRange->second;
		longRangeVector::const_iterator iRg;
		for (iRg = vTextRange.begin(); iRg != vTextRange.end(); iRg++)
		//----- _xZkqqHx_jFjEjFgJiBgJ_xHqqkZx_iIdRange->first_xZkqqHx_iBgKiCmMiDgFiDeMiDfIiDgHjEmNiImNjEhKjHpBiCpAiDiLiBfLiDhG_xHqqkZx_ -----
		{
			// _xZkqqHx_iDgFiDeMiDfIiDgHjBeJjBpAjEmNiImNiCmMjAnNjCoIiBeC_xHqqkZx_
			AppendTextSelection(iIdRange->first, (*iRg).lFrom, (*iRg).lTo);
		}
	}

	// _xZkqqHx_jBeJjBpAiNmEjDgPjIfOiBeC_xHqqkZx_
	AppendSelectObj(vNewSelect, TRUE);
	return 1;
} // CFCDynamicDrawView::OnUserLayerUpdated.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUserCurrentSheetChanged
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfGiBfLiDgHiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *			lParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJiCfAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnUserCurrentSheetChanged (WPARAM wParam, LPARAM lParam)
{
	// CanSelectTool()_xZkqqHx_iCpAjClCiCnHiCmIiCkCiCmGiBeBiDiMiDeDiDiEiBfLiCmMjFnCiPfHiMkAiCpAjBfDjFjEjGjFiPmB_xHqqkZx_->Undo->_xZkqqHx_jBlNiKhAjApMiDgDiBfLiDiLiCpAjBeJjBpA_xHqqkZx_->Redo->_xZkqqHx_jBlNiKhAjApMiCpAiNoMjAkMiClHiCoJiCmGjHiOiClPiCoJiBeC_xHqqkZx_

	// _xZkqqHx_jBeJjBpAiCpAiJpAiPjMiBeC_xHqqkZx_
	ClearSelectObj(TRUE);
	//----- _xZkqqHx_iMlLiNnNiCmMiDgDiBfLiDiLiCkKiDeBiDeOiDfKiDfIiPpDiLlFiCmJ_xHqqkZx_
	//			_xZkqqHx_iClLiCkOiCoNiCmIiCkCiPoKiNiHiCmNjBeJjBpAiDgDiBfLiDiLiCmJiInKiNhDiClHiCoJ_xHqqkZx_ -----
	if (!GetCurrentTool()->CanSelectTool())
	{
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//		SendMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
		SwitchCurrentTool(ID_TOOL_SELECT, TRUE);
	}
	return 1;
} // CFCDynamicDrawView::OnUserCurrentSheetChanged.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUserRgnRedraw
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiNmEjFgAiJoGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *			lParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJiCfAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	RgnRedraw_xZkqqHx_iCpA_xHqqkZx_PostMessage_xZkqqHx_iCmFiOmAiNhDiClHiCoJiClNiCnPiCmJiNoMjAkMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDePiDiLiBfLiDhGjFnCiPfHiDgDiBfLiDiLiCmF_xHqqkZx_FCObjPoint_xZkqqHx_iCpAjFfMiOkGiPpDjBnEiCmJiClHiCoJiClNiCnPiBeB_xHqqkZx_
 *			FCToolGroupSelect_xZkqqHx_iCmFjFjEjFgJjBeJjBpAiCmMiDfOiDeDiDhOiDjDiDePiCmFiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpA_xHqqkZx_
 *			_xZkqqHx_jCmHiJmBiClHiCoJiBeCiClBiCmMiOjOiBeBjBkGiOjOiNmEjFgAiJoGiCmNiDhNiDfJiDeDiCmMiCmFiBeB_xHqqkZx_PostRgnRedraw_xZkqqHx_iCpA_xHqqkZx_
 *			_xZkqqHx_iNoMjAkMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.08.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnUserRgnRedraw (WPARAM wParam, LPARAM lParam)
{
	CRect rtRgn;
	// _xZkqqHx_iNfIjAfGjHmMiIoGiCpAiOoGjDlOiBeCjDkPiOjOiCmJiNfIjAfGjHmMiIoGiCpAjEhHiMgJjAeGiCmFjDgIiCoIiCmCiCnEiClHiBeC_xHqqkZx_
	if (GetUpdateRect(rtRgn, TRUE))
	{
		// _xZkqqHx_iNfIjAfGjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiBeC_xHqqkZx_
		DPtoLP(rtRgn);
		AddRgn(rtRgn);
	}
	if (m_vmmrtRgn.empty())	return FALSE;
	(void)RedrawWindow(NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_NOERASE);
	return 1;
} // CFCDynamicDrawView::OnUserRgnRedraw.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUserUpdateViewScreenRect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiCmMiDeFiDeCiDjDiDgIiDeFjHmMiIoGiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgKiCpAiNfIjAfGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *			lParam	:_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJiCfAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiCmNiBeBiDeFiDeCiDjDiDgIiDeFiCmMjHmMiIoGiCpAiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmFiLeMjIfOiClFiCmEiCkCiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMiPoDjFpLiMpMiBeFiNlGjFpLiMpMiCmMiDiKiDfEiDeDiDfJiCpAiMjPiPgPiClHiCoJiClNiCnPiCmJiOgHjHhAiBeC_xHqqkZx_
 *			MainFrame_xZkqqHx_iCmMiInKjDkOiBeFiDiKiDfEiDeDiDfJiCmMjDhIiCmJjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iClBiCoKiImIiKePiCmFiPoDjFpLiMpMiBeFiNlGjFpLiMpMiCmMiDiKiDfEiDeDiDfJiCpAiMjPiPgPiClHiCoJjFpLjGeAiCkKjGlDiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.08.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnUserUpdateViewScreenRect (WPARAM wParam, LPARAM lParam)
{
	// _xZkqqHx_iDiKiDfEiDeDiDfJiCmN_xHqqkZx_CView_xZkqqHx_iCmMiKnGjAjEiCmFjFnPiCoHiCkGiCoHiCoKiCoJiCkKiBeBiDhEiDiMiBfLiDiAiCmMiInKjDkOiCmN_xHqqkZx_
	// CView_xZkqqHx_iCmMiKnGjAjEiCmFjFnPiCoHiCkGiCoJiClBiCmGiCkKiCmFiCkLiCmIiCkCiClNiCnPiBeBiDhEiDiMiBfLiDiAiCkJiCoH_xHqqkZx_
	// _xZkqqHx_iClBiCmMiKnGjAjEiCmFjCmKjCgNiClFiCmEiCoAiCoHiCkEiBeC_xHqqkZx_
	CRect scrtView;
	GetClientRect(scrtView);
	ClientToScreen(scrtView);
	m_scrtView = scrtView;
	return 1;
} // CFCDynamicDrawView::OnUserUpdateViewScreenRect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUserObjSelectChanged
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjBeJjBpAiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJ_xHqqkZx_View_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	1
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnUserObjSelectChanged (WPARAM, LPARAM)
{
//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iMlLiNnNiCmMiLkEjCmKiDhEiDeIiDjDiDgHiPoOjFpBiCpAiNfIjAfGiBeC_xHqqkZx_
	CheckSelectFontInfo();
//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiDeMiDiFiBfLiCkJiCoHiBeBjDkPiClGiDiBiDgCiDfKiBfLiDfHiCpAiNoNiPjMiBeC_xHqqkZx_
	MSG msg;
	while (::PeekMessage(&msg, m_hWnd, WM_USER_OBJ_SELECT_CHANGED,
							WM_USER_OBJ_SELECT_CHANGED, PM_REMOVE));
	// _xZkqqHx_iDgDiBfLiDiLiCmJjFjEjFgJjBeJjBpAjFmPiNfIiCpAjCmKjCgNiBeC_xHqqkZx_
	GetCurrentTool()->OnObjSelectChanged();
//----- 05.06.30 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDgDiBfLiDiLiCmJiDgFiDeMiDfIiDgHjBeJjBpAjFmPiNfIiCpAjCmKjCgNiBeC_xHqqkZx_
	GetCurrentTool()->OnTextSelectChanged();
//----- 05.06.30 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	return 1;
} // CFCDynamicDrawView::OnUserObjSelectChanged.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUserTextSelectChanged
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDeMiDfIiDgHiCmMjBeJjBpAjEmNiImNiCkKjFmPiNfIiClDiCoKiClNiPoKiNiHiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnUserTextSelectChanged (WPARAM, LPARAM)
{
//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iMlLiNnNiCmMiLkEjCmKiDhEiDeIiDjDiDgHiPoOjFpBiCpAiNfIjAfGiBeC_xHqqkZx_
	CheckSelectFontInfo();
//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiDeMiDiFiBfLiCkJiCoHiBeBjDkPiClGiDiBiDgCiDfKiBfLiDfHiCpAiNoNiPjMiBeC_xHqqkZx_
	MSG msg;
	while (::PeekMessage(&msg, m_hWnd, WM_USER_TEXT_SELECT_CHANGED, WM_USER_TEXT_SELECT_CHANGED, PM_REMOVE));
	// _xZkqqHx_iDgDiBfLiDiLiCmJiDgFiDeMiDfIiDgHjBeJjBpAjFmPiNfIiCpAjCmKjCgNiBeC_xHqqkZx_
	GetCurrentTool()->OnTextSelectChanged();
	return 1;
} // CFCDynamicDrawView::OnUserTextSelectChanged.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUserPursuerTextNeedInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiDgCiDhGiDhBiDjDiDgHiCkKiDhBiDjDiDgHiPoOjFpBiCmMjAnNjCoIiCpAjHhGiLiBiClHiCoJiNnLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jFeLiClIiBeB_xHqqkZx_GetCursorPos_xZkqqHx_iKnGjAjEiCmFiDhNiDeFiDfIiImKjChFiCpAiOoGjDlOiClHiCoJiClBiCmGiBeC_xHqqkZx_
 *			_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiCkK_xHqqkZx_WM_MOUSEMOVE_xZkqqHx_iCmJjHiKiCmBiCmEiCkCiCoJiCmGiBeBiDiBiDgKiDiFiBfLjFfMiOkGiOjOiCmIiCmHiCmJ_xHqqkZx_
 *			_xZkqqHx_iDhNiDeFiDfIiImKjChFiCkKiMlLiNnNiCmMiImKjChFiCmGjAeIiCkCiIoBiCmBiCmEiCkCiCoJiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnUserPursuerTextNeedInfo (WPARAM, LPARAM)
{
//----- 05.09.14 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjCmKjCgNiBeC_xHqqkZx_
//	GetCurrentTool()->OnPursuerTextNeedInfo();
//----- 05.09.14 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmJjCmKjCgNiBeC_xHqqkZx_
	g_pDoc->OnPursuerTextNeedInfo();
//----- 05.09.14 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	return 1;
} // CFCDynamicDrawView::OnUserPursuerTextNeedInfo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnXbuttonup
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	X_xZkqqHx_iDhLiDfOiDjDiBgJiDhNiDeFiDfIiCmMiNlGiJeFiDfEiDeDiDgIiCmMjAgJiCnOiBeFjGnPiCoJiBgKiCmM_xHqqkZx_UP_xZkqqHx_iCmJiCoGiCmBiCmEiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_iDeJiDjDiDiJiDeDiDjDiDhNiDgKiDiFiDeBiDiLiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJiCfAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.07.15 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCDynamicDrawView::OnXbuttonup (WPARAM wParam, LPARAM lParam)
{
	TRACE(_T("CFCDynamicDrawView::OnXbuttonup\n"));
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	CPoint lgptMsc(LOWORD(lParam), HIWORD(lParam));
	DPtoLP(lgptMsc);
	// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCpAiLeMjIfO_xHqqkZx_.
	m_mmptLast = lg2mm(lgptMsc);
	const WORD wKeyFlag = LOWORD(wParam);
	const WORD wBtnFlag = HIWORD(wParam);
	if (wBtnFlag == XBUTTON1)
		GetCurrentTool()->OnXButton1Up(&dc, m_mmptLast, wKeyFlag);
	else
	if (wBtnFlag == XBUTTON2)
		GetCurrentTool()->OnXButton2Up(&dc, m_mmptLast, wKeyFlag);
	return 1;
} // CFCDynamicDrawView::OnXbuttonup.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnAnyTool
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCmMiCkCiClIiCoKiCkJiCkKjBeJjBpAiClDiCoKiClNiCmGiCkLiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nCmdID	:_xZkqqHx_jBeJiCmOiCoKiClNiDgDiBfLiDiLiCmMiDiKiDfMiBfLiDfI_xHqqkZx_ID.
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	ON_COMMAND_RANGE_xZkqqHx_iDhNiDeOiDiNiCmJiCoGiCmBiCmEiBeBiDiKiDfMiBfLiDfI_xHqqkZx_ID_xZkqqHx_iCkK_xHqqkZx_ ID_TOOL_BEGIN_MARK
 *			_xZkqqHx_iCkJiCoH_xHqqkZx_ ID_TOOL_END_MARK_xZkqqHx_iCmMiDgDiBfLiDiLiCmMiOmAiNhDiCkKiClHiCnHiCmEiClBiCmMiKnGjAjEiCmJjHiIiCoJiCoGiCkEiCmJ_xHqqkZx_
 *			_xZkqqHx_iClFiCmEiCkCiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jAfGiClFiCkCiDgDiBfLiDiLiCpAiNoMjAkMiClFiClNiCmGiCkLiCmNiBeB_xHqqkZx_resource.h_xZkqqHx_jCiGiCmMiDiKiDfMiBfLiDfI_xHqqkZx_ID_xZkqqHx_iCpA_xHqqkZx_
 *			_xZkqqHx_iOoIiNoMiLmGiCmFiPeDjAlDiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnAnyTool (UINT nCmdID)
{
	long lTool = -1;
	if (nCmdID == ID_TOOL_ANY_EDIT)
	//----- _xZkqqHx_iDeHiDgGiDeCiDgCiDgHiDgDiBfLiDiLiCmMiPoKiNiHiCmNiBeBjAlDiClFiCkCiDeHiDgGiDeCiDgCiDgHiDgDiBfLiDiLiCpAiMjPiNpF_xHqqkZx_ ------
	{
		lTool = GetAnyEditToolIndex();
	} else if (nCmdID == ID_TOOL_SELECT)
	{
		lTool = g_pToolManager->CommandID2ToolIndex(g_pDoc->GetStdTool());
	} else
	{
		lTool = g_pToolManager->CommandID2ToolIndex(nCmdID);
		//----- _xZkqqHx_jBeJjBpAjCiGiCmMjBfDiCmEiCmMjFjEjFgJiCkKiBeBiClBiCmMiDgDiBfLiDiLiCmFjBiAiNoMiJmCjEfMiCkJiCmHiCkEiCkJiDgAiDeGiDgCiDeO_xHqqkZx_ -----
		// ToolRotate_xZkqqHx_iCmIiCmHiCmFjHeMiMpIiBeC_xHqqkZx_
		ObjDynabaseVector::const_iterator iObj;
		for (iObj = SelectObjVector().begin(); iObj != SelectObjVector().end(); iObj++)
		{
			if (!g_pToolManager->GetTool(lTool)->CanHandle(*iObj))
			{
				lTool = -1;
				break;
			}
		}
		// _xZkqqHx_iDgDiBfLiDiLiCkKjBeJjBpAiCmFiCkLiCmIiCkCiPoKiNiHiCmNiBeBjFfHiPiAiDgDiBfLiDiLiCmJiBeC_xHqqkZx_
		if (lTool == -1)
			lTool = g_pToolManager->CommandID2ToolIndex(g_pDoc->GetStdTool());
	}

//----- 06.11.01 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_jDkPiClGiDgDiBfLiDiLiCpAiCfBiJpBjBeJjBpAiClFiClNiCoHiDiNiDgCiDeOiCkKiCkJiCkJiCoJiCoGiCkEiCmJiClFiCmEiCnNiClNiCkKiBeB_xHqqkZx_
	// PostMessage_xZkqqHx_iCmF_xHqqkZx_ID_TOOL_XXX _xZkqqHx_iCpAjBjHjAeNiClHiCoJiPoKiNiHiCmJiBeBiCfBiJpBjBjHjAeNiClFiCmE_xHqqkZx_
	// _xZkqqHx_iDiNiDgCiDeOiClDiCoKiCoJiDfAiBfLiDfIiCkKiCkAiCmBiClNiBgJiDgAiDgCiDhGiDfIiDgHiDeBiCkJiCoHiDgIiDiJiDgCiDePiClHiCoJiPoKiNiHiCmIiCmHiBgKiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiClNiCnPiBeBiClBiCmMiOgEjHgMiCmNiCkAiCkLiCoHiCnPiClNiBeC_xHqqkZx_
//----- 06.11.01 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iDgDiBfLiDiLiCmJjFmPiNfIjGlDiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (m_lDrawTool == lTool) return;
	// _xZkqqHx_iDgDiBfLiDiLiCkKiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (lTool == -1) return;

	// _xZkqqHx_iDfOiDeDiDhNiBfLiCpAjCoCiOhOiBeC_xHqqkZx_
	SetToolTimer(FALSE);
	// _xZkqqHx_iOkJjDkOiDfIiDeOiDiNiBfLiDiLiCpAiDeJiDhEiBeC_xHqqkZx_
	m_bAutoScroll = FALSE;
// 01.11.12 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	m_bIsProhibitWheel = FALSE;	// _xZkqqHx_iDhNiDeFiDfIiDhKiDeDiBfLiDiLiCpAiLnGiOhOiBeI_xHqqkZx_
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	g_pToolManager->GetTool(m_lDrawTool)->Unselect(&dc);
	g_pToolManager->GetTool(m_lDrawTool)->SetLockStatus(FALSE);	// _xZkqqHx_iDgDiBfLiDiLiDiNiDgCiDeOiJpAiPjMiBeC_xHqqkZx_
// 02.12.09 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	m_pDrawTool = pTool;
	m_lDrawTool = lTool;
	g_pToolManager->GetTool(m_lDrawTool)->Select(&dc);
	// _xZkqqHx_iDgDiBfLiDiLjFmPiNfIjCmKjCgNiBeCiDgAiDgCiDhGiDeHiDgGiDeCiDfOiCmMjGpAiKiEjFfMiOkGiDgPiBfLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	FFGetMainWnd()->PostMessage(WM_USER_CURRENT_TOOL_CHANGED);
} // CFCDynamicDrawView::OnAnyTool.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnAnyTlcmd
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCmMjDoAjFjEiDfCiDhNiDjDiDgIiCmMiCkCiClIiCoKiCkJiCkKjBeJjBpAiClDiCoKiClNiCmGiCkLiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nCmdID	:_xZkqqHx_jBeJiCmOiCoKiClNiDgDiBfLiDiLiCmMiDiKiDfMiBfLiDfI_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnAnyTlcmd (UINT nCmdID)
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	GetCurrentTool()->OnAnyToolCommand(&dc, nCmdID);
} // CFCDynamicDrawView::OnAnyTlcmd.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateAnyTool
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCkKjBeJjBpAjCiGiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLjDjJiCmMjFfMiOkGjFmPiNfIjHhA_xHqqkZx_.
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	ON_COMMAND_RANGE_xZkqqHx_iDhNiDeOiDiNiCmJiCoGiCmBiCmEiBeBiDiKiDfMiBfLiDfI_xHqqkZx_ID_xZkqqHx_iCkK_xHqqkZx_ ID_TOOL_BEGIN_MARK
 *			_xZkqqHx_iCkJiCoH_xHqqkZx_ ID_TOOL_END_MARK_xZkqqHx_iCmMiDgDiBfLiDiLiCmMiOmAiNhDiCkKiClHiCnHiCmEiClBiCmMiKnGjAjEiCmJjHiIiCoJiCoGiCkEiCmJ_xHqqkZx_
 *			_xZkqqHx_iClFiCmEiCkCiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jAfGiClFiCkCiDgDiBfLiDiLiCpAiNoMjAkMiClFiClNiCmGiCkLiCmNiBeB_xHqqkZx_resource.h_xZkqqHx_jCiGiCmMiDiKiDfMiBfLiDfI_xHqqkZx_ID_xZkqqHx_iCpA_xHqqkZx_
 *			_xZkqqHx_iOoIiNoMiLmGiCmFiPeDjAlDiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateAnyTool (CCmdUI* pCmdUI)
{
	if (pCmdUI->m_nID == ID_TOOL_ANY_EDIT)
	//----- _xZkqqHx_iDeHiDgGiDeCiDgCiDgHiDgDiBfLiDiLiCmMiPoKiNiHiCmNiBeBjAoKjHhAiKnGjAjEiCnG_xHqqkZx_ ------
	{
		OnUpdateAnyEditTool(pCmdUI);
		return;
	}
	if (pCmdUI->m_nID == ID_TOOL_SELECT)
	//----- _xZkqqHx_jBeJjBpAiDgDiBfLiDiLiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// ToolSelect_xZkqqHx_iCmMiPoKiNiHiCmGiBeB_xHqqkZx_ToolSelEdit _xZkqqHx_iCmMiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
		FCToolBase* pTool = g_pToolManager->CommandID2Tool(g_pDoc->GetStdTool());
		pCmdUI->SetRadio(GetCurrentTool() == pTool);
		// _xZkqqHx_iPoNiCmJ_xHqqkZx_Enable_xZkqqHx_iCmJiBeCiClLiCkEiClFiCmIiCkCiCmGiBeB_xHqqkZx_ID_TOOL_SELECT_xZkqqHx_iCmMiDiBiDgCiDfKiBfLiDfHiCpA_xHqqkZx_
		// _xZkqqHx_iOpDiCkPiOoGiCoKiCmIiCkCiPoKiNiHiCkKjAlGiClGiCoJiClNiCnPiBeC_xHqqkZx_
		// ID_TOOL_SELECT_xZkqqHx_iCmNiBeBiPiJiKpKiJlLiOjOiCmJjBjHjAeNiClDiCoKiCoJiCmMiCmFjFeLiClIiPiIjHjNiCmFiCkLiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
		pCmdUI->Enable(TRUE);
	} else
	//----- _xZkqqHx_jBeJjBpAiDgDiBfLiDiLiImIiKePiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// CanSelectTool()_xZkqqHx_iCpAjClCiCnHiCmIiCkCiCmGiBeBiDiMiDeDiDiEiBfLiCmMjFnCiPfHiMkAiCpAjBfDjFjEjGjFiPmB_xHqqkZx_->Undo->_xZkqqHx_jBlNiKhAjApMiDgDiBfLiDiLiCpAjBeJjBpA_xHqqkZx_->Redo->_xZkqqHx_jBlNiKhAjApMiCpAiNoMjAkMiClHiCoJiCmGjHiOiClPiCoJiBeC_xHqqkZx_
		FCToolBase* pTool = g_pToolManager->CommandID2Tool(pCmdUI->m_nID);
		pCmdUI->SetRadio(GetCurrentTool() == pTool);
		pCmdUI->Enable(FFCanBasicOperate() && pTool != NULL && pTool->CanSelectTool());
	}
} // CFCDynamicDrawView::OnUpdateAnyTool.

//----- 07.01.02 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnCancelSwitchingLock
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCmMiDfIiDeDiDgCiDgAiDjDiDePjCiGiDiNiDgCiDeOiCpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCmNiBeBiDfIiDeDiDgCiDgAiDjDiDePjCiGiCmN_xHqqkZx_ m_bIsToolSwitching _xZkqqHx_iCmJiCoGiCmBiCmEiDiNiDgCiDeO_xHqqkZx_
 *			_xZkqqHx_iClDiCoKiCmEiCkCiCoJiBeCiDgDiBfLiDiLiCmMiDfIiDeDiDgCiDgAiPeJjHlJiMoDiCmJiBeBiClBiCmMiDiBiDgCiDfKiBfLiDfHiCmJiCoGiCmBiCmE_xHqqkZx_
 *			_xZkqqHx_iDiNiDgCiDeOiCkKiJpAiPjMiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	07.01.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnCancelSwitchingLock ()
{
	// _xZkqqHx_iDfIiDeDiDgCiDgAiDjDiDePjCiGiDiNiDgCiDeOiCpAiDeMiDiDiDjDiDfKiDiLiBeC_xHqqkZx_
	GetCurrentTool()->SetIsToolSwitching(FALSE);
} // CFCDynamicDrawView::OnCancelSwitchingLock.
//----- 07.01.02 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::GetAnyEditToolIndex
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeHiDgGiDeCiDgCiDgHiDgDiBfLiDiLjHnOiCkKjBeJjBpAiClDiCoKiClNiCmGiCkLiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_OnAnyTool_xZkqqHx_iCkJiCoH_xHqqkZx_
 *			_xZkqqHx_iOmAiNhDiClDiCoKiCoJiBeCjBeJjBpAjCiGiCmMjFjEjFgJiCpAjFnCiPfHiCmFiCkLiCoJiDgDiBfLiDiLiCpAjFnEiClHiBeC_xHqqkZx_
 *			_xZkqqHx_jFnCiPfHiCmFiCkLiCoJiDgDiBfLiDiLiCkKjGlDiCkCiPoKiNiHiCmNjFfHiPiAiDgDiBfLiDiLiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFnCiPfHiDgDiBfLiDiLiBeBiIlNiCkCiCmNjFfHiPiAiDgDiBfLiDiLiCmMiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDeHiDgGiDeCiDgCiDgHiDgDiBfLiDiLjHnOiDhLiDfOiDjDiCkKiJjPiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_PostMessage
 *			_xZkqqHx_iCkJiCoHiLeOjDkOiClDiCoKiCoJiClBiCmGiCoAiCkAiCoJiBeCjBeJjBpAjCiGiCmMjFjEjFgJiCmMiOoNjHnOiCkJiCoHjDeLjAnIiCmI_xHqqkZx_
 *			_xZkqqHx_iDeHiDgGiDeCiDgCiDgHiDgDiBfLiDiLiCpAjBeJjBpAiClFiBeBiMlLiNnNiCmMiDgDiBfLiDiLiCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iMlLiNnNiCmMiDgDiBfLiDiLiCkK_xHqqkZx_ToolRichEdit_xZkqqHx_iCmFiCmIiCkCiMmAiCoI_xHqqkZx_ToolRichEdit_xZkqqHx_iCkKjBeJjBpAiClDiCoKiCoJ_xHqqkZx_
 *			_xZkqqHx_iClBiCmGiCkKjGlDiCkCiCoGiCkEiCmJiBeB_xHqqkZx_ToolManager_xZkqqHx_iCkJiCoH_xHqqkZx_ToolRichEdit_xZkqqHx_iCmNiCmNiClIiClFiCmEiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.25 Fukushiro M. ToolRichEdit_xZkqqHx_iCmMiDhLiDfOiDjDiCmMjFkKjHkDiCmJjBmOiJjOiBeC_xHqqkZx_
 *************************************************************************/
long CFCDynamicDrawView::GetAnyEditToolIndex () const
{
//----- 02.12.09 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	FCToolBase* pToolNew = g_pToolManager->ObjTypeToEditTool(FDOJ_POLY);
//	if (!SelectObjVector().empty())
//	//----- _xZkqqHx_iMlLiNnNjBeJjBpAjCiGiCmMjFjEjFgJiCkKjHeMiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// pToolNew != NULL _xZkqqHx_iCkKiDgDiBfLiDiLjBeJjBpAiDhGiDiNiDfKiDfIiPeJjHlJiCmMiDeMiBfLiBeC_xHqqkZx_
//		pToolNew = NULL;
//		//----- _xZkqqHx_jBfDiCmEiCmMiDeHiDgGiDeCiDgCiDgHiDgDiBfLiDiLiCmJiKnGiClFiCmEjFjEjFgJiCpAiDgAiDeGiDgCiDeOiClHiCoJ_xHqqkZx_ -----
//// 02.12.08 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
////		const int iTblSize = sizeof(m_ObjToolTbl) / sizeof(m_ObjToolTbl[0]);
//		for (int ii = 0; ii < FD_MAX_EDIT_TOOL && pToolNew == NULL; ii++)
//		{
//// 02.12.08 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////			pToolNew = m_ObjToolTbl[ii].pTool;
//			pToolNew = g_pToolManager->GetEditTool(ii);
//			// _xZkqqHx_jBeJjBpAjCiGiCmMjBfDiCmEiCmMjFjEjFgJiCkKiBeBiClBiCmMiDgDiBfLiDiLiCmFiPeDjAlDiJmCjEfMiCkJiCmHiCkEiCkJiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
//			ObjDynabaseVector::const_iterator iObj;
//			for (iObj = SelectObjVector().begin(); iObj != SelectObjVector().end(); iObj++)
//			{
//				if (!pToolNew->CanHandle(*iObj))
//				{
//					pToolNew = NULL;
//					break;
//				}
//			}
//		}
//	}
//	// _xZkqqHx_iDgDiBfLiDiLiCkKjBeJjBpAiCmFiCkLiCmIiCkCiPoKiNiHiCmNiBeBjFfHiPiAiDgDiBfLiDiLiCmJiBeC_xHqqkZx_
//	if (pToolNew == NULL) pToolNew = g_pToolManager->CommandID2Tool(g_pDoc->GetStdTool());
//	// _xZkqqHx_iDgDiBfLiDiLiCpAjFnEiClHiBeC_xHqqkZx_
//	return pToolNew;
//----- 02.12.09 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	FCToolBase* pToolNew = g_pToolManager->ObjTypeToEditTool(FDOJ_POLY);
	if (!SelectObjVector().empty())
	//----- _xZkqqHx_iMlLiNnNjBeJjBpAjCiGiCmMjFjEjFgJiCkKjHeMiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// pToolNew != NULL _xZkqqHx_iCkKiDgDiBfLiDiLjBeJjBpAiDhGiDiNiDfKiDfIiPeJjHlJiCmMiDeMiBfLiBeC_xHqqkZx_
		pToolNew = NULL;
		//----- _xZkqqHx_jBfDiCmEiCmMiDeHiDgGiDeCiDgCiDgHiDgDiBfLiDiLiCmJiKnGiClFiCmEjFjEjFgJiCpAiDgAiDeGiDgCiDeOiClHiCoJ_xHqqkZx_ -----
		for (int ii = 0; ii < FD_MAX_EDIT_TOOL && pToolNew == NULL; ii++)
		{
			pToolNew = g_pToolManager->GetEditTool(ii);
			// _xZkqqHx_jBeJjBpAjCiGiCmMjBfDiCmEiCmMjFjEjFgJiCkKiBeBiClBiCmMiDgDiBfLiDiLiCmFiPeDjAlDiJmCjEfMiCkJiCmHiCkEiCkJiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
			ObjDynabaseVector::const_iterator iObj;
			for (iObj = SelectObjVector().begin(); iObj != SelectObjVector().end(); iObj++)
			{
				if (!pToolNew->CanHandle(*iObj))
				{
					pToolNew = NULL;
					break;
				}
			}
		}
	}
	// _xZkqqHx_iDgDiBfLiDiLiCkKjBeJjBpAiCmFiCkLiCmIiCkCiPoKiNiHiCmNiBeBjFfHiPiAiDgDiBfLiDiLiCmJiBeC_xHqqkZx_
	if (pToolNew == NULL)
		pToolNew = g_pToolManager->CommandID2Tool(g_pDoc->GetStdTool());
	// _xZkqqHx_iDgDiBfLiDiLiCpAjFnEiClHiBeC_xHqqkZx_
	return g_pToolManager->Tool2ToolIndex(pToolNew);
//----- 02.12.09 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::GetAnyEditToolIndex.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateAnyEditTool
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCkKjBeJjBpAjCiGiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJ_xHqqkZx_._xZkqqHx_iDeHiDgGiDeCiDgCiDgHiDgDiBfLiDiLjHnOjAoKjHhAiCmMiKnGjAjE_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLjDjJiCmMjFfMiOkGjFmPiNfIjHhA_xHqqkZx_.
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	OnUpdateAnyTool_xZkqqHx_iCpAiOfBiPmG_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateAnyEditTool (CCmdUI* pCmdUI)
{
	pCmdUI->SetRadio(g_pToolManager->EditToolToObjType(GetCurrentTool()) != FDOJ_NONE);
	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditObject());
} // CFCDynamicDrawView::OnUpdateAnyEditTool.

//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::CheckSelectFontInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiClDiCoKiCmEiCkCiCoJiDgFiDeMiDfIiDgHiCmMiLkEjCmKiPoOjFpBiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	m_fciSelFontInfo _xZkqqHx_iCmJiLkEjCmKiCmMiPoOjFpBiCpAiLeMiJkPiClFiCmEiCkIiCkNiBeC_xHqqkZx_
 *			_xZkqqHx_jGiIiJpBiMhGiOfKiClHiCoJiCmGiPiIjHjNjBkMjDhIiCkKjCoBiJlKiClHiCoJiClNiCnPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::CheckSelectFontInfo ()
{
	// _xZkqqHx_iMlLiNnNiCmMiDhEiDeIiDjDiDgHiPoOjFpBiCpAiOoGjDlOiBeC_xHqqkZx_
	FCFontCharInfo fciStdFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	FCFontCharInfo fciExtFontInfo;	// _xZkqqHx_iMlLiNnNiCmMjFfHiPiAiKePiDhEiDeIiDjDiDgHiBeC_xHqqkZx_
	if (GetCurrentTool()->GetCurrentTextFont(fciExtFontInfo, fciStdFontInfo))
	{
		m_fciSelFontInfo = fciStdFontInfo;
		m_fciSelFontInfo &= fciExtFontInfo;
	} else
	{
		// _xZkqqHx_iMlLiNnNiCmMiDhEiDeIiDjDiDgHiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
		memset(&m_fciSelFontInfo, 0, sizeof(m_fciSelFontInfo));
	}
} // CFCDynamicDrawView::CheckSelectFontInfo.
//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::ObjTypeToEditTool
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiDfOiDeDiDhGiCkJiCoHjFnCiPfHiDgDiBfLiDiLiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	type	:_xZkqqHx_jFjEjFgJiCmMiDfOiDeDiDhGiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCnGiCmMiDhMiDeDiDjDiDfOiBeCjBmOiJjOiClHiCoJiDgDiBfLiDiLiCkKiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FCToolBase* CFCDynamicDrawView::ObjTypeToEditTool (int type) const
//{
//	const int iTblSize = sizeof(m_ObjToolTbl) / sizeof(m_ObjToolTbl[0]);
//	for (int ii = 0; ii < iTblSize; ii++)
//	{
//		if (m_ObjToolTbl[ii].typeObject == type)
//			return m_ObjToolTbl[ii].pTool;
//	}
//	return NULL;
//} // CFCDynamicDrawView::ObjTypeToEditTool.
//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::EditToolToObjType
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFnCiPfHiDgDiBfLiDiLiCkJiCoHjFjEjFgJiCmMiDfOiDeDiDhGiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pTool	:_xZkqqHx_jFnCiPfHiDgDiBfLiDiLiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiDfOiDeDiDhGiBeCjBmOiJjOiClHiCoJjFjEjFgJiDfOiDeDiDhGiCkKiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiCmN_xHqqkZx_
// *			FDOJ_NONE_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//int CFCDynamicDrawView::EditToolToObjType (const FCToolBase* pTool) const
//{
//	const int iTblSize = sizeof(m_ObjToolTbl) / sizeof(m_ObjToolTbl[0]);
//	for (int ii = 0; ii < iTblSize; ii++)
//	{
//		if (m_ObjToolTbl[ii].pTool == pTool)
//			return m_ObjToolTbl[ii].typeObject;
//	}
//	return FDOJ_NONE;
//} // CFCDynamicDrawView::EditToolToObjType.
//----- 02.12.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::InitGlobal
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiCmMiDfCiDjDiDfIiDgHiDiJiDeOiDfOiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *			_xZkqqHx_iNmFiPiJiCmMiOmAiNhDiCmMiCmGiCkLiCmMiCnNiDePiDiNiBfLiDgPiDiLjFmPjAjEiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pView	:_xZkqqHx_iDhCiDiFiBfLiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::InitGlobal (CFCDynamicDrawView* pView)
{
	if (s_lGlobalCounter == 0)
		g_pView = pView;
	s_lGlobalCounter++;
} // CFCDynamicDrawView::InitGlobal.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::TerminateGlobal
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiCmMiDgGiDfIiDgHiDiJiDeOiDfOiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *			_xZkqqHx_iNmFiMoDiCmMiOmAiNhDiCmMiCmGiCkLiCmMiCnNiDePiDiNiBfLiDgPiDiLjFmPjAjEiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::TerminateGlobal ()
{
	s_lGlobalCounter--;
	if (s_lGlobalCounter == 0)
		g_pView = NULL;
} // CFCDynamicDrawView::TerminateGlobal.

//////////////////////////////////////////////////////////////////////////
// _xZkqqHx_iDhNiDeFiDfIiDeDiDhIiDjDiDgHiPiIjHjN_xHqqkZx_.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnLButtonDown
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNlGiDhLiDfOiDjDiCpAiJjPiClFiClNiCmGiCkLiCmJiMmEiCmOiCoKiCoJ_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLjDjJiCmMiPoOjFpB_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfH_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnLButtonDown (UINT nFlags, CPoint point)
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	CPoint lgptMsc = point;
	DPtoLP(lgptMsc);
	// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCpAiLeMjIfOiBeC_xHqqkZx_
	m_mmptLast = lg2mm(lgptMsc);

#ifdef _MEDIA_ENCODER
	// Windows MediaEncoder _xZkqqHx_iCmFjIfOiJoGjCiGiCmNiDfPiDhFiDiLiDeOiDiKiDgCiDeOiCkKjHjIiCkJiCmIiCkCiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiClNiCnPiBeBiDfGiDjDiDePiDiLiDeOiDiKiDgCiDeOiCmMiKnEiKhFiCpAiMhGjBkKiClFiBeBjCfKiCkCiPoKiNiHiCmN_xHqqkZx_
	// _xZkqqHx_iDfPiDhFiDiLiDeOiDiKiDgCiDeOiCmGiClFiCmEiIlFiCkEiBeC_xHqqkZx_
	static FDTIME s_fdtmCurrent = 0;
	FDTIME fdtm = FFGetCurrentTime();
	TRACE(_T("CFCDynamicDrawView::OnLButtonDown %I64d\n"), fdtm - s_fdtmCurrent);
	// _xZkqqHx_iDgDiBfLiDiLiCmJjCmKjCgNiBeC_xHqqkZx_
	if (fdtm - s_fdtmCurrent < 3300000)
		GetCurrentTool()->OnLButtonDblClk(&dc, m_mmptLast, nFlags);
	else
		GetCurrentTool()->OnLButtonDown(&dc, m_mmptLast, nFlags);
	s_fdtmCurrent = fdtm;
	// Baseclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnLButtonDown(nFlags, point);
	return;
#endif//_MEDIA_ENCODER

	// _xZkqqHx_iDgDiBfLiDiLiCmJjCmKjCgNiBeC_xHqqkZx_
	GetCurrentTool()->OnLButtonDown(&dc, m_mmptLast, nFlags);
	// Baseclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnLButtonDown(nFlags, point);
} // CFCDynamicDrawView::OnLButtonDown.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnLButtonUp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNlGiDhLiDfOiDjDiCpAjHkDiClFiClNiCmGiCkLiCmJiMmEiCmOiCoKiCoJ_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLjDjJiCmMiPoOjFpB_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfH_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnLButtonUp (UINT nFlags, CPoint point)
{
	TRACE(_T("CFCDynamicDrawView::OnLButtonUp\n"));

	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	CPoint lgptMsc = point;
	DPtoLP(lgptMsc);
	// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCpAiLeMjIfO_xHqqkZx_.
	m_mmptLast = lg2mm(lgptMsc);
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnLButtonUp(&dc, m_mmptLast, nFlags);
	BASE_CLASS::OnLButtonUp(nFlags, point);
} // CFCDynamicDrawView::OnLButtonUp.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnMouseMove
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiCmMiInKjDkOiOjOiCmJiMmEiCmOiCoKiCoJ_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLjDjJiCmMiPoOjFpB_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfH_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnMouseMove (UINT nFlags, CPoint point)
{
	CPoint	lgptMsc = point;
	CClientDC	dc(this);
	OnPrepareDC(&dc, NULL);
// 00.08.22 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	dc.DPtoLP(&lgptMsc);
	DPtoLP(lgptMsc);

	if (m_bAutoScroll)
	{
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiOoGjDlOiBeC_xHqqkZx_
		CRect lgrtClient;
		GetClientRectLG(lgrtClient);
		// 10pixel_xZkqqHx_iClIiCmCiPgLiPkMiBeC_xHqqkZx_
		lgrtClient.DeflateRect(10, 10);
		lgrtClient.NormalizeRect();	// Window_xZkqqHx_iCkKiPkMiClDiCkCiPoKiNiHiCmJjFeLjHhGiBeC_xHqqkZx_
		if (!lgrtClient.PtInRect(lgptMsc) && !m_bIsScrollTimer)
		//----- _xZkqqHx_iDhNiDeFiDfIiCkKjHmMiIoGiCpAiKePiCoKiBeBiDfOiDeDiDhNiBfLiCkKjGkCiLeOjDkOiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfOiDeDiDhNiBfLiCpAiLeOjDkOiBeC_xHqqkZx_
			if (SetTimer(FDTIMER_VIEW_SCROLL, 150, NULL) != 0)
				m_bIsScrollTimer = TRUE;
		}
	}

	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnMouseMove(&dc, lg2mm(lgptMsc), nFlags);

	BASE_CLASS::OnMouseMove(nFlags, point);
} // CFCDynamicDrawView::OnMouseMove.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnLButtonDblClk
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNlGiDhLiDfOiDjDiCmMiDfPiDhFiDiLiDeOiDiKiDgCiDeOiOjOiCmJiMmEiCmOiCoKiCoJ_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLjDjJiCmMiPoOjFpB_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfH_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnLButtonDblClk (UINT nFlags, CPoint point)
{
//----- 06.04.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//#ifdef _MEDIA_ENCODER
//	// Windows MediaEncoder _xZkqqHx_iCmFjIfOiJoGjCiGiCmNiDfPiDhFiDiLiDeOiDiKiDgCiDeOiCkKjHjIiCkJiCmIiCkCiBeC_xHqqkZx_
//	FFThrowMiscUnknown();
//#endif//_MEDIA_ENCODER
//----- 06.04.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	CPoint lgptMsc = point;
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	DPtoLP(lgptMsc);
	// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCpAiLeMjIfOiBeC_xHqqkZx_
	m_mmptLast = lg2mm(lgptMsc);
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnLButtonDblClk(&dc, m_mmptLast, nFlags);
	// Baseclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnLButtonDblClk(nFlags, point);
} // CFCDynamicDrawView::OnLButtonDblClk.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnRButtonDown
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJeFiDhLiDfOiDjDiCpAiJjPiClFiClNiCmGiCkLiCmJiMmEiCmOiCoKiCoJ_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLjDjJiCmMiPoOjFpB_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfH_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnRButtonDown (UINT nFlags, CPoint point)
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	CPoint	lgptMsc = point;
	DPtoLP(lgptMsc);

	// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCpAiLeMjIfO_xHqqkZx_.
	m_mmptLast = lg2mm(lgptMsc);
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnRButtonDown(&dc, m_mmptLast, nFlags);

	BASE_CLASS::OnRButtonDown(nFlags, point);
} // CFCDynamicDrawView::OnRButtonDown.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnRButtonUp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJeFiDhLiDfOiDjDiCpAjHkDiClFiClNiCmGiCkLiCmJiMmEiCmOiCoKiCoJ_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLjDjJiCmMiPoOjFpB_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfH_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnRButtonUp (UINT nFlags, CPoint point)
{
//----- 01.04.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	if (FFGetCapture() == m_hWnd)
//	{
//		CPoint lgptMsc = point;
//		CClientDC dc(this);
//		OnPrepareDC(&dc, NULL);
//		DPtoLP(lgptMsc);
//		// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//		GetCurrentTool()->OnRButtonUp(&dc, lg2mm(lgptMsc), nFlags);
//	} else
//	{
//		// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeCiClBiClBiCmF_xHqqkZx_OnContextMenu_xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
//		BASE_CLASS::OnRButtonUp(nFlags, point);
//	}
//----- 01.04.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	CPoint	lgptMsc = point;
	DPtoLP(lgptMsc);

	// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCpAiLeMjIfO_xHqqkZx_.
	m_mmptLast = lg2mm(lgptMsc);
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnRButtonUp(&dc, m_mmptLast, nFlags);

	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeCiClBiClBiCmF_xHqqkZx_OnContextMenu_xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
	BASE_CLASS::OnRButtonUp(nFlags, point);
//----- 01.04.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::OnRButtonUp.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnRButtonDblClk
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJeFiDhLiDfOiDjDiCmMiDfPiDhFiDiLiDeOiDiKiDgCiDeOiOjOiCmJiMmEiCmOiCoKiCoJ_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLjDjJiCmMiPoOjFpB_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfH_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnRButtonDblClk (UINT nFlags, CPoint point)
{
	CPoint	lgptMsc = point;
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
// 00.08.22 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	dc.DPtoLP(&lgptMsc);
	DPtoLP(lgptMsc);

	// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCpAiLeMjIfO_xHqqkZx_.
	m_mmptLast = lg2mm(lgptMsc);
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnRButtonDblClk(&dc, m_mmptLast, nFlags);

	BASE_CLASS::OnRButtonDblClk(nFlags, point);
} // CFCDynamicDrawView::OnRButtonDblClk.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnMButtonDown
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jCiGiDhLiDfOiDjDiCpAiJjPiClFiClNiCmGiCkLiCmJiMmEiCmOiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLjDjJiCmMiPoOjFpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnMButtonDown (UINT nFlags, CPoint point)
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	CPoint lgptMsc = point;
	DPtoLP(lgptMsc);

//----- 01.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCpAiLeMjIfOiBeC_xHqqkZx_
//	m_mmptLast = lg2mm(lgptMsc);
//	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	GetCurrentTool()->OnMButtonDown(&dc, m_mmptLast, nFlags);
//----- 01.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnMButtonDown(&dc, lg2mm(lgptMsc), nFlags);
//----- 01.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

	BASE_CLASS::OnMButtonDown(nFlags, point);
} // CFCDynamicDrawView::OnMButtonDown.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnMButtonUp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jCiGiDhLiDfOiDjDiCpAjHkDiClFiClNiCmGiCkLiCmJiMmEiCmOiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiClNiDeMiBfLjDjJiCmMiPoOjFpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *			point	:_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnMButtonUp (UINT nFlags, CPoint point)
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	CPoint lgptMsc = point;
	DPtoLP(lgptMsc);

//----- 01.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfJiBfLiDiAjDjJiCmFiOgHiCkEiClNiCnPiBeBiDhNiDeFiDfIiNmAjFfHiCpAiLeMjIfOiBeC_xHqqkZx_
//	m_mmptLast = lg2mm(lgptMsc);
//	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	GetCurrentTool()->OnMButtonUp(&dc, m_mmptLast, nFlags);
//----- 01.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnMButtonUp(&dc, lg2mm(lgptMsc), nFlags);
//----- 01.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeCiClBiClBiCmF_xHqqkZx_OnContextMenu_xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
	BASE_CLASS::OnMButtonUp(nFlags, point);
} // CFCDynamicDrawView::OnMButtonUp.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnKeyDown
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeMiBfLiCkKiJjPiClDiCoKiClNiOjOiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nChar	: _xZkqqHx_iJjPiClDiCoKiClNiDeMiBfLiCmMiOoNjHnO_xHqqkZx_
 *			nRepCnt	: _xZkqqHx_iJjPiClFiCmBiCmPiCmIiClFiCmMiOjOiCmMiDiKiDhDiBfLiDgHiJpBjAjE_xHqqkZx_.
			nFlags	: _xZkqqHx_iDeMiBfLiCmMiPpDjBnEiBeCiDhHiDiLiDhGiOfBiPmGiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnKeyDown(&dc, nChar, nRepCnt, nFlags);
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnKeyDown(nChar, nRepCnt, nFlags);
} // CFCDynamicDrawView::OnKeyDown.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnKeyUp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeMiBfLiCkKjHkDiClDiCoKiClNiOjOiOmAiNhDiClDiCoKiCoJiBeCiDeKiBfLiDfMiDiLiDeMiBfLjDjJiCoAjCmKjCgNiClDiCoKiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nChar	: _xZkqqHx_iJjPiClDiCoKiClNiDeMiBfLiCmMiOoNjHnO_xHqqkZx_
 *			nRepCnt	: _xZkqqHx_iJjPiClFiCmBiCmPiCmIiClFiCmMiOjOiCmMiDiKiDhDiBfLiDgHiJpBjAjE_xHqqkZx_.
			nFlags	: _xZkqqHx_iDeMiBfLiCmMiPpDjBnEiBeCiDhHiDiLiDhGiOfBiPmGiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnKeyUp (UINT nChar, UINT nRepCnt, UINT nFlags)
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnKeyUp(&dc, nChar, nRepCnt, nFlags);
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	BASE_CLASS::OnKeyUp(nChar, nRepCnt, nFlags);
} // CFCDynamicDrawView::OnKeyUp.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnChar
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiOjKiBeFjAjEiOjKiDeMiBfLiCkKiJjPiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJ_xHqqkZx_.
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nChar	: _xZkqqHx_iJjPiClDiCoKiClNiDeMiBfLiCmMiOoNjHnO_xHqqkZx_
 *			nRepCnt	: _xZkqqHx_iJjPiClFiCmBiCmPiCmIiClFiCmMiOjOiCmMiDiKiDhDiBfLiDgHiJpBjAjE_xHqqkZx_.
			nFlags	: _xZkqqHx_iDeMiBfLiCmMiPpDjBnEiBeCiDhHiDiLiDhGiOfBiPmGiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnChar (UINT nChar, UINT nRepCnt, UINT nFlags)
{
//----- 00.01.10 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	GetCurrentTool()->OnChar(nChar, nRepCnt, nFlags);
//----- 00.01.10 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnChar(&dc, nChar, nRepCnt, nFlags);
//----- 00.01.10 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

	BASE_CLASS::OnChar(nChar, nRepCnt, nFlags);
} // CFCDynamicDrawView::OnChar.

//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectProperties
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDhAiDgFiDeCjFmPiNfIiCkKiOhHjCoIiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectProperties ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmMjBmOiJjOiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	GetCurrentTool()->OnObjectProperties();
//} // CFCDynamicDrawView::OnObjectProperties.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectProperties
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDhAiDgFiDeCjFmPiNfIiCkKiJmCjEfMiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJ_xHqqkZx_._xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGjFmPiNfIjHhA_xHqqkZx_.
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLjDjJiCmMjFfMiOkGiPpDjBnEiCpAjFmPiNfIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_.
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectProperties (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanObjectProperties());
//} // CFCDynamicDrawView::OnUpdateObjectProperties.
//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnContextMenu
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJeFiDhLiDfOiDjDiDeOiDiKiDgCiDeOiCmFiMmEiCnBiPgPiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pWnd	: ???
 *			point	: _xZkqqHx_iDeOiDiKiDgCiDeOiClFiClNiNmAjFfHiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgK_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jGlDiClF_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnContextMenu (CWnd* pWnd, CPoint point)
{
	CClientDC dc(this);
	// dc_xZkqqHx_iCmMjIfPjHjNiNmAjFfHiMgOiCpAjAnNjCoI_xHqqkZx_.
	OnPrepareDC(&dc, NULL);
	GetCurrentTool()->OnContextMenu(&dc, m_mmptLast);
} // CFCDynamicDrawView::OnContextMenu.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnFormatFont
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiDjDiDgHiCmMjAnNjCoIiDiBiDgKiDiFiBfLiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnFormatFont ()
{
	GetCurrentTool()->OnFormatText();
} // CFCDynamicDrawView::OnFormatFont.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateFormatFont
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiDjDiDgHiCmMjAnNjCoIiDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_.
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateFormatFont (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanFormatText());
} // CFCDynamicDrawView::OnUpdateFormatFont.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnOptionGridSnapSetup
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiKiDgCiDgIiDiBiDgKiDiFiBfLiCkJiCoHiOmAiNhDiBeCiDfPiDeDiDeBiDiNiDePiCpAiLeOjDkOiClHiCoJiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnOptionGridSnapSetup ()
{
	CFCPropertySheet sheet(ID_OPTION_GRID_SNAP_SETUP);
	CFCPrgGrid prg1;
	CFCPrgSnap prg2;
	CFCPrgOther prg3;
	switch (g_->appMode & FD_APPMODE_MASK)
	{
	case FD_APPMODE_HISTORYVIEWER:	// HistoryViewer_xZkqqHx_iCmMiPoKiNiHiBeC_xHqqkZx_
		//----- _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAjAnNjCoIiBjFjFfMiOkG_xHqqkZx_ -----
		sheet.AddPage(&prg1);
		sheet.AddPage(&prg2);
		break;
	default:
		//----- _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAjAnNjCoIiBjFjFfMiOkG_xHqqkZx_ -----
		sheet.AddPage(&prg1);
		if (!g_pDoc->IsReadOnly())
		//----- _xZkqqHx_iPjBiCkLiNjOiCnNiJmCiCmMiPoKiNiH_xHqqkZx_ -----
		{
			sheet.AddPage(&prg2);
			sheet.AddPage(&prg3);
		}
	}
	(void)sheet.DoModal();
} // CFCDynamicDrawView::OnOptionGridSnapSetup.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateOptionGridSnapSetup
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiKiDgCiDgIiDiBiDgKiDiFiBfLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateOptionGridSnapSetup (CCmdUI* pCmdUI)
{
//----- 06.02.26 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiCmIiCoHiCmOjGlDiMpIiBeCiDePiDiKiDgCiDgIiCmFiCmN_xHqqkZx_
//	// _xZkqqHx_iDiKiDfEiDeDiDfJiCmMiMmFjCoIjDfPiCpAjFmPiNfIiCmFiCkLiCoJiClNiCnPiBeBiDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmNiLnGiOhOiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanEditReadOnlyDocumentEnv());
//----- 06.02.26 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiCmIiCoHiCmOjGlDiMpIiBeCiDePiDiKiDgCiDgIiCmFiCmN_xHqqkZx_
	// _xZkqqHx_iDiKiDfEiDeDiDfJiCmMiMmFjCoIjDfPiCpAjFmPiNfIiCmFiCkLiCoJiClNiCnPiBeBiDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmNiLnGiOhOiBeC_xHqqkZx_
	// _xZkqqHx_iClFiCkJiClFiBeBjFlGiPjBiCpAjFmCiClGiCmEiCkCiCoJiPoKiNiHiCoAjAnNjCoIiClFiClNiCkCiClNiCnPiBeB_xHqqkZx_
	// _xZkqqHx_jFlGiPjBiCpAjFmCiClGiCmEiCkCiCoJiPoKiNiHiCmNiLjGiJmCiBeC_xHqqkZx_
	if (!g_pDoc->GetIsDocumentOpened())
		pCmdUI->Enable(FFCanBasicOperate());
	else
		pCmdUI->Enable(FFCanEditReadOnlyDocumentEnv());
//----- 06.02.26 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 05.05.02 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

} // CFCDynamicDrawView::OnUpdateOptionGridSnapSetup.

//----- 00.07.14 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//static PALETTEENTRY s_aFDPalEntry[] = 
//{
//	{ 0,	0,		0,		0 },
//	{ 255,	255,	255,	0 },
//	{ 242,	242,	242,	0 },
//	{ 230,	230,	230,	0 },
//	{ 217,	217,	217,	0 },
//	{ 204,	204,	204,	0 },
//	{ 191,	191,	191,	0 },
//	{ 179,	179,	179,	0 },
//	{ 166,	166,	166,	0 },
//	{ 153,	153,	153,	0 },
//	{ 140,	140,	140,	0 },
//	{ 128,	128,	128,	0 },
//	{ 115,	115,	115,	0 },
//	{ 102,	102,	102,	0 },
//	{ 77,	77,		77,		0 },
//	{ 51,	51,		51,		0 },
//	{ 26,	26,		26,		0 },
//	{ 255,	0,		0,		0 },
//	{ 0,	255,	0,		0 },
//	{ 0,	0,		255,	0 },
//	{ 255,	255,	0,		0 },
//	{ 255,	0,		255,	0 },
//	{ 0,	255,	255,	0 },
//	{ 128,	0,		0,		0 },
//	{ 0,	128,	0,		0 },
//	{ 0,	0,		128,	0 },
//	{ 128,	128,	0,		0 },
//	{ 128,	0,		128,	0 },
//	{ 0,	128,	128,	0 },
//	{ 255,	128,	128,	0 },
//	{ 128,	255,	128,	0 },
//	{ 128,	128,	255,	0 },
//	{ 255,	255,	128,	0 },
//	{ 255,	128,	255,	0 },
//	{ 128,	255,	255,	0 } };
//----- 00.07.14 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----


/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnCreate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDeOiDiJiDfIiCmMjAlGjAkMiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_iDhHiDiLiDhGiOfBiPmG_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhHiDiLiDhGiOfBiPmG_xHqqkZx_
 *************************************************************************/
int CFCDynamicDrawView::OnCreate (LPCREATESTRUCT lpCS)
{
	// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	if (BASE_CLASS::OnCreate(lpCS) == -1)
		return -1;

//----- 06.03.03 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDiBiDgCiDfKiBfLiDfHiOpDiCkPiOoGiCoIiDeFiDeCiDjDiDgIiDeFiCmGiClFiCmEjDgPjIfOiBeC_xHqqkZx_
	FFGetMainWnd()->RegisterScrollWindow(m_hWnd);
//----- 06.03.03 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 06.03.15 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDhMiDgCiDhGiDhBiDjDiDgHiCmMiDfOiBfLiDfBiDgCiDgHiCmJjDgPjIfOiBeC_xHqqkZx_
	FFGetApp()->RegisterPopHintTarget(m_hWnd);
//----- 06.03.15 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	//----- ScrollBar_xZkqqHx_iCpAjFfMiOkGiClHiCoJ_xHqqkZx_ -----
	g_->lgOffsetX = 0;
	g_->lgOffsetY = 0;

	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiBeCiOmAiNmAjFfHiMgOiBeC_xHqqkZx_
	m_vmmrtRgn.clear();
	// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiPfHiNiHiCmMiKePjAnKiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	m_mmrtRgn.SetRect(0,0,0,0);

	//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCpAiNoMjAkM_xHqqkZx_ -----
	m_pWndRichEdit = new CFCWndRichEdit();
	CRect rect(-100, -100, -90, -90);
	if (!m_pWndRichEdit->Create(0, WS_CHILD, rect, this, NULL))
	{
		TRACE(_T("Failed to create edit control\n"));
		return 0;      // fail to create
	}
	m_pWndRichEdit->SetWindowPos(	&CWnd::wndBottom, 0, 0, 0, 0,
									SWP_NOMOVE|SWP_NOSIZE);

	// _xZkqqHx_iMlLiNnNiCmMjHmMiIoG_xHqqkZx_(_xZkqqHx_iDfIiDeOiDiKiBfLiDjDiNmAjFfH_xHqqkZx_)_xZkqqHx_iCmJjAfGiClFiCkCjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	FFPushPendingMessage(FCPendingMessage(FD_PMSG_VIEW,
										WM_USER_UPDATE_VIEW_SCREEN_RECT, NULL, NULL,
										TRUE,
										FD_PMSG_MAIN_WND|FD_PMSG_IF_VISIBLE,
										FD_PMSG_VIEW|FD_PMSG_IF_VISIBLE));

	//----- _xZkqqHx_iDgDiBfLiDiLiCpAiPiJiKpKiJlL_xHqqkZx_ -----
	m_lDrawTool = -1;
	return 0;
} // CFCDynamicDrawView::OnCreate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnDestroy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDeOiDiJiDfIiCmMiPeJjHlJiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnDestroy ()
{
	// _xZkqqHx_iDeBiDhGiDiKiPeJjHlJiOjOiCmM_xHqqkZx_Document::DeleteContents _xZkqqHx_iOjOiCmJiCmNiBeB_xHqqkZx_View _xZkqqHx_iCmNiKpJiCmJ_xHqqkZx_
	// _xZkqqHx_iNoNiPjMiNmPiCnNiCmMiClNiCnPiBeB_xHqqkZx_View::DeleteContents_xZkqqHx_iCmNiOmAiNhDiClDiCoKiCmIiCkCiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiClNiCnPiBeBiClBiClBiCkJiCoHiPiJiKpKiJlLiOmAiNhDiBeC_xHqqkZx_
	Terminate();
	//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCpAiNoNiPjM_xHqqkZx_ ------
	m_pWndRichEdit->DestroyWindow();
	delete m_pWndRichEdit;
	m_pWndRichEdit = NULL;

	if (g_pFDPalette != NULL)
		delete g_pFDPalette;

//----- 06.03.03 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	//----- _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDiBiDgCiDfKiBfLiDfHiOpDiCkPiOoGiCoIiDeFiDeCiDjDiDgIiDeF_xHqqkZx_ -----
	FFGetMainWnd()->UnregisterScrollWindow(m_hWnd);
//----- 06.03.03 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 06.03.15 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDhMiDgCiDhGiDhBiDjDiDgHiCmMiDfOiBfLiDfBiDgCiDgHiCkJiCoHjDgPjIfOiJpAiPjMiBeC_xHqqkZx_
	FFGetApp()->UnregisterPopHintTarget(m_hWnd);
//----- 06.03.15 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iPmBjGmFiOjOiCmJiDeBiDeDiDgFiDiAiCpAjEpBiDeBiDeOiDgFiDeCiDhIiBfLiDgHiClFiCnMiClH_xHqqkZx_; _xZkqqHx_iClBiCoKiCmNjFkKiKiEiDhCiDiFiBfLiCkK_xHqqkZx_
	// _xZkqqHx_iOgHjHhAiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmJiCmNiPgEjHhGiCmFiClHiBeC_xHqqkZx_
   BASE_CLASS::OnDestroy();
   COleClientItem* pActiveItem = g_pDoc->GetInPlaceActiveItem(this);
   if (pActiveItem != NULL)
   {
      pActiveItem->Deactivate();
      ASSERT(g_pDoc->GetInPlaceActiveItem(this) == NULL);
   }
} // CFCDynamicDrawView::OnDestroy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnViewZoomout
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDfJiBfLiDiAiDeBiDeFiDgHiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnViewZoomout ()
{
	// _xZkqqHx_iDfJiBfLiDiAjCgMiCmMiBeBiCfBiCmMjHnNiPoGjCgMiBgJ_xHqqkZx_dLog_xZkqqHx_iBgKiCpAiOfKiPgPiBeC_xHqqkZx_
	// log2(g_->lZoom256)= log10(g_->lZoom256) / log10(2);
	double dLog = log10(g_->lZoom256) / log10(2);
	double dInt;
	double dFloat = modf(dLog, &dInt);
	long lStd = (long)pow(2.0, (dFloat != 0.0) ? dInt : dInt - 1);
	//----- _xZkqqHx_iDfJiBfLiDiAjAnNjCoI_xHqqkZx_ -----
	PostMessage(WM_USER_SET_ZOOM256, TRUE, lStd);
} // CFCDynamicDrawView::OnViewZoomout.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateViewZoomout
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfJiBfLiDiAiDeBiDeFiDgHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateViewZoomout (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanZoomView());
} // CFCDynamicDrawView::OnUpdateViewZoomout.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnViewZoomin
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDfJiBfLiDiAiDeDiDjDiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnViewZoomin ()
{
	// _xZkqqHx_iDfJiBfLiDiAjCgMiCmMiBeBiCfBiCmMjHnNiPoGjCgMiBgJ_xHqqkZx_dLog_xZkqqHx_iBgKiCpAiOfKiPgPiBeC_xHqqkZx_
	// log2(g_->lZoom256)= log10(g_->lZoom256) / log10(2);
	long lLog = log10(g_->lZoom256) / log10(2);
	long lStd = (long)pow(2.0, lLog + 1);
	//----- _xZkqqHx_iDfJiBfLiDiAjAnNjCoI_xHqqkZx_ -----
	PostMessage(WM_USER_SET_ZOOM256, TRUE, lStd);
} // CFCDynamicDrawView::OnViewZoomin.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateViewZoomin
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfJiBfLiDiAiDeDiDjDiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateViewZoomin (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanZoomView());
} // CFCDynamicDrawView::OnUpdateViewZoomin.

///////////////////////////////////////////////////////////////////////////
// ID_EDIT_xZkqqHx_iDfCiDhNiDjDiDgIiCmMiOmAiNhDiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditUndo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiMlDiCmJjGnPiClHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditUndo ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmMiPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnUndo();
} // CFCDynamicDrawView::OnEditUndo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditUndo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiMlDiCmJjGnPiClHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditUndo (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanUndo());
} // CFCDynamicDrawView::OnUpdateEditUndo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditRedo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiCoCiCoIjClMiClFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditRedo ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmMiPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnRedo();
} // CFCDynamicDrawView::OnEditRedo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditRedo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiCoCiCoIjClMiClFiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditRedo (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanRedo());
} // CFCDynamicDrawView::OnUpdateEditRedo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditCut
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAnIiCoIiOoGiCoIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditCut ()
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	// _xZkqqHx_iDgDiBfLiDiLiCmMiPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnCopy();
	GetCurrentTool()->OnDelete(&dc);
} // CFCDynamicDrawView::OnEditCut.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditCut
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAnIiCoIiOoGiCoIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditCut (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanCopy() && GetCurrentTool()->CanDelete());
} // CFCDynamicDrawView::OnUpdateEditCut.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditCopy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDfCiDhDiBfLiDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditCopy ()
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	GetCurrentTool()->OnCopy();
} // CFCDynamicDrawView::OnEditCopy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditCopy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_.
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditCopy (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanCopy());
} // CFCDynamicDrawView::OnUpdateEditCopy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditPaste
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDhJiBfLiDfIiDgHiDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditPaste ()
{
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	GetCurrentTool()->OnPaste(&dc);
} // CFCDynamicDrawView::OnEditPaste.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditPaste
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_.
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditPaste (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanPaste());
} // CFCDynamicDrawView::OnUpdateEditPaste.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditDelete
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNoNiPjMiDiBiDgKiDiFiBfLiBeBiNoNiPjMiDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.01.17 Fukushiro M. _xZkqqHx_iNmEjFgAiJoGiPiIjHjNiCpAiNoNiPjMiBeC_xHqqkZx_GetCurrentTool()->Delete_xZkqqHx_jCiG_xHqqkZx_
 *			_xZkqqHx_iCmFiPiIjHjNiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditDelete ()
{
	CClientDC dc(this);
	// dc_xZkqqHx_iCmMjIfPjHjNiNmAjFfHiMgOiCpAjAnNjCoIiBeC_xHqqkZx_
	OnPrepareDC(&dc, NULL);
	// _xZkqqHx_iDgDiBfLiDiLiCmM_xHqqkZx_Delete_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnDelete(&dc);
} // CFCDynamicDrawView::OnEditDelete.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditDelete
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_.
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditDelete (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanDelete());
} // CFCDynamicDrawView::OnUpdateEditDelete.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditBackspace
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	BS_xZkqqHx_iDeMiBfLiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditBackspace ()
{
	CClientDC dc(this);
	// dc_xZkqqHx_iCmMjIfPjHjNiNmAjFfHiMgOiCpAjAnNjCoIiBeC_xHqqkZx_
	OnPrepareDC(&dc, NULL);
	// _xZkqqHx_iDgDiBfLiDiLiCmM_xHqqkZx_Delete_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	GetCurrentTool()->OnBackspace(&dc);
} // CFCDynamicDrawView::OnEditBackspace.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditBackspace
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	BS_xZkqqHx_iDeMiBfLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditBackspace (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanBackspace());
} // CFCDynamicDrawView::OnUpdateEditBackspace.

//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditPasteAsMetafile
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAhN_xHqqkZx_/_xZkqqHx_iDgFiDeMiDfIiDgHiMgAiOkOiCmFjDfMiCoIjFhEiCkPiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmFiCmNiCmIiCkNiBeBiDhCiDiFiBfLiCmJiClBiCmMiDgOiDjDiDgIiDiJiCkKiCkAiCoJjHjNjHfCiCmNiBeB_xHqqkZx_
// *			_xZkqqHx_iDgDiBfLiDiLiCmJ_xHqqkZx_OnPasteSpec_xZkqqHx_iKnGjAjEiCmMiOmAiNhDiCpAiOhHiOkGiClHiCoJiInHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnEditPasteAsMetafile ()
//{
////----- 01.11.04 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLiMgAiOkOiCmFjDfMiCoIjFhEiCkPiCpAiOhHiOkGiBeC_xHqqkZx_
////	GetCurrentTool()->OnPasteSpec(&dc, CF_ENHMETAFILE);
////----- 01.11.04 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	CClientDC dc(this);
//	OnPrepareDC(&dc, NULL);
//	// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiL_xHqqkZx_/_xZkqqHx_iDgFiDeMiDfIiDgHiMgAiOkOiCmFjDfMiCoIjFhEiCkPiCpAiOhHiOkGiBeC_xHqqkZx_
//	if (GetRTFEditor()->IsWindowVisible())
//		GetCurrentTool()->OnPasteSpec(&dc, CF_TEXT);
//	else
//		GetCurrentTool()->OnPasteSpec(&dc, CF_ENHMETAFILE);
////----- 01.11.04 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//} // CFCDynamicDrawView::OnEditPasteAsMetafile.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditPasteAsMetafile
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAhN_xHqqkZx_/_xZkqqHx_iDgFiDeMiDfIiDgHiMgAiOkOiCmFjDfMiCoIjFhEiCkPiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmFiCmNiCmIiCkNiBeBiDhCiDiFiBfLiCmJiClBiCmMiDgOiDjDiDgIiDiJiCkKiCkAiCoJjHjNjHfCiCmNiBeB_xHqqkZx_
// *			_xZkqqHx_iDgDiBfLiDiLiCmJ_xHqqkZx_OnPasteSpec_xZkqqHx_iKnGjAjEiCmMiOmAiNhDiCpAiOhHiOkGiClHiCoJiInHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateEditPasteAsMetafile (CCmdUI* pCmdUI)
//{
////----- 01.11.04 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	BOOL bEnable = FALSE;
////	// EnumClipboardFormats_xZkqqHx_iCmMiInHiCmJiDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAiKeKiCkNiBeC_xHqqkZx_
////	if (OpenClipboard())
////	{
//////----- 01.11.04 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//////		const DWORD dwaTarget[] = { CF_ENHMETAFILE, CF_METAFILEPICT };
//////----- 01.11.04 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
////		const DWORD dwaTargetA[] = { CF_ENHMETAFILE, CF_METAFILEPICT };
////		const DWORD dwaTargetB[] = { CF_TEXT };
////		// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiL_xHqqkZx_/_xZkqqHx_iDgFiDeMiDfIiDgHiMgAiOkOiCmFjDfMiCoIjFhEiCkPiCpAiMjPiNpFiBeC_xHqqkZx_
////		const DWORD* dwaTarget = GetRTFEditor()->IsWindowVisible() ?
////									dwaTargetB : dwaTargetA;
//////----- 01.11.04 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
////		for (int i = 0;
////			!bEnable && i < sizeof(dwaTarget) / sizeof(dwaTarget[0]); i++)
////		{
////			// _xZkqqHx_iDgDiBfLiDiLiCkKiDhJiBfLiDfIiDgHiJmCjEfMiCmIiCoHiCmOiBeBiDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAiKeKiCkNiBeC_xHqqkZx_
////			if (GetCurrentTool()->CanPasteSpec(dwaTarget[i]))
////			{
////				// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIjCiGiCmMiDgGiBfLiDfOiMgAiOkOiCpAjHpBiLjDiBeC_xHqqkZx_
////				UINT dwFormat = 0;
////				do {
////					dwFormat = EnumClipboardFormats(dwFormat);
////					// _xZkqqHx_iDgGiBfLiDfOiMgAiOkOiCkK_xHqqkZx_dwaTarget[i]_xZkqqHx_iCmGiIoKjChGiClHiCoKiCmOiBeBiPeJjHlJiBeC_xHqqkZx_
////					if (dwFormat == dwaTarget[i]) bEnable = TRUE;
////				} while (dwFormat != 0 && !bEnable);
////			}
////		}
////		// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAjFmCiClGiCoJiBeC_xHqqkZx_
////		CloseClipboard();
////	}
////	pCmdUI->Enable(FFCanBasicOperate() && bEnable);
////----- 01.11.04 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	BOOL bEnable = FALSE;
//	// EnumClipboardFormats_xZkqqHx_iCmMiInHiCmJiDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAiKeKiCkNiBeC_xHqqkZx_
//	const DWORD dwaTargetA[] = { CF_ENHMETAFILE };
//	const DWORD dwaTargetB[] = { CF_TEXT };
//	// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiL_xHqqkZx_/_xZkqqHx_iDgFiDeMiDfIiDgHiMgAiOkOiCmFjDfMiCoIjFhEiCkPiCpAiMjPiNpFiBeC_xHqqkZx_
//	const DWORD* dwaTarget = GetRTFEditor()->IsWindowVisible() ?
//								dwaTargetB : dwaTargetA;
//	for (int i = 0;
//		!bEnable && i < sizeof(dwaTarget) / sizeof(dwaTarget[0]); i++)
//	{
//		// _xZkqqHx_iDgDiBfLiDiLiCkKiDhJiBfLiDfIiDgHiJmCjEfMiCkJiCmHiCkEiCkJjClCiCnHiCoJiBeC_xHqqkZx_
//		if (GetCurrentTool()->CanPasteSpec(dwaTarget[i]))
//			bEnable = TRUE;
//	}
//	pCmdUI->Enable(FFCanBasicOperate() && bEnable);
////----- 01.11.04 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//} // CFCDynamicDrawView::OnUpdateEditPasteAsMetafile.
//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditSelectAll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiClHiCnHiCmEiCpAjBeJjBpAiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditSelectAll ()
{
	GetCurrentTool()->OnSelectAll();
} // CFCDynamicDrawView::OnEditSelectAll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditSelectAll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiClHiCnHiCmEiCpAjBeJjBpAiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMjFmPjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditSelectAll (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanSelectAll());
} // CFCDynamicDrawView::OnUpdateEditSelectAll.

//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectConnect
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAnKjBlBiDiBiDgKiDiFiBfLiCkKjBeJjBpAiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeCjAhNiMgAiCmMjAnKjBlBiCpAiOmAiNhD_xHqqkZx_
// *			_xZkqqHx_iClHiCoJiBeC_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectConnect ()
//{
//	GetCurrentTool()->OnConnect();
//} // CFCDynamicDrawView::OnObjectConnect.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectConnect
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_.
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectConnect (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanConnect());
//} // CFCDynamicDrawView::OnUpdateObjectConnect.
//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectDisconnect
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAnKjBlBiJpAiPjMiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.01.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectDisconnect ()
//{
//	GetCurrentTool()->OnDisconnect();
//} // CFCDynamicDrawView::OnObjectDisconnect.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectDisconnect
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAnKjBlBiJpAiPjMiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.01.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectDisconnect (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanDisconnect());
//} // CFCDynamicDrawView::OnUpdateObjectDisconnect.
//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectFrontObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCpAjBePjGmKiCnGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectFrontObj ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmMiPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//	GetCurrentTool()->OnFrontObj();
//} // CFCDynamicDrawView::OnObjectFrontObj.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectFrontObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCpAjBePjGmKiCnGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectFrontObj (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanFrontObj());
//} // CFCDynamicDrawView::OnUpdateObjectFrontObj.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectBackObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCpAjEhHjGmKiCnGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectBackObj ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmMiPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//	GetCurrentTool()->OnBackObj();
//} // CFCDynamicDrawView::OnObjectBackObj.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectBackObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCpAjEhHjGmKiCnGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectBackObj (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanBackObj());
//} // CFCDynamicDrawView::OnUpdateObjectBackObj.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectMostFrontObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCpAiNmFjBePjGmKiCnGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectMostFrontObj ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmMiPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//	GetCurrentTool()->OnMostFrontObj();
//} // CFCDynamicDrawView::OnObjectMostFrontObj.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectMostFrontObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCpAiNmFjBePjGmKiCnGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectMostFrontObj (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanMostFrontObj());
//} // CFCDynamicDrawView::OnUpdateObjectMostFrontObj.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectMostBackObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCpAiNmFjEhHjGmKiCnGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectMostBackObj ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmMiPiIjHjNiKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
//	GetCurrentTool()->OnMostBackObj();
//} // CFCDynamicDrawView::OnObjectMostBackObj.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectMostBackObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCpAiNmFjEhHjGmKiCnGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectMostBackObj (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanMostBackObj());
//} // CFCDynamicDrawView::OnUpdateObjectMostBackObj.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectGroup
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiLiBfLiDhGiJlL_xHqqkZx_ _xZkqqHx_iDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectGroup ()
//{
//	GetCurrentTool()->OnObjectGroup();
//} // CFCDynamicDrawView::OnObjectGroup.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectGroup
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_.
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectGroup (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanObjectGroup());
//} // CFCDynamicDrawView::OnUpdateObjectGroup.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectUngroup
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiLiBfLiDhGiJpAiPjM_xHqqkZx_ _xZkqqHx_iDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectUngroup ()
//{
//	GetCurrentTool()->OnObjectUngroup();
//} // CFCDynamicDrawView::OnObjectUngroup.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectUngroup
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_.
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectUngroup (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanObjectUngroup());
//} // CFCDynamicDrawView::OnUpdateObjectUngroup.
//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTimer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfOiDeDiDhNiBfLiDeDiDhIiDjDiDgHiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nIDEvent	:_xZkqqHx_iDfOiDeDiDhNiBfLiDeDiDhIiDjDiDgH_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTimer (UINT nIDEvent)
{
	switch (nIDEvent)
	{
	case FDTIMER_VIEW_TOOL:	// _xZkqqHx_iDgDiBfLiDiLiDfOiDeDiDhNiBfLiCmMiPoKiNiHiBeC_xHqqkZx_
	  {
		CClientDC dc(this);
		OnPrepareDC(&dc, NULL);
//----- 01.11.11 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		GetCurrentTool()->OnTimer(&dc);
//----- 01.11.11 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		const MSG* pMsg = GetCurrentMessage();
		GetCurrentTool()->OnWindowMessage(&dc, pMsg->message, pMsg->wParam, pMsg->lParam);
//----- 01.11.11 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		break;
	  }
	case FDTIMER_VIEW_SCROLL:	// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDfOiDeDiDhNiBfLiCmMiPoKiNiHiBeC_xHqqkZx_
	  {
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiOoGjDlOiBeC_xHqqkZx_
		CRect lgrtClient;
		GetClientRectLG(lgrtClient);
		// 10pixel_xZkqqHx_iClIiCmCiPgLiPkMiBeC_xHqqkZx_
		lgrtClient.DeflateRect(10, 10);
		lgrtClient.NormalizeRect();	// Window_xZkqqHx_iCkKiPkMiClDiCkCiPoKiNiHiCmJjFeLjHhGiBeC_xHqqkZx_
		// _xZkqqHx_iDhNiDeFiDfIiDeKiBfLiDfMiDiLiCmMiMlLiNnNiCmMiImKjChFiCpAiBeBiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
		CPoint dvptMsc;
		(void)::GetCursorPos(&dvptMsc);
		// _xZkqqHx_iDfIiDeOiDiKiBfLiDjDiNmAjFfHiCpAiDeOiDiJiDeDiDeBiDjDiDgHiNmAjFfHiCnGjFmPiKlHiBeC_xHqqkZx_
		ScreenToClient(&dvptMsc);
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHiNmAjFfHiCpAjIfPjHjNiNmAjFfHiCnGjFmPiKlHiBeC_xHqqkZx_
		CPoint lgptMsc = dvptMsc;
		DPtoLP(lgptMsc);
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjCiGjAfDjDfPiCmMiInKjDkOjHmKiBeC_xHqqkZx_
		CSize lgszMove(0, 0);
		if (lgptMsc.x < lgrtClient.left)
		{
			lgszMove.cx = lgptMsc.x - lgrtClient.left;
		}
		if (lgrtClient.right < lgptMsc.x)
		{
			lgszMove.cx = lgptMsc.x - lgrtClient.right;
		}
		if (lgptMsc.y < lgrtClient.top)
		{
			lgszMove.cy = lgptMsc.y - lgrtClient.top;
		}
		if (lgrtClient.bottom < lgptMsc.y)
		{
			lgszMove.cy = lgptMsc.y - lgrtClient.bottom;
		}
		if (!m_bAutoScroll || (lgszMove.cx == 0 && lgszMove.cy == 0))
		//----- _xZkqqHx_iOkJjDkOiDfIiDeOiDiNiBfLiDiLiCkKiKePiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_/_xZkqqHx_iDhNiDeFiDfIiCkKjHmMiIoGjDoAiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfOiDeDiDhNiBfLiPeJjHlJiBeC_xHqqkZx_
//----- 01.11.12 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//			if (KillTimer(FDTIMER_VIEW_TOOL))
//			{
//				m_bIsScrollTimer = FALSE;
//			}
//----- 01.11.12 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
			// KillTimer_xZkqqHx_iCmMjGnPiCoIjCgMiCmNiDgAiDeGiDgCiDeOiClFiCmIiCkCiBeC_xHqqkZx_m_bIsToolTimer == TURE,
			// KillTimer() == FALSE _xZkqqHx_iCmMiPoKiNiHiCkKiCkAiCmBiClNiClNiCnPiBeC_xHqqkZx_
			KillTimer(FDTIMER_VIEW_SCROLL);
			m_bIsScrollTimer = FALSE;
//----- 01.11.12 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		} else
		//----- _xZkqqHx_iDeMiDiDiDhGiDgAiDiDiCkKiCkAiCoIiBeBiDhNiDeFiDfIiCkKjHmMiIoGiKePiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iJoGjGmKiCpAiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
			SetScrollCenter(lg2mm(lgrtClient.CenterPoint() + lgszMove));
			// _xZkqqHx_iDhNiDeFiDfIiInKjDkOiDiBiDgCiDfKiBfLiDfHiCpAiDhMiDfIiDgHiBeC_xHqqkZx_
			PostMessage(WM_MOUSEMOVE, 0, MAKELPARAM(dvptMsc.x, dvptMsc.y));
		}
		break;
	  }
	}
} // CFCDynamicDrawView::OnTimer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnActivateView
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiCkKiDeBiDeOiDgFiDeCiDhFiCmJiCmIiCoJiCmGiCkLiBeBiDeDiDjDiDeBiDeOiDgFiDeCiDhFiCmJiCmIiCoJiCmGiCkLiOmAiNhD_xHqqkZx_
 *			_xZkqqHx_iClDiCoKiCoJiBeC_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnActivateView (BOOL bActivate, CView* pActivateView, CView* pDeactiveView)
{
	TRACE(_T("ACTIVE %d\n"), bActivate);
	
	BASE_CLASS::OnActivateView(bActivate, pActivateView, pDeactiveView);
} // CFCDynamicDrawView::OnActivateView.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnPrepareDC
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFgAiJoGiDgGiDgPiDeDiDfI_xHqqkZx_ pDC _xZkqqHx_iCmMiOgHjHhAiPiAjEpFiCpAiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDC		:_xZkqqHx_jFgAiJoGiDgGiDgPiDeDiDfI_xHqqkZx_
 *			pInfo	:
 *************************************************************************/
void CFCDynamicDrawView::OnPrepareDC (CDC* pDC, CPrintInfo* pInfo) 
{
	BASE_CLASS::OnPrepareDC(pDC, pInfo);

//	pDC->SetWindowOrg(g_->lgOffsetX, g_->lgOffsetY);
} // CFCDynamicDrawView::OnPrepareDC.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnVScroll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAiCjClMiDfIiDeOiDiNiBfLiDiLiDgPiBfLiCpAjBiAiNoMiClFiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nSBCode	:_xZkqqHx_jBiAiNoMiCmMiOoNjHnO_xHqqkZx_
 *			nPos	:_xZkqqHx_iDgPiBfLiCmMiImKjChFiBeC_xHqqkZx_
 *			pScrollBar	:_xZkqqHx_jBiAiNoMiClDiCoKiClNiDfIiDeOiDiNiBfLiDiLiDgPiBfL_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnVScroll (UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
	INT			nNewPos;
	SCROLLINFO	oSCInfo;
	GetScrollInfo(SB_VERT, &oSCInfo);
	INT	nScrPos	= oSCInfo.nPos;
	INT	nScrMin	= oSCInfo.nMin;
	INT	nScrMax	= oSCInfo.nMax;
	INT	nScrPage= oSCInfo.nPage;
	switch (nSBCode)
	{
	case SB_BOTTOM:
		// _xZkqqHx_iIoKjEnEiJlKiCnMiCmFiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos	= nScrMax - nScrPage + 1;
		break;
	case SB_ENDSCROLL:
		// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiPeJjHlJiBeC_xHqqkZx_
		nNewPos	= nScrPos;
		break;
	case SB_LINEDOWN:
		// 1 _xZkqqHx_iNhDiJlKiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos	= nScrPos + nScrPage / 20;
		break;
	case SB_LINEUP:
		// 1 _xZkqqHx_iNhDiPoDiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos	= nScrPos - nScrPage / 20;
		break;
	case SB_PAGEDOWN:
		// 1 _xZkqqHx_iDhJiBfLiDfHiJlKiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos	= nScrPos + nScrPage;
		break;
	case SB_PAGEUP:
		// 1 _xZkqqHx_iDhJiBfLiDfHiPoDiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos	= nScrPos - nScrPage;
		break;
	case SB_THUMBPOSITION:
		// _xZkqqHx_jAoCjBmOiImKjChFiCnGiDfIiDeOiDiNiBfLiDiLiBeCiMlLiNnNiImKjChFiCmN_xHqqkZx_ nPos _xZkqqHx_iCmFjCpBiLjPiBeC_xHqqkZx_
		nNewPos	= nPos;
		break;
	case SB_THUMBTRACK:
		// _xZkqqHx_iOhHjCoIiImKjChFiCnGiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ _xZkqqHx_iDhLiDgCiDeOiDfIiCpAiDgIiDiJiDgCiDePiBeCiMlLiNnNiImKjChFiCmN_xHqqkZx_ nPos _xZkqqHx_iCmFjCpBiLjPiBeC_xHqqkZx_
		nNewPos	= nPos;
		break;
	case SB_TOP:
		// _xZkqqHx_iIoKjEnEiPoDiCnMiCmFiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos	= nScrMin;
		break;
	}
// 03.03.25 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	ScrollToY(D2L(nNewPos * m_dScrollRatioY));
	ScrollTo(g_->lgOffsetX, D2L(nNewPos * m_dScrollRatioY));
	
	BASE_CLASS::OnVScroll(nSBCode, nPos, pScrollBar);
} // CFCDynamicDrawView::OnVScroll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnHScroll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAiFjFlNiDfIiDeOiDiNiBfLiDiLiDgPiBfLiCpAjBiAiNoMiClFiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nSBCode	:_xZkqqHx_jBiAiNoMiCmMiOoNjHnO_xHqqkZx_
 *			nPos	:_xZkqqHx_iDgPiBfLiCmMiImKjChFiBeC_xHqqkZx_
 *			pScrollBar	:_xZkqqHx_jBiAiNoMiClDiCoKiClNiDfIiDeOiDiNiBfLiDiLiDgPiBfL_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnHScroll (UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	INT			nNewPos;
	SCROLLINFO	oSCInfo;
	GetScrollInfo(SB_HORZ, &oSCInfo);
	INT	nScrPos	= oSCInfo.nPos;
	INT	nScrMin	= oSCInfo.nMin;
	INT	nScrMax	= oSCInfo.nMax;
	INT	nScrPage= oSCInfo.nPage;
	switch (nSBCode)
	{
	case SB_LEFT:
		// _xZkqqHx_iNlGjCfLiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos = nScrMin;
		break;

	case SB_ENDSCROLL:
		// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiPeJjHlJiBeC_xHqqkZx_
		nNewPos = nScrPos;
		break;

	case SB_LINELEFT:
		// _xZkqqHx_iNlGiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos = nScrPos - nScrPage / 20;
		break;

	case SB_LINERIGHT:
		// _xZkqqHx_iJeFiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos = nScrPos + nScrPage / 20;
		break;

	case SB_PAGELEFT:
		// 1 _xZkqqHx_iDhJiBfLiDfHiNlGiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos = nScrPos - nScrPage;
		break;

	case SB_PAGERIGHT:
		// 1 _xZkqqHx_iDhJiBfLiDfHiJeFiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos = nScrPos + nScrPage;
		break;

	case SB_RIGHT:
		// _xZkqqHx_iJeFjCfLiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		nNewPos = nScrMax - nScrPage + 1;
		break;

	case SB_THUMBPOSITION:
		// _xZkqqHx_jAoCjBmOiImKjChFiCnGiDfIiDeOiDiNiBfLiDiLiBeCiMlLiNnNiImKjChFiCmN_xHqqkZx_nPos_xZkqqHx_iBeC_xHqqkZx_
		nNewPos = nPos;
		break;

	case SB_THUMBTRACK:
		// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDhLiDgCiDeOiDfIiCpAiOhHjCoIiImKjChFiCnGiDgIiDiJiDgCiDePiBeCiMlLiNnNiImKjChFiCmN_xHqqkZx_nPos_xZkqqHx_iBeC_xHqqkZx_
		nNewPos = nPos;
		break;
	}

// 03.03.25 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	ScrollToX(D2L(nNewPos * m_dScrollRatioX));
	ScrollTo(D2L(nNewPos * m_dScrollRatioX), g_->lgOffsetY);
	
	BASE_CLASS::OnHScroll(nSBCode,nPos, pScrollBar);
} // CFCDynamicDrawView::OnHScroll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnWindowPosChanged
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkKiInKjDkOiBeFiDiKiDfEiDeDiDfJiClDiCoKiClNiOjOiCmJiMmEiCnBiPgPiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpwndpos	:_xZkqqHx_iDfEiDeDiDfJjFmPiNfIiPoOjFpB_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	OnMove_xZkqqHx_iBeF_xHqqkZx_OnSize_xZkqqHx_iCmNiBeBiClBiCmMiKnGjAjEiCmMiDgGiDhEiDeIiDiLiDgHiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iClBiCmMiKnGjAjEiCkKiMmEiCmOiCoKiCoJiOjOiCmNiBeBiKpJiCmJjBfDiJoGjGmKiCkK_xHqqkZx_Invalidate_xZkqqHx_iClDiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDiKiDfEiDeDiDfJiOjOiCmJjHeMiMpIiCmJiOgDiClJiCoJjFjEjFkKiCmN_xHqqkZx_Validate_xZkqqHx_iClFiBeBiNmEjFgAiJoGiClJiClIiCmJ_xHqqkZx_
 *			_xZkqqHx_jAlGiCkJiClHiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnWindowPosChanged (WINDOWPOS* lpwndpos)
{
//----- 05.08.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	if (g_pInPlace != NULL)
//	//----- OLE_xZkqqHx_iCmMiDeDiDjDiDhGiDiMiBfLiDfIiLeOjDkOiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// IE_xZkqqHx_iCmJjDfMiCoIjFhEiCkPiCoHiCoKiCmEiCkCiCoJiPoKiNiHiCmNiBeBiDeFiDeCiDjDiDgIiDeFiCmMiInKjDkOiCpA_xHqqkZx_
//		// _xZkqqHx_jFnPiCoHiCkGiCoJiClBiCmGiCkKiCmFiCkLiCmIiCkCiBeC_xHqqkZx_
//		// _xZkqqHx_iCnMiClNiBeB_xHqqkZx_IE_xZkqqHx_iCmMiNlGiPoDiCkKiDiKiDfEiDeDiDfJiClDiCoKiClNiCmGiCkLiCmIiCmHiBeBiDeFiDeCiDjDiDgIiDeFiCmM_xHqqkZx_
//		// _xZkqqHx_jFfMiOkGjDoAjHgFiCmNiPjPiOoIiCmJiInKjDkOiBgJiDfIiDeOiDiNiBfLiDiLiBgKiClDiCoKiCmEiClFiCnMiCkCiBeB_xHqqkZx_
//		// _xZkqqHx_iClLiCmMiMoDiCmJ_xHqqkZx_ OnWindowPosChanged _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
//		// _xZkqqHx_iClBiCmMiClNiCnPiBeBiDeFiDeCiDjDiDgIiDeFiCmMiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmMiNlGiPoDiCpA_xHqqkZx_
//		// _xZkqqHx_iPoNiCmJiNkBiCmMiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmGiIoKjChGiClDiClJiCmEiCkIiCkNiBeC_xHqqkZx_
//		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgKiCpAiOoGjDlOiBeC_xHqqkZx_
//		CRect scrtNew;
//		GetClientRect(scrtNew);
//		ClientToScreen(scrtNew);
//		CSize szMove(scrtNew.left - m_scrtView.left, scrtNew.top - m_scrtView.top);
//		m_scrtView += szMove;
//	}
//
//	// OnWindowPosChanging _xZkqqHx_iCmFiCmNiBeBiDeFiDeCiDjDiDgIiDeFiCmMiNlGiPoDiCpAiDiKiDfEiDeDiDfJiClFiClNiPoKiNiHiBeB_xHqqkZx_
//	// _xZkqqHx_iNlGiPoDiCmMiInKjDkOjBePiCmMiNmAjFfHiCpAjFnPiCoHiCkGiCoJiClBiCmGiCmNiCmFiCkLiCmIiCkCiBeC_xHqqkZx_
//	// _xZkqqHx_iClBiCmMiClNiCnPiBeB_xHqqkZx_MainFrame::OnWindowPosChanged _xZkqqHx_iCmFiBeBiDeFiDeCiDjDiDgIiDeFiInKjDkOiCpA_xHqqkZx_
//	// _xZkqqHx_iPoNiCmJjFnPiCoHiCkGiCmEiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCpAiLeMjIfOiClFiCmEiCkIiCkNjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
//
//	// OnMove,OnSize_xZkqqHx_iPiIjHjNiBeC_xHqqkZx_
//	BASE_CLASS::OnWindowPosChanged(lpwndpos);
//	// _xZkqqHx_iDfEiDeDiDfJjFmPiNfIiBeFiInKjDkOiCmGiCoAjGlDiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
//	if ((SWP_NOMOVE & lpwndpos->flags) && (SWP_NOSIZE & lpwndpos->flags)) return;
//
//	CClientDC dc(this); // _xZkqqHx_jFgAiJoGjHhAiCmMiDgGiDgPiDeDiDfI_xHqqkZx_ _xZkqqHx_iDfCiDjDiDgFiDeMiDfIiDgHiBeC_xHqqkZx_
//
//	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgKiCpAiOoGjDlOiBeC_xHqqkZx_
//	CRect scrtNew;
//	GetClientRect(scrtNew);
//	ClientToScreen(scrtNew);
//	// _xZkqqHx_iDfEiDeDiDfJjFmPiNfIiCkKiCmIiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
//	if (scrtNew == m_scrtView) return;
//
//	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkKjEpBjFfMiOkGiCmMiPoKiNiHiCmNiBeBiDeJiDhEiDfKiDgCiDgHiCpAiMmFjCoIiClHiCoJiBeC_xHqqkZx_
//	// _xZkqqHx_iNmFiPiJiCmMiLeOjDkOiOjOiCmMiDeJiDhEiDfKiDgCiDgHiCpAjFnLiOjNiClHiCoJiClNiCnPiBeC_xHqqkZx_
//
//	if (IsWindowVisible())
//	//----- _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkKiJmCiOiLiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDgGiDeCiDfIiDhGiDiMiDeDiCmMiJoGjGmKiDfEiDeDiDfJiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgKiCpAiOoGjDlOiBeC_xHqqkZx_
//		CRect dvScreen(	0, 0,
//						dc.GetDeviceCaps(HORZRES),
//						dc.GetDeviceCaps(VERTRES));
//
//		// _xZkqqHx_iNmEjFgAiJoGiCmMjFeLjHhGiCkKjGlDiCkCjHmMiIoGiBgJjHeMiMpIjHmMiIoGiBgKiCpAiMhGiOfKiClHiCoJiBeC_xHqqkZx_
//		CRect lgrtCancel = scrtNew & m_scrtView & dvScreen;
//		// _xZkqqHx_jHeMiMpIjHmMiIoGiCkKjGlDiCkCiPoKiNiHiCmNiBeBjBfDiJoGjGmKiNmEjFgAiJoGiCpAjAnNjCoIiClFiCmEjFjMiLeBiBeC_xHqqkZx_
//		if (lgrtCancel.IsRectEmpty())
//		//----- _xZkqqHx_jHeMiMpIjHmMiIoGiCkKjGlDiCkCiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_jHeMiMpIjHmMiIoGiCkKiDiKiDfEiDeDiDfJiMoDiCoAjDkOiCkJiCmIiCkNiCmEiNmPiCnOiCoGiCkEiCmJiBeBiDeJiDhEiDfKiDgCiDgHiCpAjFmPiNfIiBeC_xHqqkZx_
//			g_->lgOffsetX += scrtNew.left - m_scrtView.left;
//			g_->lgOffsetY += scrtNew.top - m_scrtView.top;
//
//			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiCpAiPeDjAlDiBeCiDfJiBfLiDiAiBeFiDfIiDeOiDiNiBfLiDiLiDeJiDhEiDfKiDgCiDgHiCoAjFoCjAlDiBeC_xHqqkZx_
//			UpdateScrollSize();
////----------<NOT EXPORT TO VIEWER>-----------
//			if (GetRTFEditor()->IsWindowVisible())
//			//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiPpDjBnEiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCpAiInKjDkO_xHqqkZx_ -----
//				DBLRect mmrtWindow;
//				GetRTFEditor()->GetWindowRectMM(mmrtWindow);
//				GetRTFEditor()->MoveWindowMM(mmrtWindow);
//			}
////----------</NOT EXPORT TO VIEWER>-----------
//		} else
//		//----- _xZkqqHx_jHeMiMpIjHmMiIoGiCkKjHeMiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjDkPjClCiDeFiDeCiDjDiDgIiDeFjHhAiCmJiDeJiDhEiDfKiDgCiDgHiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
//			long lgOffsetX = g_->lgOffsetX;
//			long lgOffsetY = g_->lgOffsetY;
//			// _xZkqqHx_jHeMiMpIjHmMiIoGiCkKiDiKiDfEiDeDiDfJiMoDiCoAjDkOiCkJiCmIiCkNiCmEiNmPiCnOiCoGiCkEiCmJiBeBiDeJiDhEiDfKiDgCiDgHiCpAjFmPiNfIiBeC_xHqqkZx_
//			g_->lgOffsetX += scrtNew.left - m_scrtView.left;
//			g_->lgOffsetY += scrtNew.top - m_scrtView.top;
//			// _xZkqqHx_iMlLiNnNiCmMiDeJiDhEiDfKiDgCiDgHjCgMiCpAjFnLjBlGiBeC_xHqqkZx_
//			long lgMovX = g_->lgOffsetX;
//			long lgMovY = g_->lgOffsetY;
//			// _xZkqqHx_iDiKiDfEiDeDiDfJiCmJjElKiCkEiDfIiDeOiDiNiBfLiDiLiDgPiBfLiCmMjClCjAkOjDjJiCpAiNhDiCkEiBeC_xHqqkZx_
//			// _xZkqqHx_iClBiCmMiOjOiBeBiCoCiCnOiCpAjDlOiClIiDeJiDhEiDfKiDgCiDgHiCkKjFmPiNfIiClDiCoKiCoJiPoKiNiHiCoAiCkAiCoJiBeC_xHqqkZx_
//			UpdateScrollSize();
//			// _xZkqqHx_jAfGiClFiCkCiDeJiDhEiDfKiDgCiDgHjCgMiCmGiMmDiCkCiDeJiDhEiDfKiDgCiDgHjCgMiCmMiNlHiCpAiMhGiOfKiBeC_xHqqkZx_
//			lgMovX -= g_->lgOffsetX;
//			lgMovY -= g_->lgOffsetY;
//
////----------<NOT EXPORT TO VIEWER>-----------
//			//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCpAjDkPiKpKiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
//			if (GetRTFEditor()->IsWindowVisible())
//			//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiPpDjBnEiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iDeJiDhEiDfKiDgCiDgHiCmMiInKjDkOjHmKiCpAiMhGiOfKiBeC_xHqqkZx_
//				lgOffsetX -= g_->lgOffsetX;
//				lgOffsetY -= g_->lgOffsetY;
//				if (lgOffsetX != 0 || lgOffsetY != 0)
//				{
//					CRect	lgrtWin;
//					GetRTFEditor()->GetWindowRect(&lgrtWin);
//					ScreenToClient(&lgrtWin);
//					lgrtWin += CSize(lgOffsetX, lgOffsetY);
//					GetRTFEditor()->MoveWindow(&lgrtWin);
//				}
//			}
////----------</NOT EXPORT TO VIEWER>-----------
//
//			if (lgMovX != 0 || lgMovY != 0)
//			//----- _xZkqqHx_jHeMiMpIjHmMiIoGiCpAiInKjDkOiClHiCoJiPoKiNiH_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDhLiDgCiDeOiDfIiCmMjBoFiCkLiClDiCpAjDlOiCoJiBeC_xHqqkZx_
//				CRect dvrtClient;
//				GetClientRect(dvrtClient);
//				// _xZkqqHx_jHeMiMpIjHmMiIoGiCpAiInKjDkOiClHiCoJiBeC_xHqqkZx_
//				(void)dc.ScrollDC(lgMovX, lgMovY, &dvrtClient, &dvrtClient, NULL, NULL);
//				lgrtCancel += CSize(lgMovX, lgMovY);
//			}
//
//			// _xZkqqHx_jHeMiMpIjHmMiIoGiCpAiDeOiDiJiDeDiDeBiDjDiDgHiNmAjFfHiCnGiBeC_xHqqkZx_
//			ScreenToClient(lgrtCancel);
////----- 03.07.17 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////			// _xZkqqHx_jHeMiMpIjHmMiIoGiCmMiNmEjFgAiJoGiCpAiLnGiOhOiClHiCoJ_xHqqkZx_._xZkqqHx_iClBiCmMiKnGjAjEiCmN_xHqqkZx_ScrollDC_xZkqqHx_iImIjBePiCmJiOmAiNhDiClFiCmEiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
////			ValidateRect(lgrtCancel);
////----- 03.07.17 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//			// _xZkqqHx_jHeMiMpIjHmMiIoGiCpAjIfPjHjNiNmAjFfHiCnGiBeC_xHqqkZx_
//			DPtoLP(lgrtCancel);
//
//			if (lgMovX != 0 || lgMovY != 0)
//			//----- _xZkqqHx_jHeMiMpIjHmMiIoGiCpAiInKjDkOiClHiCoJiPoKiNiHiBeBiPoDiCpAjFkCiCkEiDeFiDeCiDjDiDgIiDeFiCmMiDiKiBfLiDfHiDiHiDjDiCpAjAnNjCoI_xHqqkZx_ -----
//			{
//				CRect	rect;
//				HWND hWnd = ::GetDesktopWindow();
//				// _xZkqqHx_iDiBiDeDiDjDiDhEiDiMiBfLiDiAiCoGiCoI_xHqqkZx_Z_xZkqqHx_iDeJiBfLiDfPiBfLiCmFiPoDiCmJiCkAiCoJiDeFiDeCiDjDiDgIiDeFiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//				for (hWnd = ::GetWindow(hWnd, GW_CHILD);
//					 (hWnd != NULL) && (hWnd != FFGetMainWnd()->GetWnd()->m_hWnd);
//					 hWnd = ::GetWindow(hWnd, GW_HWNDNEXT))
//				{
//					if (::IsWindowVisible(hWnd))
//					{
//						::GetWindowRect(hWnd, rect);
//						rect &= scrtNew;
//						// _xZkqqHx_iJmCiOiLiKiOiCmCiClBiCmMiDeFiDeCiDjDiDgIiDeFiCmJiCkJiCkJiCoJiPoKiNiHiBeC_xHqqkZx_
//						if (!rect.IsRectEmpty())
//						{
//							rect += CSize(lgMovX, lgMovY);
//							ScreenToClient(rect);
//// 03.07.17 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
////							InvalidateRect(rect);
//							DPtoLP(rect);
//							AddRgn(rect);
//						}
//					}
//				}
//			}
//
//			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLjClCjAkOiMoDiCmMiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiOoGjDlOiBeC_xHqqkZx_
//			CRect lgrtClientAfter;
//			GetClientRectLG(lgrtClientAfter);
//
//			/*---------------------------------------------------------------
//			 _xZkqqHx_iNmEjFgAiJoGjHmMiIoGiCmNiBeBiMmFjHeM_xHqqkZx_ _xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
//			 _xZkqqHx_iCmIiClKiCmIiCoHiBeBjFjNiBeFiNiCiClDiCmGiCoAiNeMiClAiCoHiCoKiClNiPoKiNiHiCmJiCmNiBeBiClLiCoKiCpAiKnMiCnOiNmFiPkMiCmMiLoJiMgAiCmN_xHqqkZx_
//			 _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGjBfDjBmMiCmJiCmIiCmBiCmEiClFiCnMiCkEiClNiCnPiBeCiClBiCoKiCpAiCfBiCmCiCmMiLoJiMgAiCmJjFkKiCkPiCmE_xHqqkZx_
//			 _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiClHiCoKiCmOiBeBiNmEjFgAiJoGjHmMiIoGiCmNiPkMiClDiCkCiLoJiMgAiCfBiCmCiCmFiClHiCnOiBeC_xHqqkZx_
//			 -----------------------------------------------------------------*/
//			CRect lgrtClip;
//			// _xZkqqHx_jHeMiMpIjHmMiIoGiCmMiNlGiLoJiMgAiCpAiDiKiBfLiDfHiDiHiDjDjAnNjCoIiBeC_xHqqkZx_
//			lgrtClip.SetRect(lgrtClientAfter.left, lgrtClientAfter.top,
//								lgrtCancel.left, lgrtClientAfter.bottom);
//			if (!lgrtClip.IsRectEmpty()) AddRgn(lgrtClip);
//			// _xZkqqHx_jHeMiMpIjHmMiIoGiCmMiJeFiLoJiMgAiCpAiDiKiBfLiDfHiDiHiDjDjAnNjCoIiBeC_xHqqkZx_
//			lgrtClip.SetRect(lgrtCancel.right, lgrtClientAfter.top,
//								 lgrtClientAfter.right, lgrtClientAfter.bottom);
//			if (!lgrtClip.IsRectEmpty()) AddRgn(lgrtClip);
//			// _xZkqqHx_jHeMiMpIjHmMiIoGiCmMiPoDiLoJiMgAiCpAiDiKiBfLiDfHiDiHiDjDjAnNjCoIiBeC_xHqqkZx_
//			lgrtClip.SetRect(lgrtCancel.left, lgrtClientAfter.top,
//								lgrtCancel.right, lgrtCancel.top);
//			if (!lgrtClip.IsRectEmpty()) AddRgn(lgrtClip);
//			// _xZkqqHx_jHeMiMpIjHmMiIoGiCmMiJlKiLoJiMgAiCpAiDiKiBfLiDfHiDiHiDjDjAnNjCoIiBeC_xHqqkZx_
//			lgrtClip.SetRect(lgrtCancel.left, lgrtCancel.bottom,
//								lgrtCancel.right, lgrtClientAfter.bottom);
//			if (!lgrtClip.IsRectEmpty()) AddRgn(lgrtClip);
//			// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiBeBiDeFiDeCiDjDiDgIiDeFiCmMiNfIjAfGiDiKiBfLiDfHiDiHiDjDiCmJjDfNiJlLiClHiCoJiBeC_xHqqkZx_
//			// OnWindowPosChanged_xZkqqHx_iBgJiDfEiDeDiDfJjFmPiNfIiBgKiMoDiBeBiNmEjFgAiJoGiCkKiOkJjDkOjDeJiCmJ_xHqqkZx_
//			// _xZkqqHx_iOmAiNhDiClDiCoKiCoJiCkKiBeBiCnJiCmBiCmGiCkNiCmGjBfDiJoGjGmKiCkKiDeOiDiKiDeBiClDiCoKiCmEiClFiCnMiCkEiClNiCnPiBeB_xHqqkZx_
//			// _xZkqqHx_iImIiJlKiCmMiPiIjHjNiCkKjFeLjHhGiBeC_xHqqkZx_
//			TransRgnToValidate();
//		}
//	}
//	// _xZkqqHx_iLeOjDkOjClMiMoDiCmJiDgAiDgCiDhGiDfIiDgHiDeBiCmMjFfMiOkGiBeFjEpBjFfMiOkGiCpAjAnIiCoIjBnGiCkGiClNiOjOiBeB_xHqqkZx_
//	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiCkKjDkPiOjOiCmJiDfIiDeOiDiNiBfLiDiLiClFiCmEiClFiCnMiCkEiCmMiCpAjGgIiCkOiClNiCnPiBeC_xHqqkZx_
//	// _xZkqqHx_iMlLiNnNiCmMjHmMiIoG_xHqqkZx_(_xZkqqHx_iDfIiDeOiDiKiBfLiDjDiNmAjFfH_xHqqkZx_)_xZkqqHx_iCmJjAfGiClFiCkCjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
//	FFPushPendingMessage(FCPendingMessage(FD_PMSG_VIEW,
//										WM_USER_UPDATE_VIEW_SCREEN_RECT, NULL, NULL,
//										TRUE,
//										FD_PMSG_MAIN_WND|FD_PMSG_IF_VISIBLE,
//										FD_PMSG_VIEW|FD_PMSG_IF_VISIBLE));
//----- 05.08.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	if (g_pInPlace != NULL)
	//----- OLE_xZkqqHx_iCmMiDeDiDjDiDhGiDiMiBfLiDfIiLeOjDkOiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// IE_xZkqqHx_iCmJjDfMiCoIjFhEiCkPiCoHiCoKiCmEiCkCiCoJiPoKiNiHiCmNiBeBiDeFiDeCiDjDiDgIiDeFiCmMiInKjDkOiCpA_xHqqkZx_
		// _xZkqqHx_jFnPiCoHiCkGiCoJiClBiCmGiCkKiCmFiCkLiCmIiCkCiBeC_xHqqkZx_
		// _xZkqqHx_iCnMiClNiBeB_xHqqkZx_IE_xZkqqHx_iCmMiNlGiPoDiCkKiDiKiDfEiDeDiDfJiClDiCoKiClNiCmGiCkLiCmIiCmHiBeBiDeFiDeCiDjDiDgIiDeFiCmM_xHqqkZx_
		// _xZkqqHx_jFfMiOkGjDoAjHgFiCmNiPjPiOoIiCmJiInKjDkOiBgJiDfIiDeOiDiNiBfLiDiLiBgKiClDiCoKiCmEiClFiCnMiCkCiBeB_xHqqkZx_
		// _xZkqqHx_iClLiCmMiMoDiCmJ_xHqqkZx_ OnWindowPosChanged _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iClBiCmMiClNiCnPiBeBiDeFiDeCiDjDiDgIiDeFiCmMiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmMiNlGiPoDiCpA_xHqqkZx_
		// _xZkqqHx_iPoNiCmJiNkBiCmMiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmGiIoKjChGiClDiClJiCmEiCkIiCkNiBeC_xHqqkZx_
		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgKiCpAiOoGjDlOiBeC_xHqqkZx_
		CRect scrtNew;
		GetClientRect(scrtNew);
		ClientToScreen(scrtNew);
		CSize szMove(scrtNew.left - m_scrtView.left, scrtNew.top - m_scrtView.top);
		m_scrtView += szMove;
	}

	// OnWindowPosChanging _xZkqqHx_iCmFiCmNiBeBiDeFiDeCiDjDiDgIiDeFiCmMiNlGiPoDiCpAiDiKiDfEiDeDiDfJiClFiClNiPoKiNiHiBeB_xHqqkZx_
	// _xZkqqHx_iNlGiPoDiCmMiInKjDkOjBePiCmMiNmAjFfHiCpAjFnPiCoHiCkGiCoJiClBiCmGiCmNiCmFiCkLiCmIiCkCiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiClNiCnPiBeB_xHqqkZx_MainFrame::OnWindowPosChanged _xZkqqHx_iCmFiBeBiDeFiDeCiDjDiDgIiDeFiInKjDkOiCpA_xHqqkZx_
	// _xZkqqHx_iPoNiCmJjFnPiCoHiCkGiCmEiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCpAiLeMjIfOiClFiCmEiCkIiCkNjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_

	// OnMove,OnSize_xZkqqHx_iPiIjHjNiBeC_xHqqkZx_
	BASE_CLASS::OnWindowPosChanged(lpwndpos);
	// _xZkqqHx_iDfEiDeDiDfJjFmPiNfIiBeFiInKjDkOiCmGiCoAjGlDiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if ((SWP_NOMOVE & lpwndpos->flags) && (SWP_NOSIZE & lpwndpos->flags)) return;

	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiBgJiDfIiDeOiDiKiBfLiDjDiNmAjFfHiBgKiCpAiOoGjDlOiBeC_xHqqkZx_
	CRect scrtNew;
	GetClientRect(scrtNew);
	ClientToScreen(scrtNew);
	// _xZkqqHx_iDfEiDeDiDfJjFmPiNfIiCkKiCmIiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (scrtNew == m_scrtView) return;

	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkKjEpBjFfMiOkGiCmMiPoKiNiHiCmNiBeBiDeJiDhEiDfKiDgCiDgHiCpAiMmFjCoIiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iNmFiPiJiCmMiLeOjDkOiOjOiCmMiDeJiDhEiDfKiDgCiDgHiCpAjFnLiOjNiClHiCoJiClNiCnPiBeC_xHqqkZx_

	long lC;
	if (IsWindowVisible())
	//----- _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkKiJmCiOiLiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDiCiDgKiDfOiBfLjHmMiIoGiCmMjEhKjHpBiCpAiOoGjDlOiBeC_xHqqkZx_
		CRectVector vMonitorRect;
		FFGetMonitorRect(vMonitorRect);

		// _xZkqqHx_iNmEjFgAiJoGiCmMjFeLjHhGiCkKjGlDiCkCjHmMiIoGiBgJjHeMiMpIjHmMiIoGiBgKiCpAiMhGiOfKiClHiCoJiBeC_xHqqkZx_
		CRectVector vValidRect;
		for (lC = 0; lC != vMonitorRect.size(); lC++)
		{
			CRect rtCancel = scrtNew & m_scrtView & vMonitorRect[lC];
			if (!rtCancel.IsRectEmpty())
				vValidRect.push_back(rtCancel);
		}
		// _xZkqqHx_jHeMiMpIjHmMiIoGiCkKjGlDiCkCiPoKiNiHiCmNiBeBjBfDiJoGjGmKiNmEjFgAiJoGiCpAjAnNjCoIiClFiCmEjFjMiLeBiBeC_xHqqkZx_
		if (vValidRect.empty())
		//----- _xZkqqHx_jHeMiMpIjHmMiIoGiCkKjGlDiCkCiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_jHeMiMpIjHmMiIoGiCkKiDiKiDfEiDeDiDfJiMoDiCoAjDkOiCkJiCmIiCkNiCmEiNmPiCnOiCoGiCkEiCmJiBeBiDeJiDhEiDfKiDgCiDgHiCpAjFmPiNfIiBeC_xHqqkZx_
			g_->lgOffsetX += scrtNew.left - m_scrtView.left;
			g_->lgOffsetY += scrtNew.top - m_scrtView.top;

			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLiCpAiPeDjAlDiBeCiDfJiBfLiDiAiBeFiDfIiDeOiDiNiBfLiDiLiDeJiDhEiDfKiDgCiDgHiCoAjFoCjAlDiBeC_xHqqkZx_
			UpdateScrollSize();
//----------<NOT EXPORT TO VIEWER>-----------
			if (GetRTFEditor()->IsWindowVisible())
			//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiPpDjBnEiCmMiPoKiNiH_xHqqkZx_ -----
			{
				//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCpAiInKjDkO_xHqqkZx_ -----
				DBLRect mmrtWindow;
				GetRTFEditor()->GetWindowRectMM(mmrtWindow);
				GetRTFEditor()->MoveWindowMM(mmrtWindow);
			}
//----------</NOT EXPORT TO VIEWER>-----------
		} else
		//----- _xZkqqHx_jHeMiMpIjHmMiIoGiCkKjHeMiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjDkPjClCiDeFiDeCiDjDiDgIiDeFjHhAiCmJiDeJiDhEiDfKiDgCiDgHiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
			long lgOffsetX = g_->lgOffsetX;
			long lgOffsetY = g_->lgOffsetY;
			// _xZkqqHx_jHeMiMpIjHmMiIoGiCkKiDiKiDfEiDeDiDfJiMoDiCoAjDkOiCkJiCmIiCkNiCmEiNmPiCnOiCoGiCkEiCmJiBeBiDeJiDhEiDfKiDgCiDgHiCpAjFmPiNfIiBeC_xHqqkZx_
			g_->lgOffsetX += scrtNew.left - m_scrtView.left;
			g_->lgOffsetY += scrtNew.top - m_scrtView.top;
			// _xZkqqHx_iMlLiNnNiCmMiDeJiDhEiDfKiDgCiDgHjCgMiCpAjFnLjBlGiBeC_xHqqkZx_
			long lgMovX = g_->lgOffsetX;
			long lgMovY = g_->lgOffsetY;
			// _xZkqqHx_iDiKiDfEiDeDiDfJiCmJjElKiCkEiDfIiDeOiDiNiBfLiDiLiDgPiBfLiCmMjClCjAkOjDjJiCpAiNhDiCkEiBeC_xHqqkZx_
			// _xZkqqHx_iClBiCmMiOjOiBeBiCoCiCnOiCpAjDlOiClIiDeJiDhEiDfKiDgCiDgHiCkKjFmPiNfIiClDiCoKiCoJiPoKiNiHiCoAiCkAiCoJiBeC_xHqqkZx_
			UpdateScrollSize();
			// _xZkqqHx_jAfGiClFiCkCiDeJiDhEiDfKiDgCiDgHjCgMiCmGiMmDiCkCiDeJiDhEiDfKiDgCiDgHjCgMiCmMiNlHiCpAiMhGiOfKiBeC_xHqqkZx_
			lgMovX -= g_->lgOffsetX;
			lgMovY -= g_->lgOffsetY;

//----------<NOT EXPORT TO VIEWER>-----------
			//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCpAjDkPiKpKiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
			if (GetRTFEditor()->IsWindowVisible())
			//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiPpDjBnEiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iDeJiDhEiDfKiDgCiDgHiCmMiInKjDkOjHmKiCpAiMhGiOfKiBeC_xHqqkZx_
				lgOffsetX -= g_->lgOffsetX;
				lgOffsetY -= g_->lgOffsetY;
				if (lgOffsetX != 0 || lgOffsetY != 0)
				{
					CRect	lgrtWin;
					GetRTFEditor()->GetWindowRect(&lgrtWin);
					ScreenToClient(&lgrtWin);
					lgrtWin += CSize(lgOffsetX, lgOffsetY);
					GetRTFEditor()->MoveWindow(&lgrtWin);
				}
			}
//----------</NOT EXPORT TO VIEWER>-----------

			if (lgMovX != 0 || lgMovY != 0)
			//----- _xZkqqHx_jHeMiMpIjHmMiIoGiCpAiInKjDkOiClHiCoJiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDhLiDgCiDeOiDfIiCmMjBoFiCkLiClDiCpAjDlOiCoJiBeC_xHqqkZx_
				CRect dvrtClient;
				GetClientRect(dvrtClient);
				// _xZkqqHx_jHeMiMpIjHmMiIoGiCpAiInKjDkOiClHiCoJiBeC_xHqqkZx_
				(void)CClientDC(this).ScrollDC(lgMovX, lgMovY, &dvrtClient, &dvrtClient, NULL, NULL);
				for (lC = 0; lC != vValidRect.size(); lC++)
					vValidRect[lC] += CSize(lgMovX, lgMovY);
			}
			for (lC = 0; lC != vValidRect.size(); lC++)
			{
				// _xZkqqHx_jHeMiMpIjHmMiIoGiCpAiDeOiDiJiDeDiDeBiDjDiDgHiNmAjFfHiCnGiBeC_xHqqkZx_
				ScreenToClient(vValidRect[lC]);
				// _xZkqqHx_jHeMiMpIjHmMiIoGiCpAjIfPjHjNiNmAjFfHiCnGiBeC_xHqqkZx_
				DPtoLP(vValidRect[lC]);
			}
			if (lgMovX != 0 || lgMovY != 0)
			//----- _xZkqqHx_jHeMiMpIjHmMiIoGiCpAiInKjDkOiClHiCoJiPoKiNiHiBeBiPoDiCpAjFkCiCkEiDeFiDeCiDjDiDgIiDeFiCmMiDiKiBfLiDfHiDiHiDjDiCpAjAnNjCoI_xHqqkZx_ -----
			{
				CRect	rect;
				HWND hWnd = ::GetDesktopWindow();
				// _xZkqqHx_iDiBiDeDiDjDiDhEiDiMiBfLiDiAiCoGiCoI_xHqqkZx_Z_xZkqqHx_iDeJiBfLiDfPiBfLiCmFiPoDiCmJiCkAiCoJiDeFiDeCiDjDiDgIiDeFiCpAjClCiCnHiCoJiBeC_xHqqkZx_
				for (hWnd = ::GetWindow(hWnd, GW_CHILD);
					 (hWnd != NULL) && (hWnd != FFGetMainWnd()->GetWnd()->m_hWnd);
					 hWnd = ::GetWindow(hWnd, GW_HWNDNEXT))
				{
					if (::IsWindowVisible(hWnd))
					{
						::GetWindowRect(hWnd, rect);
						rect &= scrtNew;
						// _xZkqqHx_iJmCiOiLiKiOiCmCiClBiCmMiDeFiDeCiDjDiDgIiDeFiCmJiCkJiCkJiCoJiPoKiNiHiBeC_xHqqkZx_
						if (!rect.IsRectEmpty())
						{
							rect += CSize(lgMovX, lgMovY);
							ScreenToClient(rect);
							DPtoLP(rect);
							AddRgn(rect);
						}
					}
				}
			}

			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDgPiBfLjClCjAkOiMoDiCmMiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiOoGjDlOiBeC_xHqqkZx_
			CRect lgrtClientAfter;
			GetClientRectLG(lgrtClientAfter);

			/*---------------------------------------------------------------
			 _xZkqqHx_iNmEjFgAiJoGjHmMiIoGiCmNiBeBiMmFjHeM_xHqqkZx_ _xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
			 _xZkqqHx_iCmIiClKiCmIiCoHiBeBjFjNiBeFiNiCiClDiCmGiCoAiNeMiClAiCoHiCoKiClNiPoKiNiHiCmJiCmNiBeBiClLiCoKiCpAiKnMiCnOiNmFiPkMiCmMiLoJiMgAiCmN_xHqqkZx_
			 _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGjBfDjBmMiCmJiCmIiCmBiCmEiClFiCnMiCkEiClNiCnPiBeCiClBiCoKiCpAiLoJiMgAiCmJjFkKiKiEiClFiCmE_xHqqkZx_
			 _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiClHiCoKiCmOiBeBiNmEjFgAiJoGjHmMiIoGiCmNiPkNiCmIiCkNiCmEiClHiCnOiBeC_xHqqkZx_
			 -----------------------------------------------------------------*/

			// _xZkqqHx_iDhNiDiLiDgAiDiCiDgKiDfOiBfLjBmOiJjOiCmMiClNiCnPiBeBiNmEjFgAiJoGjFhDjHhGiCmIjHeMiMpIjHmMiIoGiBgJ_xHqqkZx_vValidRect_xZkqqHx_iBgKiCmNjFkBjAjEiMmCiCkAiCoJiBeC_xHqqkZx_
			// _xZkqqHx_iClBiCoKiCmGiDiKiDfEiDeDiDfJiMoDiCmMiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiBgJ_xHqqkZx_lgrtClientAfter_xZkqqHx_iBgKiCkKiPgEiCmIiCoJjFjEjFkKiImIiKePiCkK_xHqqkZx_
			// _xZkqqHx_iNmEjFgAiJoGjFeLjHhGiCmIjGlDiMpIjHmMiIoGiBgJ_xHqqkZx_vrtInvalid_xZkqqHx_iBgKiCmFiCkAiCoJiBeC_xHqqkZx_
			// _xZkqqHx_jGlDiMpIjHmMiIoGiBgJ_xHqqkZx_vrtInvalid_xZkqqHx_iBgKiCpAiLiBiCnPiCoJiCmJiCmNiBeBiImIiJlKiCmMiDeBiDiLiDfDiDiKiDfJiDiAiCpAiOgHiCkEiBeC_xHqqkZx_
			// _xZkqqHx_jHoBiBeGiDiCiDgKiDfOiBfLiCkKiCfCiCmCiBgJjBkGiClPjHeMiMpIjHmMiIoGiCkKiCfCiCmCiBgKiCmMiPoKiNiHiCpAiNgMiCkGiCoJiBeC_xHqqkZx_
			// _xZkqqHx_iCfAiBeEiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiBgJ_xHqqkZx_lgrtClientAfter_xZkqqHx_iBgKiCmJiCkIiCkCiCmEiBeBjHeMiMpIjHmMiIoGiCfAiCmJiPgEiCmIiCoHiCmIiCkC_xHqqkZx_
			//    _xZkqqHx_jFjEjFkKiBgJiJlKjAhNiCmMiOmOjApMjFjEjFkKiBgKiCpAjAfGiClFiCkCjGlDiMpIjHmMiIoGiCmGiClFiCmEiLiBiCnPiCoJiBeC_xHqqkZx_
			//
			//         _xZkqqHx_iEkMjHeMiMpIjHmMiIoGiCfAiEkN_xHqqkZx_
			// _xZkqqHx_iEkBiEjPiEjPiEjPiElOiEjPiEjPiEjPiEjPiEjPiElOiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkL_xHqqkZx_          _xZkqqHx_iEkLiBfOiBfOiBfOiBfOiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkL_xHqqkZx_          _xZkqqHx_iEkLiBfOiBfOiBfOiBfOiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkL_xHqqkZx_          _xZkqqHx_iEkLiBfOiBfOiBfOiBfOiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoG_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkL_xHqqkZx_          _xZkqqHx_iEkLiBfOiBfOiBfOiBfOiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkL_xHqqkZx_          _xZkqqHx_iEkLiBfOiBfOiBfOiBfOiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkL_xHqqkZx_          _xZkqqHx_iEkLiBfOiBfOiBfOiBfOiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkEiEjPiEjPiEjPiElOiEjPiEjPiEjPiEjPiEjPiElOiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_
			//         _xZkqqHx_iEkPiEkKiEkKiEkKiEkKiEkKiEkO_xHqqkZx_
			//
			// _xZkqqHx_iCfBiBeEiCfAiCmFiLiBiCnPiClNjGlDiMpIjHmMiIoGiCmJiCkIiCkCiCmEiBeBjHeMiMpIjHmMiIoGiCfBiCmJiPgEiCmIiCoHiCmIiCkC_xHqqkZx_
			//    _xZkqqHx_jFjEjFkKiBgJiJlKjAhNiCmMiOmOjApMjFjEjFkKiBgKiCpAjAfGiClFiCkCjGlDiMpIjHmMiIoGiCmGiClFiCmEiLiBiCnPiCoJiBeC_xHqqkZx_
			//
			// _xZkqqHx_iEkBiEjPiEjPiEjPiEkC_xHqqkZx_          _xZkqqHx_iEkBiEjPiEjPiEjPiEkGiEjPiEkC_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkA_xHqqkZx_          _xZkqqHx_iEkAiBfOiBfOiBfOiEkAiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkA_xHqqkZx_          _xZkqqHx_iEkFiEjPiElBiEkKiElCiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkA_xHqqkZx_          _xZkqqHx_iEkAiBfOiEkL_xHqqkZx_  _xZkqqHx_iEkLiBkJiEjPiEjP_xHqqkZx_ _xZkqqHx_jHeMiMpIjHmMiIoGiCfB_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkA_xHqqkZx_          _xZkqqHx_iEkAiBfOiEkL_xHqqkZx_  _xZkqqHx_iEkLiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkA_xHqqkZx_          _xZkqqHx_iEkAiBfOiElAiEkKiElDiEjPiEkH_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkA_xHqqkZx_          _xZkqqHx_iEkAiBfOiEkAiBfOiBfOiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkEiEjPiEjPiEjPiEkD_xHqqkZx_          _xZkqqHx_iEkEiEjPiEkIiEjPiEjPiEjPiEkD_xHqqkZx_
			//
			// _xZkqqHx_iCfCiBeEiCfBiCmFiLiBiCnPiClNjGlDiMpIjHmMiIoGiCmJiCkIiCkCiCmEiBeBjHeMiMpIjHmMiIoGiCfCiCmJiPgEiCmIiCoHiCmIiCkC_xHqqkZx_
			//    _xZkqqHx_jFjEjFkKiBgJiJlKjAhNiCmMiOmOjApMjFjEjFkKiBgKiCpAiNmFiPeJjDeJiCmIjGlDiMpIjHmMiIoGiCmGiClFiCmEiLiBiCnPiCoJiBeC_xHqqkZx_
			//
			// _xZkqqHx_iEkBiEjPiEjPiEjPiEkC_xHqqkZx_          _xZkqqHx_iEkBiEjPiEjPiEjPiEkGiEjPiEkC_xHqqkZx_
			// _xZkqqHx_iEkAiBfOiBfOiBfOiEkA_xHqqkZx_          _xZkqqHx_iEkAiBfOiBfOiBfOiEkAiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iElAiEkKiEkKiEkKiElIiEkN_xHqqkZx_        _xZkqqHx_iEkFiEjPiEkGiEjPiEkHiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkL_xHqqkZx_        _xZkqqHx_iEkL_xHqqkZx_        _xZkqqHx_iEkAiBfOiEkA_xHqqkZx_  _xZkqqHx_iEkAiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkLjHeMiMpIjHmMiIoGiEkL_xHqqkZx_        _xZkqqHx_iEkAiBfOiEkA_xHqqkZx_  _xZkqqHx_iEkAiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkL_xHqqkZx_     _xZkqqHx_iCfC_xHqqkZx_ _xZkqqHx_iEkL_xHqqkZx_        _xZkqqHx_iEkAiBfOiEkFiEjPiEkIiEjPiEkH_xHqqkZx_
			// _xZkqqHx_iEkL_xHqqkZx_        _xZkqqHx_iEkL_xHqqkZx_        _xZkqqHx_iEkAiBfOiEkAiBfOiBfOiBfOiEkA_xHqqkZx_
			// _xZkqqHx_iEkPiEkKiEkKiEkKiEkKiEkO_xHqqkZx_        _xZkqqHx_iEkEiEjPiEkIiEjPiEjPiEjPiEkD_xHqqkZx_
			//
			// _xZkqqHx_jGlDiMpIjHmMiIoGiCmMiPiJiKpKjCgMiCmGiClFiCmEiDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAjAnNjCoIiBeC_xHqqkZx_
			CRectVector vrtInvalid;
			vrtInvalid.push_back(lgrtClientAfter);
			for (lC = 0; lC != vValidRect.size(); lC++)
			//----- _xZkqqHx_jHeMiMpIjHmMiIoGiCpAiDiLiBfLiDhG_xHqqkZx_ -----
			{
				CRectVector vrtTmp;
				CRectVector::const_iterator i;
				for (i = vrtInvalid.begin(); i != vrtInvalid.end(); i++)
				//----- _xZkqqHx_jGlDiMpIjHmMiIoGiCpAiDiLiBfLiDhG_xHqqkZx_ -----
				{
					// _xZkqqHx_jHmMiIoG_xHqqkZx_(*i)_xZkqqHx_iCmJiCkIiCkCiCmEiBeBjHeMiMpIjHmMiIoG_xHqqkZx_(vValidRect[lC])_xZkqqHx_iCmJiPgEiCmIiCoHiCmIiCkC_xHqqkZx_
					// _xZkqqHx_jHmMiIoGiCpAiMhGiOfKiClFiBeB_xHqqkZx_vrtTmp _xZkqqHx_iCmJjFnEiClHiBeC_xHqqkZx_
					FFGetInvalidRect(vrtTmp, *i, vValidRect[lC]);
				}
				// _xZkqqHx_jAfGiClFiCkCjGlDiMpIjHmMiIoGiCpAjAnNjCoIiBeC_xHqqkZx_
				vrtInvalid = vrtTmp;
			}
			// _xZkqqHx_iNmFiPeJjDeJiCmJjDlOiCoHiCoKiClNjGlDiMpIjHmMiIoGiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjDgPjIfOiBeC_xHqqkZx_
			for (lC = 0; lC != vrtInvalid.size(); lC++)
				AddRgn(vrtInvalid[lC]);

			// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiBeBiDeFiDeCiDjDiDgIiDeFiCmMiNfIjAfGiDiKiBfLiDfHiDiHiDjDiCmJjDfNiJlLiClHiCoJiBeC_xHqqkZx_
			// OnWindowPosChanged_xZkqqHx_iBgJiDfEiDeDiDfJjFmPiNfIiBgKiMoDiBeBiNmEjFgAiJoGiCkKiOkJjDkOjDeJiCmJ_xHqqkZx_
			// _xZkqqHx_iOmAiNhDiClDiCoKiCoJiCkKiBeBiCnJiCmBiCmGiCkNiCmGjBfDiJoGjGmKiCkKiDeOiDiKiDeBiClDiCoKiCmEiClFiCnMiCkEiClNiCnPiBeB_xHqqkZx_
			// _xZkqqHx_iImIiJlKiCmMiPiIjHjNiCkKjFeLjHhGiBeC_xHqqkZx_
			TransRgnToValidate();
		}
	}
	// _xZkqqHx_iLeOjDkOjClMiMoDiCmJiDgAiDgCiDhGiDfIiDgHiDeBiCmMjFfMiOkGiBeFjEpBjFfMiOkGiCpAjAnIiCoIjBnGiCkGiClNiOjOiBeB_xHqqkZx_
	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiCkKjDkPiOjOiCmJiDfIiDeOiDiNiBfLiDiLiClFiCmEiClFiCnMiCkEiCmMiCpAjGgIiCkOiClNiCnPiBeC_xHqqkZx_
	// _xZkqqHx_iMlLiNnNiCmMjHmMiIoG_xHqqkZx_(_xZkqqHx_iDfIiDeOiDiKiBfLiDjDiNmAjFfH_xHqqkZx_)_xZkqqHx_iCmJjAfGiClFiCkCjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	FFPushPendingMessage(FCPendingMessage(FD_PMSG_VIEW,
										WM_USER_UPDATE_VIEW_SCREEN_RECT, NULL, NULL,
										TRUE,
										FD_PMSG_MAIN_WND|FD_PMSG_IF_VISIBLE,
										FD_PMSG_VIEW|FD_PMSG_IF_VISIBLE));
//----- 05.08.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::OnWindowPosChanged.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnGraphicsShadowLength
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJgFiCmMjAnNjCoIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.30 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnGraphicsShadowLength ()
{
	CFCDlgShadow dlg;
	dlg.DoModal();
} // CFCDynamicDrawView::OnGraphicsShadowLength.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateGraphicsShadowLength
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJgFiCmMjAnNjCoIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateGraphicsShadowLength (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
} // CFCDynamicDrawView::OnUpdateGraphicsShadowLength.

//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectPutRtfObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDiKiDgCiDgAiDgFiDeMiDfIiDgHjFjEjFgJiCpAjDfJjFhEiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectPutRtfObj ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnObjectPutRtfObj();
//} // CFCDynamicDrawView::OnObjectPutRtfObj.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectInsertJoint
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjIeBiMiLjDfPiCpAjBhNjDpMiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.08.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectInsertJoint ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnInsertJoint();
//} // CFCDynamicDrawView::OnObjectInsertJoint.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectAlignVLeft
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNlGjBkEiCmJjAkOjHpBiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectAlignVLeft ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_ALIGN_V_LEFT);
//} // CFCDynamicDrawView::OnObjectAlignVLeft.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectAlignVLeft
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNlGjBkEiCmJjAkOjHpBiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectAlignVLeft (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_ALIGN_V_LEFT));
//} // CFCDynamicDrawView::OnUpdateObjectAlignVLeft.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectAlignVCenter
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjCiGiJjLiCmJjAkOjHpBiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectAlignVCenter ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_ALIGN_V_CENTER);
//} // CFCDynamicDrawView::OnObjectAlignVCenter.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectAlignVCenter
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjCiGiJjLiCmJjAkOjHpBiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectAlignVCenter (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_ALIGN_V_CENTER));
//} // CFCDynamicDrawView::OnUpdateObjectAlignVCenter.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectAlignVRight
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJeFjBkEiCmJjAkOjHpBiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectAlignVRight ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_ALIGN_V_RIGHT);
//} // CFCDynamicDrawView::OnObjectAlignVRight.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectAlignVRight
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJeFjBkEiCmJjAkOjHpBiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectAlignVRight (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_ALIGN_V_RIGHT));
//} // CFCDynamicDrawView::OnUpdateObjectAlignVRight.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectAlignHTop
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiPoDjBkEiCmJjAkOjHpBiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectAlignHTop ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_ALIGN_H_TOP);
//} // CFCDynamicDrawView::OnObjectAlignHTop.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectAlignHTop
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiPoDjBkEiCmJjAkOjHpBiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectAlignHTop (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_ALIGN_H_TOP));
//} // CFCDynamicDrawView::OnUpdateObjectAlignHTop.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectAlignHCenter
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjCiGiJjLiCmJjAkOjHpBiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectAlignHCenter ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_ALIGN_H_CENTER);
//} // CFCDynamicDrawView::OnObjectAlignHCenter.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectAlignHCenter
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjCiGiJjLiCmJjAkOjHpBiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectAlignHCenter (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_ALIGN_H_CENTER));
//} // CFCDynamicDrawView::OnUpdateObjectAlignHCenter.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectAlignHBottom
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJlKjBkEiCmJjAkOjHpBiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectAlignHBottom ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_ALIGN_H_BOTTOM);
//} // CFCDynamicDrawView::OnObjectAlignHBottom.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectAlignHBottom
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJlKjBkEiCmJjAkOjHpBiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectAlignHBottom (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_ALIGN_H_BOTTOM));
//} // CFCDynamicDrawView::OnUpdateObjectAlignHBottom.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectSameGapV
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAiCjClMiCmJiLpDjEjCiLmPjDjJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectSameGapV ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_SAME_GAP_V);
//} // CFCDynamicDrawView::OnObjectSameGapV.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectSameGapV
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAiCjClMiCmJiLpDjEjCiLmPjDjJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectSameGapV (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_SAME_GAP_V));
//} // CFCDynamicDrawView::OnUpdateObjectSameGapV.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectSameGapH
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAiFjFlNiCmJiLpDjEjCiLmPjDjJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectSameGapH ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_SAME_GAP_H);
//} // CFCDynamicDrawView::OnObjectSameGapH.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectSameGapH
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAiFjFlNiCmJiLpDjEjCiLmPjDjJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectSameGapH (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_SAME_GAP_H));
//} // CFCDynamicDrawView::OnUpdateObjectSameGapH.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectSameDistV
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAiCjClMiCmJiImKjChFiLmPjDjJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectSameDistV ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_SAME_DIST_V);
//} // CFCDynamicDrawView::OnObjectSameDistV.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectSameDistV
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAiCjClMiCmJiImKjChFiLmPjDjJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectSameDistV (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_SAME_DIST_V));
//} // CFCDynamicDrawView::OnUpdateObjectSameDistV.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectSameDistH
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAiFjFlNiCmJiImKjChFiLmPjDjJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectSameDistH ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_SAME_DIST_H);
//} // CFCDynamicDrawView::OnObjectSameDistH.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectSameDistH
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAiFjFlNiCmJiImKjChFiLmPjDjJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectSameDistH (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_SAME_DIST_H));
//} // CFCDynamicDrawView::OnUpdateObjectSameDistH.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectSameSizeX
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhF_xHqqkZx_X_xZkqqHx_jFpLiMpMiCmJjDkPiDfEiDeDiDfJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectSameSizeX ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_SAME_SIZE_X);
//} // CFCDynamicDrawView::OnObjectSameSizeX.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectSameSizeX
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhF_xHqqkZx_X_xZkqqHx_jFpLiMpMiCmJjDkPiDfEiDeDiDfJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectSameSizeX (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_SAME_SIZE_X));
//} // CFCDynamicDrawView::OnUpdateObjectSameSizeX.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectSameSizeY
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhF_xHqqkZx_Y_xZkqqHx_jFpLiMpMiCmJjDkPiDfEiDeDiDfJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectSameSizeY ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnAlignObjs(FCToolBase::FDAT_SAME_SIZE_Y);
//} // CFCDynamicDrawView::OnObjectSameSizeY.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectSameSizeY
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhF_xHqqkZx_Y_xZkqqHx_jFpLiMpMiCmJjDkPiDfEiDeDiDfJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectSameSizeY (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignObjs(FCToolBase::FDAT_SAME_SIZE_Y));
//} // CFCDynamicDrawView::OnUpdateObjectSameSizeY.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectRotateRight
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJeFiCmJiCfIiCePjDhIiJpBjDfNiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectRotateRight ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnRotateObjs(0.5);
//} // CFCDynamicDrawView::OnObjectRotateRight.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectRotateRight
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJeFiCmJiCfIiCePjDhIiJpBjDfNiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectRotateRight (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanRotateObjs());
//} // CFCDynamicDrawView::OnUpdateObjectRotateRight.
//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectRotateLeft
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNlGiCmJiCfIiCePjDhIiJpBjDfNiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectRotateLeft ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnRotateObjs(-0.5);
//} // CFCDynamicDrawView::OnObjectRotateLeft.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectRotateLeft
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNlGiCmJiCfIiCePjDhIiJpBjDfNiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectRotateLeft (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanRotateObjs());
//} // CFCDynamicDrawView::OnUpdateObjectRotateLeft.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectMirrorVert
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiPoDiJlKjElNjDfNiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectMirrorVert ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnMirrorObjs(FCToolBase::FDMR_VERT);
//} // CFCDynamicDrawView::OnObjectMirrorVert.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectMirrorVert
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiPoDiJlKjElNjDfNiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectMirrorVert (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanMirrorObjs(FCToolBase::FDMR_VERT));
//} // CFCDynamicDrawView::OnUpdateObjectMirrorVert.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnObjectMirrorHorz
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNlGiJeFjElNjDfNiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnObjectMirrorHorz ()
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
//	GetCurrentTool()->OnMirrorObjs(FCToolBase::FDMR_HORZ);
//} // CFCDynamicDrawView::OnObjectMirrorHorz.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectMirrorHorz
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNlGiJeFjElNjDfNiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectMirrorHorz (CCmdUI* pCmdUI)
//{
//	// _xZkqqHx_iDgDiBfLiDiLiCmJjGoCiCkCiNiHiCoNiClJiCoJiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanMirrorObjs(FCToolBase::FDMR_HORZ));
//} // CFCDynamicDrawView::OnUpdateObjectMirrorHorz.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectInsertJoint
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjIeBiMiLjDfPiCpAjBhNjDpMiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.08.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectInsertJoint (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanInsertJoint());
//} // CFCDynamicDrawView::OnUpdateObjectInsertJoint.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateObjectPutRtfObj
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDiKiDgCiDgAiDgFiDeMiDfIiDgHjFjEjFgJiCpAjDfJjFhEiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateObjectPutRtfObj (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanObjectPutRtfObj());
//} // CFCDynamicDrawView::OnUpdateObjectPutRtfObj.
//----- 01.01.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextStopEdit
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHjFnCiPfHiPeJjHlJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextStopEdit ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnStopToEditText();
} // CFCDynamicDrawView::OnTextStopEdit.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextStopEdit
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHjFnCiPfHiPeJjHlJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextStopEdit (CCmdUI* pCmdUI)
{
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmMiOjOiCmMiCnNjHeMiMpIiBeC_xHqqkZx_
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->IsEditingText());
} // CFCDynamicDrawView::OnUpdateTextStopEdit.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateFilePrint
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiIpDiNpMiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateFilePrint (CCmdUI* pCmdUI)
{
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
	pCmdUI->Enable(FFIsSheetReady());
} // CFCDynamicDrawView::OnUpdateFilePrint.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnFilePrintPreview
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiIpDiNpMiDhGiDiMiDhCiDiFiBfLiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnFilePrintPreview ()
{
//----- 02.08.07 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (_xZkqqHx_iIpDiNpMiDhGiDiMiDhCiDiFiBfLiOjOiCmJiDgAiDgCiDhGiDfIiDgHiDeBjBiAiNoMiClHiCoJiCmGjHiOiClPiCoJ_xHqqkZx_)-----
	// _xZkqqHx_iDhGiDiMiDhCiDiFiBfLiPiIjHjNiKeKiOgOiCpAiDhEiDiMiBfLiDiAiCmJjCmKjCgNiBeC_xHqqkZx_
	FFGetMainWnd()->OnBeginPrintPreview();
//----- 02.08.07 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (_xZkqqHx_iIpDiNpMiDhGiDiMiDhCiDiFiBfLiOjOiCmJiDgAiDgCiDhGiDfIiDgHiDeBjBiAiNoMiClHiCoJiCmGjHiOiClPiCoJ_xHqqkZx_)-----
	// _xZkqqHx_iIpDiNpMiDhGiDiMiDhCiDiFiBfLiDiCiBfLiDgIiBeCjCeBiClF_xHqqkZx_OnPrint_xZkqqHx_iOjOiCmN_xHqqkZx_FDDR_PRINTER_xZkqqHx_iBeC_xHqqkZx_
	g_->eDrawWhich = FDDR_PRINT_PREVIEW;
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnFilePrintPreview();
} // CFCDynamicDrawView::OnFilePrintPreview.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateFilePrintPreview
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiIpDiNpMiDhGiDiMiDhCiDiFiBfLiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateFilePrintPreview (CCmdUI* pCmdUI)
{
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
	pCmdUI->Enable(FFIsSheetReady());
} // CFCDynamicDrawView::OnUpdateFilePrintPreview.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextAlignLeft
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiNlGjBlFiCkGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextAlignLeft ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnAlignText(FDRC_AL_LEFT);
} // CFCDynamicDrawView::OnTextAlignLeft.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextAlignLeft
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiNlGjBlFiCkGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextAlignLeft (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignText());
	pCmdUI->SetRadio(GetCurrentTool()->CanAlignText()&&
				GetCurrentTool()->GetTextAlignment() == FDRC_AL_LEFT);
} // CFCDynamicDrawView::OnUpdateTextAlignLeft.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextAlignCenter
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHjCiGiJjLjBlFiCkGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextAlignCenter ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnAlignText(FDRC_AL_CENTER);
} // CFCDynamicDrawView::OnTextAlignCenter.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextAlignCenter
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHjCiGiJjLjBlFiCkGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextAlignCenter (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignText());
	pCmdUI->SetRadio(GetCurrentTool()->CanAlignText() &&
			GetCurrentTool()->GetTextAlignment() == FDRC_AL_CENTER);
} // CFCDynamicDrawView::OnUpdateTextAlignCenter.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextAlignRight
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiJeFjBlFiCkGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextAlignRight ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnAlignText(FDRC_AL_RIGHT);
} // CFCDynamicDrawView::OnTextAlignRight.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextAlignRight
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiJeFjBlFiCkGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextAlignRight (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignText());
	pCmdUI->SetRadio(GetCurrentTool()->CanAlignText() &&
			GetCurrentTool()->GetTextAlignment() == FDRC_AL_RIGHT);
} // CFCDynamicDrawView::OnUpdateTextAlignRight.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextAlignLeftright
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHjHlMjCfLjBlFiCkGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextAlignLeftright ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnAlignText(FDRC_AL_LEFTRIGHT);
} // CFCDynamicDrawView::OnTextAlignLeftright.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextAlignLeftright
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHjHlMjCfLjBlFiCkGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.02.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextAlignLeftright (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanAlignText());
	pCmdUI->SetRadio(GetCurrentTool()->CanAlignText() &&
			GetCurrentTool()->GetTextAlignment() == FDRC_AL_LEFTRIGHT);
} // CFCDynamicDrawView::OnUpdateTextAlignLeftright.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextAlignTop
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiPoDiKpBiClJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextAlignTop ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnVertAlignText(FDRC_AL_TOP);
} // CFCDynamicDrawView::OnTextAlignTop.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextAlignTop
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiPoDiKpBiClJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextAlignTop (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanVertAlignText());
	pCmdUI->SetRadio(GetCurrentTool()->CanVertAlignText() &&
				GetCurrentTool()->GetTextVertAlignment() == FDRC_AL_TOP);
} // CFCDynamicDrawView::OnUpdateTextAlignTop.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextAlignVCenter
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiPoDiJlKjCiGiJjLiKpBiClJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextAlignVCenter ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnVertAlignText(FDRC_AL_V_CENTER);
} // CFCDynamicDrawView::OnTextAlignVCenter.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextAlignVCenter
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiPoDiJlKjCiGiJjLiKpBiClJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextAlignVCenter (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanVertAlignText());
	pCmdUI->SetRadio(GetCurrentTool()->CanVertAlignText() &&
				GetCurrentTool()->GetTextVertAlignment() == FDRC_AL_V_CENTER);
} // CFCDynamicDrawView::OnUpdateTextAlignVCenter.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextAlignBottom
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiJlKiKpBiClJiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextAlignBottom ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnVertAlignText(FDRC_AL_BOTTOM);
} // CFCDynamicDrawView::OnTextAlignBottom.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextAlignBottom
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiJlKiKpBiClJiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextAlignBottom (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanVertAlignText());
	pCmdUI->SetRadio(GetCurrentTool()->CanVertAlignText() &&
				GetCurrentTool()->GetTextVertAlignment() == FDRC_AL_BOTTOM);
} // CFCDynamicDrawView::OnUpdateTextAlignBottom.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextLine
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiCmMiNhDiKnEiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextLine ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnTextLine();
} // CFCDynamicDrawView::OnTextLine.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextLine
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiCmMiNhDiKnEiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextLine (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanTextLine());
} // CFCDynamicDrawView::OnUpdateTextLine.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextMargin
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHjHfNjEjCiCmMjAnNjCoIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextMargin ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnTextMargin();
} // CFCDynamicDrawView::OnTextMargin.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextRemoveFromObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiCpAjFjEjFgJiCkJiCoHiNoNiPjMiBhGiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.07.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextRemoveFromObject ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnDeleteRichText();
} // CFCDynamicDrawView::OnTextRemoveFromObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextRemoveFromObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHiCpAjFjEjFgJiCkJiCoHiNoNiPjMiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.07.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextRemoveFromObject (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanDeleteRichText());
} // CFCDynamicDrawView::OnUpdateTextRemoveFromObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextMargin
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgFiDeMiDfIiDgHjHfNjEjCiCmMjAnNjCoIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextMargin (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanTextMargin());
} // CFCDynamicDrawView::OnUpdateTextMargin.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnGraphicsEditColorTable
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAeGiDgFiBfLiDhFiDiLiCmMjFnCiPfHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnGraphicsEditColorTable ()
{
	CFCDlgSColorSelect dlg;
	dlg.DoModal();
} // CFCDynamicDrawView::OnGraphicsEditColorTable.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateGraphicsEditColorTable
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAeGiDgFiBfLiDhFiDiLiCmMjFnCiPfHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateGraphicsEditColorTable (CCmdUI* pCmdUI)
{
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() && !GetCurrentTool()->IsEditingText());
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() &&
//					!g_pDoc->IsOleDocumentsOpened() &&
//					!GetCurrentTool()->IsEditingText());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::OnUpdateGraphicsEditColorTable.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnGraphicsEditRegpenTable
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjDgPjIfOiDhJiDjDiCmMjFnCiPfHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnGraphicsEditRegpenTable ()
{
	CFCDlgPenRegisterSelect dlg;
	dlg.DoModal();
} // CFCDynamicDrawView::OnGraphicsEditRegpenTable.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateGraphicsEditRegpenTable
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjDgPjIfOiDhJiDjDiCmMjFnCiPfHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateGraphicsEditRegpenTable (CCmdUI* pCmdUI)
{
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() && !GetCurrentTool()->IsEditingText());
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() &&
//					!g_pDoc->IsOleDocumentsOpened() &&
//					!GetCurrentTool()->IsEditingText());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
} // CFCDynamicDrawView::OnUpdateGraphicsEditRegpenTable.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnGraphicsEditRegbrushTable
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjDgPjIfOiDhFiDiJiDfGiCmMjFnCiPfHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnGraphicsEditRegbrushTable ()
{
	CFCDlgBrushRegisterSelect dlg;
	dlg.DoModal();
} // CFCDynamicDrawView::OnGraphicsEditRegbrushTable.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateGraphicsEditRegbrushTable
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjDgPjIfOiDhFiDiJiDfGiCmMjFnCiPfHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateGraphicsEditRegbrushTable (CCmdUI* pCmdUI)
{
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() && !GetCurrentTool()->IsEditingText());
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() &&
//					!g_pDoc->IsOleDocumentsOpened() &&
//					!GetCurrentTool()->IsEditingText());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
} // CFCDynamicDrawView::OnUpdateGraphicsEditRegbrushTable.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnGraphicsEditPictureTable
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAhNiDgFiBfLiDhFiDiLiCmMjFnCiPfHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnGraphicsEditPictureTable ()
{
	CFCDlgEmfImageSelect dlg;
	dlg.DoModal();
} // CFCDynamicDrawView::OnGraphicsEditPictureTable.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateGraphicsEditPictureTable
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjAhNiDgFiBfLiDhFiDiLiCmMjFnCiPfHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateGraphicsEditPictureTable (CCmdUI* pCmdUI)
{
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() && !GetCurrentTool()->IsEditingText());
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened() && !g_pDoc->IsReadOnly() &&
//					!g_pDoc->IsOleDocumentsOpened() &&
//					!GetCurrentTool()->IsEditingText());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
//----- 00.12.22 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 00.11.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ (OLE_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCnGiCmMiLeMjIfO_xHqqkZx_)-----
} // CFCDynamicDrawView::OnUpdateGraphicsEditPictureTable.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnMouseWheel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeDiDjDiDgFiDiKiDhNiDeFiDfIiCmM_xHqqkZx_wheel_xZkqqHx_iCkKiJpBjDfNiClFiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nFlags	:_xZkqqHx_jDkPiOjOiCmJiJjPiClDiCoKiCmEiCkCiCoJiDeMiBfLiCmMiPpDjBnEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			zDelta	:_xZkqqHx_iJpBjDfNiLjHjHkDiCpAiOhHiOkGiBeC_xHqqkZx_zDelta _xZkqqHx_jCgMiCmN_xHqqkZx_ WHEEL_DELTA (_xZkqqHx_jCgM_xHqqkZx_ 120)
 *					 _xZkqqHx_iCmMjEhLjAjEiCnMiClNiCmNjGpBjAjEiCmJiClFiCnMiClHiBeC_xHqqkZx_
 *			pt		:_xZkqqHx_iDeKiBfLiDfMiDiLiCmM_xHqqkZx_ xy _xZkqqHx_iNmAjFfHiCpAiOhHjCoIiBeCiDeFiDeCiDjDiDgIiDeFiCmMiNlGiPoDiLpHiCpAiMlEjDfPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiDhKiDeDiBfLiDiLiDfIiDeOiDiNiBfLiDiLiCkKjHeMiMpIiCmIiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iImIiKePiCpAjFnEiClFiCnMiClHiBeC_xHqqkZx_
 *			_xZkqqHx_jGlDiMpIiCmIiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iCpAjFnEiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDynamicDrawView::OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
{
	//----- _xZkqqHx_iDgDiBfLiDiLiCmJiDiBiDgCiDfKiBfLiDfHiCpAjBjHiCoJ_xHqqkZx_ -----
	CClientDC dc(this);
	OnPrepareDC(&dc, NULL);
	const MSG* pMsg = GetCurrentMessage();
	GetCurrentTool()->OnWindowMessage(&dc, pMsg->message, pMsg->wParam, pMsg->lParam);

	// _xZkqqHx_iDhNiDeFiDfIiDhKiDeDiBfLiDiLiCpAiLnGiOhOiBeI_xHqqkZx_
	if (m_bIsProhibitWheel) return TRUE;

	// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLjHmKiCpAiOfKiPgPiBeC_xHqqkZx_
	int nToScroll = FFWheelDeltaToScrollCount(zDelta);

	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiDeMiBfLiCkKiJjPiClDiCoKiCmEiCkCiCoKiCmOiDfJiBfLiDiAiBeC_xHqqkZx_
	// _xZkqqHx_iDfGiDhEiDgHiDeMiBfLiCkKiJjPiClDiCoKiCmEiCkCiCoKiCmOiJkBiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
	// _xZkqqHx_iJlNiCoAiJjPiClDiCoKiCmEiCkCiCmIiCkPiCoKiCmOiPgDiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
	if (nFlags & MK_CONTROL)
	//----- _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiDeMiBfLiCkKiJjPiClDiCoKiCmEiCkCiCoKiCmOiDfJiBfLiDiA_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmJiDhKiDeDiBfLiDiLiCmFiDfJiBfLiDiAiClHiCoJiCmMiCpAiLnGiOhOiClHiCoJiClNiCnPiImIiJlKiCmMiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
		if (GetCurrentTool()->CanZoomView())
		//----- _xZkqqHx_iDfJiBfLiDiAiJmCjEfMiCmFiCkAiCoKiCmOiDfJiBfLiDiA_xHqqkZx_ -----
		{
			// _xZkqqHx_iMlLiNnNiCmMiDfJiBfLiDiAiCpA_xHqqkZx_100%_xZkqqHx_jFfMiLeMiCmFiOoGjDlOiBeC_xHqqkZx_
			long lZoom100 = D2L(double(g_->lZoom256) / 2.56);
//----- 06.11.29 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//			if (nToScroll < 0)
//
//----- 06.11.29 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
			if ((0 < nToScroll && !g_pReg->GetIsZoomReverseCtrlWheel()) ||
				(nToScroll < 0 && g_pReg->GetIsZoomReverseCtrlWheel()))
//----- 06.11.29 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
			{
				// _xZkqqHx_iMlLiNnNiCmMiDfJiBfLiDiAjCgMiCoGiCoIiBeBiIoKiCmCiPkMiClDiCkCjCgMiCpAjBeJjBpAiBeC_xHqqkZx_
				long lNewZoom = D2L(double(FFGetLowerZoomValue(ID_VIEW_CMB_ZOOM, lZoom100)) * 2.56);
				PostMessage(WM_USER_SET_ZOOM256, TRUE, lNewZoom);
			} else
			{
				// _xZkqqHx_iMlLiNnNiCmMiDfJiBfLiDiAjCgMiCoGiCoIiBeBiIoKiCmCjBoFiCkLiCkCjCgMiCpAjBeJjBpAiBeC_xHqqkZx_
				long lNewZoom = D2L(double(FFGetUpperZoomValue(ID_VIEW_CMB_ZOOM, lZoom100)) * 2.56);
				PostMessage(WM_USER_SET_ZOOM256, TRUE, lNewZoom);
			}
		}
	} else
	if (nFlags & MK_SHIFT)
	//----- _xZkqqHx_iDfGiDhEiDgHiDeMiBfLiCkKiJjPiClDiCoKiCmEiCkCiCoKiCmOiJkBiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
	{
		SCROLLINFO oSCInfo;
		GetScrollInfo(SB_HORZ, &oSCInfo);
		int nScrPos  = oSCInfo.nPos;
		int nScrPage = oSCInfo.nPage;
		int nNewPos = nScrPos + nToScroll * nScrPage / 20;
		ScrollTo(D2L(nNewPos * m_dScrollRatioX), g_->lgOffsetY);
	} else
	//----- _xZkqqHx_iJlNiCoAiJjPiClDiCoKiCmEiCkCiCmIiCkPiCoKiCmOiPgDiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
	{
		SCROLLINFO oSCInfo;
		GetScrollInfo(SB_VERT, &oSCInfo);
		int nScrPos  = oSCInfo.nPos;
		int nScrPage = oSCInfo.nPage;
		int nNewPos = nScrPos + nToScroll * nScrPage / 20;
		ScrollTo(g_->lgOffsetX, D2L(nNewPos * m_dScrollRatioY));
	}
	// Superclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_
	return BASE_CLASS::OnMouseWheel(nFlags, zDelta, pt);
} // CFCDynamicDrawView::OnMouseWheel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditFindText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDgFiDeMiDfIiDgHiMjPiNpFiBhGiDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditFindText ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnFindText();
} // CFCDynamicDrawView::OnEditFindText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditFindText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDgFiDeMiDfIiDgHiMjPiNpFiBhGiDfCiDhNiDjDiDgIiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditFindText (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanFindText());
	pCmdUI->SetCheck(FCToolBase::IsFindDialogVisible());
} // CFCDynamicDrawView::OnUpdateEditFindText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditReplaceText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDgFiDeMiDfIiDgHjChFiKlHiBhGiDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditReplaceText ()
{
	// _xZkqqHx_iDgDiBfLiDiLiCmJiOhHiOkGiBeC_xHqqkZx_
	GetCurrentTool()->OnReplaceText();
} // CFCDynamicDrawView::OnEditReplaceText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditReplaceText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDgFiDeMiDfIiDgHjChFiKlHiBhGiDfCiDhNiDjDiDgIiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditReplaceText (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanReplaceText());
	pCmdUI->SetCheck(FCToolBase::IsReplaceDialogVisible());
} // CFCDynamicDrawView::OnUpdateEditReplaceText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnOptionLayerOrder
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDiMiDeDiDiEiBfLiCmMjAnNjCoIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnOptionLayerOrder ()
{
	GetCurrentTool()->OnLayerOrder();
} // CFCDynamicDrawView::OnOptionLayerOrder.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateOptionLayerOrder
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDiMiDeDiDiEiBfLiCmMjAnNjCoIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateOptionLayerOrder (CCmdUI* pCmdUI)
{
//----- 06.11.21 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////----- 05.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanLayerOrder());
////----- 05.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_jFlGiPjBiCkK_xHqqkZx_ReadOnly_xZkqqHx_iCmFiCkAiCmBiCmEiCoAiCgOiCgKiBeC_xHqqkZx_
//// 05.10.22 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////	pCmdUI->Enable(FFIsSheetReady());
//	pCmdUI->Enable(FFCanEditReadOnlyDocumentEnv());
////----- 05.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 06.11.21 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//----- 05.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
	pCmdUI->Enable(GetCurrentTool()->CanLayerOrder());
//----- 06.11.21 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::OnUpdateOptionLayerOrder.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnOptionSheetOrder
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfGiBfLiDgHiCmMjAnNjCoIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnOptionSheetOrder ()
{
//----- 01.01.21 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDfGiBfLiDgHiCmMjAnNjCoIiDfPiDeDiDeBiDiNiDePiCpAiLeOjDkOiBeC_xHqqkZx_
//	CFCDlgSheetOrder dlg;
//	dlg.SetSheetManager(m_pSheetManager);
//	dlg.DoModal();
//----- 01.01.21 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	GetCurrentTool()->OnSheetOrder();
//----- 01.01.21 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawView::OnOptionSheetOrder.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateOptionSheetOrder
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfGiBfLiDgHiCmMjAnNjCoIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateOptionSheetOrder (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanSheetOrder());
} // CFCDynamicDrawView::OnUpdateOptionSheetOrder.

//----- 06.11.01 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnOptionToolLock
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgDiBfLiDiLiDiNiDgCiDeOiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.11.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnOptionToolLock ()
{
	GetCurrentTool()->SetLockStatus(!GetCurrentTool()->GetLockStatus());
} // CFCDynamicDrawView::OnOptionToolLock.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateOptionToolLock
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDgDiBfLiDiLiDiNiDgCiDeOiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.11.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateOptionToolLock (CCmdUI* pCmdUI)
{
	if (!GetCurrentTool()->CanLockStatus())
	//----- _xZkqqHx_iDiNiDgCiDeOiCkKiCmFiCkLiCmIiCkCiDgDiBfLiDiLiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgDiBfLiDiLiCmMiDiNiDgCiDeOiCpAjFhDiJmCiCmJiBeC_xHqqkZx_
		pCmdUI->Enable(FALSE);
	} else
	//----- _xZkqqHx_iDiNiDgCiDeOiCmFiCkLiCoJiDgDiBfLiDiLiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgDiBfLiDiLiCmMiDiNiDgCiDeOiPpDjBnEiCpAjFfMiOkGiBeC_xHqqkZx_
		pCmdUI->SetCheck(GetCurrentTool()->GetLockStatus());
	}
} // CFCDynamicDrawView::OnUpdateOptionToolLock.
//----- 06.11.01 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 06.10.31 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnOptionMoveInUpperLayer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeKiDiMiDjDiDgHiDiMiDeDiDiEiBfLiCpAiIoKiCmCjBePjGmKiCnGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnOptionMoveInUpperLayer ()
{
	GetCurrentTool()->OnMoveInUpperLayer();
} // CFCDynamicDrawView::OnOptionMoveInUpperLayer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateOptionMoveInUpperLayer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeKiDiMiDjDiDgHiDiMiDeDiDiEiBfLiCpAiIoKiCmCjBePjGmKiCnGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateOptionMoveInUpperLayer (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanEditReadOnlyDocumentEnv() &&
					GetCurrentTool()->CanMoveInUpperLayer());
} // CFCDynamicDrawView::OnUpdateOptionMoveInUpperLayer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnOptionMoveInLowerLayer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeKiDiMiDjDiDgHiDiMiDeDiDiEiBfLiCpAiIoKiCmCjEhHjGmKiCnGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnOptionMoveInLowerLayer ()
{
	GetCurrentTool()->OnMoveInLowerLayer();
} // CFCDynamicDrawView::OnOptionMoveInLowerLayer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateOptionMoveInLowerLayer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeKiDiMiDjDiDgHiDiMiDeDiDiEiBfLiCpAiIoKiCmCjEhHjGmKiCnGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateOptionMoveInLowerLayer (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanEditReadOnlyDocumentEnv() &&
					GetCurrentTool()->CanMoveInLowerLayer());
} // CFCDynamicDrawView::OnUpdateOptionMoveInLowerLayer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnOptionMoveInNextSheet
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiOjPiCmMiDfGiBfLiDgHiCnGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnOptionMoveInNextSheet ()
{
	GetCurrentTool()->OnMoveInNextSheet();
} // CFCDynamicDrawView::OnOptionMoveInNextSheet.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateOptionMoveInNextSheet
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiOjPiCmMiDfGiBfLiDgHiCnGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateOptionMoveInNextSheet (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanBasicOperate() &&
					GetCurrentTool()->CanMoveInNextSheet());
} // CFCDynamicDrawView::OnUpdateOptionMoveInNextSheet.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnOptionMoveInPrevSheet
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBePiCmMiDfGiBfLiDgHiCnGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnOptionMoveInPrevSheet ()
{
	GetCurrentTool()->OnMoveInPrevSheet();
} // CFCDynamicDrawView::OnOptionMoveInPrevSheet.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateOptionMoveInPrevSheet
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBePiCmMiDfGiBfLiDgHiCnGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateOptionMoveInPrevSheet (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanBasicOperate() &&
					GetCurrentTool()->CanMoveInPrevSheet());
} // CFCDynamicDrawView::OnUpdateOptionMoveInPrevSheet.
//----- 06.10.31 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditClearSelect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBeJjBpAiCpAiJpAiPjMiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditClearSelect ()
{
	GetCurrentTool()->OnClearSelect();
} // CFCDynamicDrawView::OnEditClearSelect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditClearSelect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBeJjBpAiCpAiJpAiPjMiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditClearSelect (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanClearSelect());
} // CFCDynamicDrawView::OnUpdateEditClearSelect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditFindNextText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJlKjFpLiCpAiMjPiNpFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditFindNextText ()
{
	GetCurrentTool()->OnFindNextText();
} // CFCDynamicDrawView::OnEditFindNextText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditFindNextText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiJlKjFpLiCpAiMjPiNpFiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditFindNextText (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanFindNextText());
} // CFCDynamicDrawView::OnUpdateEditFindNextText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditFindPrevText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiPoDjFpLiCpAiMjPiNpFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditFindPrevText ()
{
	GetCurrentTool()->OnFindPrevText();
} // CFCDynamicDrawView::OnEditFindPrevText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditFindPrevText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiPoDjFpLiCpAiMjPiNpFiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditFindPrevText (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanFindPrevText());
} // CFCDynamicDrawView::OnUpdateEditFindPrevText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditReplaceNextText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjChFiKlHiMoDiJlKjFpLiCpAiMjPiNpFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditReplaceNextText ()
{
	GetCurrentTool()->OnReplaceNextText();
} // CFCDynamicDrawView::OnEditReplaceNextText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditReplaceNextText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjChFiKlHiMoDiJlKjFpLiCpAiMjPiNpFiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditReplaceNextText (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanReplaceNextText());
} // CFCDynamicDrawView::OnUpdateEditReplaceNextText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditReplacePrevText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjChFiKlHiMoDiPoDjFpLiCpAiMjPiNpFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditReplacePrevText ()
{
	GetCurrentTool()->OnReplacePrevText();
} // CFCDynamicDrawView::OnEditReplacePrevText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditReplacePrevText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjChFiKlHiMoDiPoDjFpLiCpAiMjPiNpFiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditReplacePrevText (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanReplacePrevText());
} // CFCDynamicDrawView::OnUpdateEditReplacePrevText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditReplaceTextAll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBfDiCmEiCpAjChFiKlHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditReplaceTextAll ()
{
	GetCurrentTool()->OnReplaceTextAll();
} // CFCDynamicDrawView::OnEditReplaceTextAll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditReplaceTextAll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBfDiCmEiCpAjChFiKlHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditReplaceTextAll (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanReplaceTextAll());
} // CFCDynamicDrawView::OnUpdateEditReplaceTextAll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditFindTextAll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBfDiCmEiCpAiMjPiNpFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditFindTextAll ()
{
	GetCurrentTool()->OnFindTextAll();
} // CFCDynamicDrawView::OnEditFindTextAll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditFindTextAll
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBfDiCmEiCpAiMjPiNpFiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditFindTextAll (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanFindTextAll());
} // CFCDynamicDrawView::OnUpdateEditFindTextAll.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditFindTextAllInSelect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBeJjBpAjCiGiCmMjFjEjFgJjBfDiCmEiCpAiMjPiNpFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditFindTextAllInSelect ()
{
	GetCurrentTool()->OnFindTextAllInSelect();
} // CFCDynamicDrawView::OnEditFindTextAllInSelect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditFindTextAllInSelect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBeJjBpAjCiGiCmMjFjEjFgJjBfDiCmEiCpAiMjPiNpFiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditFindTextAllInSelect (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanFindTextAllInSelect());
} // CFCDynamicDrawView::OnUpdateEditFindTextAllInSelect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditReplaceTextAllInSelect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBeJjBpAjCiGiCmMjFjEjFgJjBfDiCmEiCpAjChFiKlHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditReplaceTextAllInSelect ()
{
	GetCurrentTool()->OnReplaceTextAllInSelect();
} // CFCDynamicDrawView::OnEditReplaceTextAllInSelect.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditReplaceTextAllInSelect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBeJjBpAjCiGiCmMjFjEjFgJjBfDiCmEiCpAjChFiKlHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditReplaceTextAllInSelect (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanReplaceTextAllInSelect());
} // CFCDynamicDrawView::OnUpdateEditReplaceTextAllInSelect.

//----- 06.03.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextFullScreenEditMode
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFfHiPiAiDeHiDgGiDeCiDfOiDiCiBfLiDgIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnTextFullScreenEditMode ()
//{
//	GetRTFEditor()->SetFullScreenEditMode(!GetRTFEditor()->IsFullScreenEditMode());
//} // CFCDynamicDrawView::OnTextFullScreenEditMode.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextFullScreenEditMode
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFfHiPiAiDeHiDgGiDeCiDfOiDiCiBfLiDgIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateTextFullScreenEditMode (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocument());
//	pCmdUI->SetCheck(GetRTFEditor()->IsFullScreenEditMode());
//} // CFCDynamicDrawView::OnUpdateTextFullScreenEditMode.
//----- 06.03.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditSelectSameKindOfObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjDkPiOoNiCmMjFjEjFgJiCpAjBfDiCmEjBeJjBpAiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditSelectSameKindOfObject ()
{
	GetCurrentTool()->OnSelectSameKindOfObject();
} // CFCDynamicDrawView::OnEditSelectSameKindOfObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditSelectSameKindOfObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjDkPiOoNiCmMjFjEjFgJiCpAjBfDiCmEjBeJjBpAiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditSelectSameKindOfObject (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanSelectSameKindOfObject());
} // CFCDynamicDrawView::OnUpdateEditSelectSameKindOfObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnShowWindow
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMjFfMiOkGiPpDjBnEiCkKjFmPiNfIiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bShow	:_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAjFfMiOkGiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiClFiCnMiClHiBeC_xHqqkZx_
 *					 _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAjFfMiOkGiClHiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE _xZkqqHx_iCpAiBeBjEpBjFfMiOkGiCmJiClHiCoJ_xHqqkZx_
 *					 _xZkqqHx_iPoKiNiHiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiClFiCnMiClHiBeC_xHqqkZx_
 *			nStatus	:_xZkqqHx_jFfMiOkGiClHiCoJiDeFiDeCiDjDiDgIiDeFiCmMiPpDjBnEiCpAiOhHjCoIiClFiCnMiClHiBeC_xHqqkZx_
 *					 ShowWindow _xZkqqHx_iDiBiDjDiDgPiKnGjAjEiCkKiMmEiCnBiPgPiClDiCoKiBeBiDiBiDgCiDfKiBfLiDfHiCkK_xHqqkZx_
 *					 _xZkqqHx_jBjHiCoHiCoKiCoJiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iCmJiCmIiCoIiCnMiClHiBeC_xHqqkZx_
 *					 _xZkqqHx_iClLiCoKiImIiKePiCmMiPoKiNiHiCmNiBeB_xHqqkZx_nStatus _xZkqqHx_iCmNiOjPiCmMjCgMiCmMiCkCiClIiCoKiCkJiCmJiCmIiCoIiCnMiClHiBeC_xHqqkZx_ 
 *				SW_PARENTCLOSING	:_xZkqqHx_jAgFiDeFiDeCiDjDiDgIiDeFiCkKiDeOiDiNiBfLiDfJ_xHqqkZx_ (_xZkqqHx_iDeBiDeDiDfCiDjDiJlL_xHqqkZx_) 
 *									 _xZkqqHx_iClDiCoKiCoJiCkJiBeBiDhMiDgCiDhGiDeBiDgCiDhG_xHqqkZx_ _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkK_xHqqkZx_
 *									 _xZkqqHx_jEpBjFfMiOkGiCmJiCmIiCoIiCnMiClHiBeC_xHqqkZx_
 *				SW_PARENTOPENING	:_xZkqqHx_jAgFiDeFiDeCiDjDiDgIiDeFiCkKiDeJiBfLiDhGiDjD_xHqqkZx_ (_xZkqqHx_jFfMiOkG_xHqqkZx_) _xZkqqHx_iClDiCoKiCoJiCkJiBeB_xHqqkZx_
 *									 _xZkqqHx_iDhMiDgCiDhGiDeBiDgCiDhG_xHqqkZx_ _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiClDiCoKiCnMiClHiBeC_xHqqkZx_ 
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnShowWindow (BOOL bShow, UINT nStatus)
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	CView::OnShowWindow(bShow, nStatus);
	// _xZkqqHx_jChOjAmPiClDiCoKiCmEiCkCiCoJiDiBiDgCiDfKiBfLiDfHiCpAiPiIjHjNiBeC_xHqqkZx_
// 03.07.17 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	if (bShow) FFNotifyPendingMessage();
	FFNotifyPendingMessage(this, bShow);
} // CFCDynamicDrawView::OnShowWindow.

//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextBothCodeFontBold
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBlOiOjKiBhGiDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iMlLiNnNiDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCmFjBeJjBpAiClFiCmEiCkCiCoJjEmNiImNiCpAjBlOiOjKiCmJiClFiClNiCoIiBeBjFfHiPiAiCmJ_xHqqkZx_
 *			_xZkqqHx_jGnPiClFiClNiCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextBothCodeFontBold ()
{
	if (GetCurrentTextBothFontWeight() != WORD(-1) &&
		FW_REGULAR < GetCurrentTextBothFontWeight())
		SetCurrentTextBothFontWeight(FW_REGULAR);
	else
		SetCurrentTextBothFontWeight(FW_BOLD);
} // CFCDynamicDrawView::OnTextBothCodeFontBold.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextBothCodeFontBold
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBlOiOjKiBhGiDfCiDhNiDjDiDgIiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextBothCodeFontBold (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanBasicOperate() &&
					GetCurrentTool()->CanSetCurrentTextFont());
	pCmdUI->SetRadio(	GetCurrentTextBothFontWeight() != WORD(-1) &&
						FW_REGULAR < GetCurrentTextBothFontWeight());
} // CFCDynamicDrawView::OnUpdateTextBothCodeFontBold.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextBothCodeFontItalic
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDeDiDfOiDiKiDgCiDeOiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextBothCodeFontItalic ()
{
	SetIsCurrentTextBothFontItalic(!GetIsCurrentTextBothFontItalic());
} // CFCDynamicDrawView::OnTextBothCodeFontItalic.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextBothCodeFontItalic
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDeDiDfOiDiKiDgCiDeOiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextBothCodeFontItalic (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanBasicOperate() &&
					GetCurrentTool()->CanSetCurrentTextFont());
	pCmdUI->SetRadio(GetIsCurrentTextBothFontItalic());
} // CFCDynamicDrawView::OnUpdateTextBothCodeFontItalic.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextBothCodeFontUnderline
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiJlKjApMiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextBothCodeFontUnderline ()
{
	SetIsCurrentTextBothFontUnderline(!GetIsCurrentTextBothFontUnderline());
} // CFCDynamicDrawView::OnTextBothCodeFontUnderline.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextBothCodeFontUnderline
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiJlKjApMiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextBothCodeFontUnderline (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanBasicOperate() &&
					GetCurrentTool()->CanSetCurrentTextFont());
	pCmdUI->SetRadio(GetIsCurrentTextBothFontUnderline());
} // CFCDynamicDrawView::OnUpdateTextBothCodeFontUnderline.
//----- 06.10.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 05.07.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextBothCodeFontBold
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBlOiOjKiBhGiDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iMlLiNnNiDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCmFjBeJjBpAiClFiCmEiCkCiCoJjEmNiImNiCpAjBlOiOjKiCmJiClFiClNiCoIiBeBjFfHiPiAiCmJ_xHqqkZx_
// *			_xZkqqHx_jGnPiClFiClNiCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnTextBothCodeFontBold ()
//{
//	if (GetCurrentTool()->GetCurrentTextBothFontWeight() != WORD(-1) &&
//		FW_REGULAR < GetCurrentTool()->GetCurrentTextBothFontWeight())
//		GetCurrentTool()->SetCurrentTextBothFontWeight(FW_REGULAR);
//	else
//		GetCurrentTool()->SetCurrentTextBothFontWeight(FW_BOLD);
//} // CFCDynamicDrawView::OnTextBothCodeFontBold.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextBothCodeFontBold
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBlOiOjKiBhGiDfCiDhNiDjDiDgIiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateTextBothCodeFontBold (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(	FFCanBasicOperate() &&
//					GetCurrentTool()->CanSetCurrentTextFont());
//	pCmdUI->SetRadio(	GetCurrentTool()->GetCurrentTextBothFontWeight() != WORD(-1) &&
//						FW_REGULAR < GetCurrentTool()->GetCurrentTextBothFontWeight());
//	if (pCmdUI->m_pMenu != NULL) pCmdUI->m_pMenu->DeleteMenu(pCmdUI->m_nID, MF_BYCOMMAND);
//} // CFCDynamicDrawView::OnUpdateTextBothCodeFontBold.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextBothCodeFontItalic
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDeDiDfOiDiKiDgCiDeOiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnTextBothCodeFontItalic ()
//{
//	GetCurrentTool()->SetIsCurrentTextBothFontItalic(!GetCurrentTool()->GetIsCurrentTextBothFontItalic());
//} // CFCDynamicDrawView::OnTextBothCodeFontItalic.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextBothCodeFontItalic
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDeDiDfOiDiKiDgCiDeOiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateTextBothCodeFontItalic (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(	FFCanBasicOperate() &&
//					GetCurrentTool()->CanSetCurrentTextFont());
//	pCmdUI->SetRadio(GetCurrentTool()->GetIsCurrentTextBothFontItalic());
//	if (pCmdUI->m_pMenu != NULL) pCmdUI->m_pMenu->DeleteMenu(pCmdUI->m_nID, MF_BYCOMMAND);
//} // CFCDynamicDrawView::OnUpdateTextBothCodeFontItalic.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextBothCodeFontUnderline
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiJlKjApMiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnTextBothCodeFontUnderline ()
//{
//	GetCurrentTool()->SetIsCurrentTextBothFontUnderline(!GetCurrentTool()->GetIsCurrentTextBothFontUnderline());
//} // CFCDynamicDrawView::OnTextBothCodeFontUnderline.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextBothCodeFontUnderline
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiJlKjApMiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCDynamicDrawView::OnUpdateTextBothCodeFontUnderline (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(	FFCanBasicOperate() &&
//					GetCurrentTool()->CanSetCurrentTextFont());
//	pCmdUI->SetRadio(GetCurrentTool()->GetIsCurrentTextBothFontUnderline());
//	if (pCmdUI->m_pMenu != NULL) pCmdUI->m_pMenu->DeleteMenu(pCmdUI->m_nID, MF_BYCOMMAND);
//} // CFCDynamicDrawView::OnUpdateTextBothCodeFontUnderline.
//----- 05.07.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextInflateFontSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDhEiDeIiDjDiDgHiCpAiKgHjBoFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextInflateFontSize ()
{
	GetCurrentTool()->OnTextInflateFontSize();
} // CFCDynamicDrawView::OnTextInflateFontSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextInflateFontSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDhEiDeIiDjDiDgHiCpAiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextInflateFontSize (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanBasicOperate() &&
					GetCurrentTool()->CanSetCurrentTextFont());
//	if (pCmdUI->m_pMenu != NULL) pCmdUI->m_pMenu->DeleteMenu(pCmdUI->m_nID, MF_BYCOMMAND);
} // CFCDynamicDrawView::OnUpdateTextInflateFontSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextDeflateFontSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDhEiDeIiDjDiDgHiCpAiPgLiPkMiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextDeflateFontSize ()
{
	GetCurrentTool()->OnTextDeflateFontSize();
} // CFCDynamicDrawView::OnTextDeflateFontSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextDeflateFontSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDhEiDeIiDjDiDgHiCpAiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextDeflateFontSize (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanBasicOperate() &&
					GetCurrentTool()->CanSetCurrentTextFont());
//	if (pCmdUI->m_pMenu != NULL) pCmdUI->m_pMenu->DeleteMenu(pCmdUI->m_nID, MF_BYCOMMAND);
} // CFCDynamicDrawView::OnUpdateTextDeflateFontSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnTextRotateBackgroundColor
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCmMjEhHiMgJjAeGiCpAjFmPiNfIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnTextRotateBackgroundColor ()
{
	//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiPpDjBnEiCmMiPoKiNiH_xHqqkZx_ -----
	if (GetRTFEditor()->IsWindowVisible())
		GetRTFEditor()->RotateBackgroundColor();
} // CFCDynamicDrawView::OnTextRotateBackgroundColor.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateTextRotateBackgroundColor
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCmMjEhHiMgJjAeGiCpAjFmPiNfIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateTextRotateBackgroundColor (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->IsEditingText());
} // CFCDynamicDrawView::OnUpdateTextRotateBackgroundColor.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditSelectNext
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiOjPiCpAjBeJjBpAiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditSelectNext ()
{
	GetCurrentTool()->OnSelectNext();
} // CFCDynamicDrawView::OnEditSelectNext.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditSelectNext
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiOjPiCpAjBeJjBpAiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditSelectNext (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanBasicOperate() &&
					GetCurrentTool()->CanSelectNext());
} // CFCDynamicDrawView::OnUpdateEditSelectNext.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditPasteOverAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjFjEjFgJiCmMjBkOjAkLiCpAjDfMiCoIjFhEiCkPiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditPasteOverAs ()
{
	GetCurrentTool()->OnPasteOverAs();
} // CFCDynamicDrawView::OnEditPasteOverAs.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditPasteOverAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjFjEjFgJiCmMjBkOjAkLiCpAjDfMiCoIjFhEiCkPiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditPasteOverAs (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(	FFCanEditSelected() &&
					GetCurrentTool()->CanPasteOverAs());
} // CFCDynamicDrawView::OnUpdateEditPasteOverAs.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditCopyText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDgFiDeMiDfIiDgHiCpAiDfCiDhDiBfLiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditCopyText ()
{
	GetCurrentTool()->OnCopyText();
} // CFCDynamicDrawView::OnEditCopyText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditCopyText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDgFiDeMiDfIiDgHiCpAiDfCiDhDiBfLiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditCopyText (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanCopyText());
} // CFCDynamicDrawView::OnUpdateEditCopyText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditPasteSpecial
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiMgAiOkOiCpAjBeJjBpAiClFiCmEjDfMiCoIjFhEiCkPiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditPasteSpecial ()
{
	// _xZkqqHx_iDiKiDjDiDeOjDfMiCoIjFhEiCkPiCmNiLnGiClGiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDiKiDjDiDeOjDfMiCoIjFhEiCkPiCmJiClHiCoJiCmGiBeB_xHqqkZx_DD4_xZkqqHx_jFnCiPfHjCiGiCmJjBlMiCmMiDeBiDhGiDiKiCmF_xHqqkZx_OLE_xZkqqHx_iDgGiBfLiDfOiCmM_xHqqkZx_
	// _xZkqqHx_jFnCiPfHiCkKjDkPiOjOiCmJiCmFiCkLiCmEiClFiCnMiCkEiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiClNiCnPiBeB_xHqqkZx_DD4_xZkqqHx_iDhEiDeAiDeDiDiLiPeJjHlJiOjOiCmJiCoAiBeB_xHqqkZx_OLE_xZkqqHx_iDgGiBfLiDfOjFnCiPfHiPpDjBnEiCkKiInLiOjNiClDiCoKiCmE_xHqqkZx_
	// ~FCObjOle_xZkqqHx_iCmFiDeHiDiJiBfLiCkKjEkNjAlGiClHiCoJiBeC_xHqqkZx_
	// Undo_xZkqqHx_iCoAiCkEiCnMiCkNiNhDiCkJiCmIiCkNiCmIiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iCnMiClNiBeBjHjKjHpAjFlGiPjBiCmMiBeBjFnCiPfHiLeMjIfOiCpAjBfDiCmEiOgDiClHiBeBiCmGiCkCiCkEiKfEjEePiCkJiCoHiKePiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_

	// _xZkqqHx_iMgAiOkOiCpAiOhHjCoIiClFiCmEjDfMiCoIjFhEiCkPiDfPiDeDiDeBiDiNiDePiBeC_xHqqkZx_
// 06.03.15 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	COlePasteSpecialDialog dlg;
	CFCPasteSpecialDialog dlg;
	// _xZkqqHx_iDeBiDeDiDfCiDjDjFfMiOkGiCmMiDgAiDeGiDgCiDeOiDhLiDfOiDjDiCpAiPmBiClHiBeC_xHqqkZx_
	dlg.m_ps.dwFlags |= PSF_DISABLEDISPLAYASICON;
	// _xZkqqHx_iKgHjCkDiDiBiDfOiDhEiDeAiDeDiDiLiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(CF_ENHMETAFILE))
	{
		// _xZkqqHx_iKgHjCkDiDiBiDfOiDhEiDeAiDeDiDiLiCkKiDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmJjBlGiNnNiClFiCmIiCkCiPoKiNiHiCmFiCoAiBeB_xHqqkZx_
		// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLiCkKjBlGiNnNiClHiCoKiCmO_xHqqkZx_ IsClipboardFormatAvailable(CF_ENHMETAFILE)
		// _xZkqqHx_iCmN_xHqqkZx_TRUE_xZkqqHx_iCmJiCmIiCmBiCmEiClFiCnMiCkEiBeCiClBiCmMiClNiCnPiBeBiDiBiDfOiDhEiDeAiDeDiDiLiCoAjDgPjIfOiClHiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
		dlg.AddFormat(	CF_ENHMETAFILE, TYMED_ENHMF, IDS_CF_NAME_ENHMETAFILE,
						FALSE, FALSE);
		dlg.AddFormat(	CF_METAFILEPICT, TYMED_MFPICT, AFX_IDS_METAFILE_FORMAT,
						FALSE, FALSE);
	}
	// UNICODE_xZkqqHx_iDgFiDeMiDfIiDgHiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(CF_UNICODETEXT))
		dlg.AddFormat(	CF_UNICODETEXT, TYMED_HGLOBAL, IDS_CF_NAME_UNICODETEXT,
						FALSE, FALSE);
	// _xZkqqHx_iDgFiDeMiDfIiDgHiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(CF_TEXT))
		dlg.AddFormat(	CF_TEXT, TYMED_HGLOBAL, AFX_IDS_TEXT_FORMAT,
						FALSE, FALSE);
	// RTF_xZkqqHx_iCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(g_cfRTF))
		dlg.AddFormat(	g_cfRTF, TYMED_HGLOBAL, AFX_IDS_RTF_FORMAT,
						FALSE, FALSE);
	// CSV Unicode_xZkqqHx_iCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(g_cfCsvUnicodeText))
		dlg.AddFormat(	CF_UNICODETEXT, TYMED_HGLOBAL, IDS_CF_NAME_CSV_UNICODETEXT,
						FALSE, FALSE);
	// CSV_xZkqqHx_iCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(g_cfCsvText))
		dlg.AddFormat(	CF_TEXT, TYMED_HGLOBAL, IDS_CF_NAME_CSV_TEXT,
						FALSE, FALSE);
	// OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(g_cfEmbeddedObject))
		dlg.AddFormat(	g_cfEmbeddedObject,
						TYMED_ISTORAGE, AFX_IDS_EMBED_FORMAT,
						FALSE, FALSE);
	// OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(g_cfEmbedSource))
		dlg.AddFormat(	g_cfEmbedSource,
						TYMED_ISTORAGE, AFX_IDS_EMBED_FORMAT,
						FALSE, FALSE);
//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiDiKiDjDiDeOiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
//	if (GetCurrentTool()->CanPasteSpec(g_cfLinkSource))
//		dlg.AddFormat(	g_cfLinkSource,
//						TYMED_ISTREAM, AFX_IDS_LINKSOURCE_FORMAT,
//						FALSE, TRUE);
//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// DIB_xZkqqHx_iCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(CF_DIB))
		dlg.AddFormat(	CF_DIB,
						TYMED_HGLOBAL,
						AFX_IDS_DIB_FORMAT,
						FALSE, FALSE);
	// BITMAP_xZkqqHx_iCmMiDhEiDeIiBfLiDhNiDgCiDgHiCkKjBeJjBpAiCmFiCkLiCoJiCoGiCkEiCmJjDgPjIfOiBeC_xHqqkZx_
	if (GetCurrentTool()->CanPasteSpec(CF_DIB))
		dlg.AddFormat(	CF_BITMAP,
						TYMED_GDI,
						AFX_IDS_BITMAP_FORMAT,
						FALSE, FALSE);
//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	if (dlg.DoModal() == IDOK)
	//----- OK_xZkqqHx_iDhLiDfOiDjDiCmMiPoKiNiH_xHqqkZx_ -----
	{
		CLIPFORMAT cf = dlg.m_ps.arrPasteEntries[dlg.m_ps.nSelectedIndex].fmtetc.cfFormat;
		// _xZkqqHx_jBeJjBpAiClDiCoKiCmEiCkCiCoJiDeBiDeDiDgFiDiAiCmMjFlGiOjKjHpBiCpAiNoMjAkMiBeC_xHqqkZx_
		CString strSelected;
		strSelected.Format(	_T("%s\n%s"),
							dlg.m_ps.arrPasteEntries[dlg.m_ps.nSelectedIndex].lpstrFormatName,
							dlg.m_ps.arrPasteEntries[dlg.m_ps.nSelectedIndex].lpstrResultText);
		if (cf == CF_UNICODETEXT)
		{
			CString strCsvUnicodeText;
			strCsvUnicodeText.LoadString(IDS_CF_NAME_CSV_UNICODETEXT);
			if (strSelected == strCsvUnicodeText)
				cf = g_cfCsvUnicodeText;
		} else
		if (cf == CF_TEXT)
		{
			CString strCsvText;
			strCsvText.LoadString(IDS_CF_NAME_CSV_TEXT);
			if (strSelected == strCsvText)
				cf = g_cfCsvText;
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		} else
		if (cf == g_cfRTF)
		//----- RTF _xZkqqHx_iCkKiOhHjCoIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
		{
			// DD4_xZkqqHx_iDgFiDeMiDfIiDgHiCkKjDfMiCoIjFhEiCkPiJmCjEfMiCmIiCoHiBeBiClLiClPiCoHiCpAjBeJjBpAiBeC_xHqqkZx_
			if (IsClipboardFormatAvailable(g_cfDDText))
				cf = g_cfDDText;
		}
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		CClientDC dc(this);
		OnPrepareDC(&dc, NULL);
		GetCurrentTool()->OnPasteSpec(&dc, cf);
	}
} // CFCDynamicDrawView::OnEditPasteSpecial.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditPasteSpecial
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiMgAiOkOiCpAjBeJjBpAiClFiCmEjDfMiCoIjFhEiCkPiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditPasteSpecial (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanPasteSpec(0));
} // CFCDynamicDrawView::OnUpdateEditPasteSpecial.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnEditExchangeHeadTail
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiOgOjDfPiCmGiPeJjDfPiCmMjBkOjAkLiCpAiMpAiKlHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.10.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnEditExchangeHeadTail ()
{
	GetCurrentTool()->OnExchangeHeadTail();
} // CFCDynamicDrawView::OnEditExchangeHeadTail.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateEditExchangeHeadTail
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiOgOjDfPiCmGiPeJjDfPiCmMjBkOjAkLiCpAiMpAiKlHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDfCiDhNiDjDiDgIiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClFiCmEjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.10.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateEditExchangeHeadTail (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && GetCurrentTool()->CanExchangeHeadTail());
} // CFCDynamicDrawView::OnUpdateEditExchangeHeadTail.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnViewUnlinkMarkShowMode
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjGkCiDiKiDjDiDeOiDhNiBfLiDeOiCpAjFfMiOkGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.04.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnViewUnlinkMarkShowMode ()
{
	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCpAjAnNjCoIiBeC_xHqqkZx_
	g_pReg->SetIsShowUnlinkMark(!g_pReg->GetIsShowUnlinkMark());
	// _xZkqqHx_iNmEjFgAiJoGiBeC_xHqqkZx_
	SendRgnRedraw(TRUE);
} // CFCDynamicDrawView::OnViewUnlinkMarkShowMode.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawView::OnUpdateViewUnlinkMarkShowMode
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjGkCiDiKiDjDiDeOiDhNiBfLiDeOiCpAjFfMiOkGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDfCiDhNiDjDiDgIiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClFiCmEjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.04.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawView::OnUpdateViewUnlinkMarkShowMode (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened());
	pCmdUI->SetCheck(g_pReg->GetIsShowUnlinkMark());
} // CFCDynamicDrawView::OnUpdateViewUnlinkMarkShowMode.
