// ChipEditorFrame.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "ToolManager.h"		// For FCToolManager.
#include "DynamicDrawView.h"		// For g_pView.
#include "DlgChipDuty.h"		// For CFCDlgChipDuty.
// 01.07.11 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
#include "DlgPictArrowSelect.h"	// For CFCDlgPictArrowSelect.
#include "ChipEditorFrame.h"	// This header.

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

// Superclass_xZkqqHx_iCmMjCoIiLgAiBeC_xHqqkZx_

//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//// _xZkqqHx_iLeOjDkOiMlDiCmM_xHqqkZx_MolipDraw_xZkqqHx_iCmMiDhEiDiMiBfLiDiAiDgOiDjDiDgIiDiLiBeC_xHqqkZx_
//HWND CFCChipEditorFrame::m_hwndMasterAppFrame = NULL;
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//// ChipEditor_xZkqqHx_jHhAiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
//CFCChipEditorFrame* g_pChipEditorFrame = NULL;
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCChipEditorFrame

IMPLEMENT_DYNCREATE(CFCChipEditorFrame, CFCCommonEditorFrame)

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::CFCChipEditorFrame
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCChipEditorFrame::CFCChipEditorFrame ()
{
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// ChipEditor_xZkqqHx_jHhAiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
//	g_pChipEditorFrame = this;
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCChipEditorFrame::CFCChipEditorFrame().

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::~CFCChipEditorFrame
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCChipEditorFrame::~CFCChipEditorFrame ()
{
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// ChipEditor_xZkqqHx_jHhAiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
//	g_pChipEditorFrame = NULL;
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCChipEditorFrame::~CFCChipEditorFrame().


BEGIN_MESSAGE_MAP(CFCChipEditorFrame, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCChipEditorFrame)
	ON_COMMAND(ID_CHIPEDIT_SET_DUTY, OnChipeditSetDuty)
	ON_UPDATE_COMMAND_UI(ID_CHIPEDIT_SET_DUTY, OnUpdateChipeditSetDuty)
	ON_WM_CREATE()
//	ON_COMMAND(ID_OPTION_ENV, OnOptionEnv)
	ON_COMMAND(ID_GRAPHICS_EDIT_PICT_ARROW, OnGraphicsEditPictArrow)
	ON_UPDATE_COMMAND_UI(ID_GRAPHICS_EDIT_PICT_ARROW, OnUpdateGraphicsEditPictArrow)
	//}}AFX_MSG_MAP
	ON_UPDATE_COMMAND_UI(ID_VIEW_TOOLBAR_CHIP_EDIT, BASE_CLASS::OnUpdateViewToolbars)
	ON_COMMAND_EX(ID_VIEW_TOOLBAR_CHIP_EDIT, BASE_CLASS::OnViewToolbars)
	ON_UPDATE_COMMAND_UI(ID_VIEW_TOOLBAR_CHIP_TOOLS, BASE_CLASS::OnUpdateViewToolbars)
	ON_COMMAND_EX(ID_VIEW_TOOLBAR_CHIP_TOOLS, BASE_CLASS::OnViewToolbars)
	ON_UPDATE_COMMAND_UI(ID_VIEW_TOOLBAR_CHIP_TOOLS2, BASE_CLASS::OnUpdateViewToolbars)
	ON_COMMAND_EX(ID_VIEW_TOOLBAR_CHIP_TOOLS2, BASE_CLASS::OnViewToolbars)
	ON_UPDATE_COMMAND_UI(ID_VIEW_TOOLBAR_CHIP_DUTY, BASE_CLASS::OnUpdateViewToolbars)
	ON_COMMAND_EX(ID_VIEW_TOOLBAR_CHIP_DUTY, BASE_CLASS::OnViewToolbars)
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_UPDATE_COMMAND_UI(ID_VIEW_TOOLBAR_PEN_BRUSH, BASE_CLASS::OnUpdateViewToolbars)
//	ON_COMMAND_EX(ID_VIEW_TOOLBAR_PEN_BRUSH, BASE_CLASS::OnViewToolbars)
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_UPDATE_COMMAND_UI(ID_VIEW_TOOLBAR_TEXT, BASE_CLASS::OnUpdateViewToolbars)
//	ON_COMMAND_EX(ID_VIEW_TOOLBAR_TEXT, BASE_CLASS::OnViewToolbars)
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
// 01.01.06 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	ON_MESSAGE(WM_USER_OBJ_SELECT_CHANGED, OnUserObjSelectChanged)
	ON_MESSAGE(WM_USER_CURRENT_TOOL_CHANGED, OnUserCurrentToolChanged)
// 01.03.08 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	ON_MESSAGE(WM_USER_CMD_SESSION_ENDED, OnUserCmdSessionEnded)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCChipEditorFrame _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnUpdateSelected
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCChipEditorFrame::OnUpdateSelected ()
//{
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	BASE_CLASS::OnUpdateSelected();
//	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiDeJiDhFiDfHiDeGiDeOiDgHiCkKjBlGiNnNiClFiCmIiCkCiCmIiCoHiCmOjFjMiLeBiBeCiDeBiDhGiDiKiPeJjHlJiOjOjDjJiCmJiBeCiBeC_xHqqkZx_
//	if (!::IsWindow(m_hWnd)) return;
//	// _xZkqqHx_jBeJjBpAjFmPiNfIiCpAjGpAiKiEjFfMiOkGiDgDiBfLiDiLiDgPiBfLiCmJjCmKjCgNiBeC_xHqqkZx_
//	m_wndToolChipDuty.ObjSelectNotify();
//} // CFCChipEditorFrame::OnUpdateSelected.
//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::DeleteContents
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	Document::DeleteContents_xZkqqHx_iCkJiCoHiOmAiNhDiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCChipEditorFrame::DeleteContents ()
//{
//	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
//	BASE_CLASS::DeleteContents();
//	// _xZkqqHx_jGpAiKiEjFfMiOkGiDgDiBfLiDiLiDgPiBfLiCmJjCmKjCgNiBeC_xHqqkZx_
//	DutyTblUpdateNotify();
//} // CFCChipEditorFrame::DeleteContents.
//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::DutyTblUpdateNotify
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jGpAiKiEiDgFiBfLiDhFiDiLiCkKiNfIjAfGiClDiCoKiClNiOjOiBeB_xHqqkZx_CFCChipEditorDoc_xZkqqHx_iCkJiCoHjCmKjCgNiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCChipEditorFrame::DutyTblUpdateNotify ()
//{
//	// _xZkqqHx_jGpAiKiEjFfMiOkGiDgDiBfLiDiLiDgPiBfLiCmJjCmKjCgNiBeC_xHqqkZx_
//	m_wndToolChipDuty.DutyTblUpdateNotify();
//} // CFCChipEditorFrame::DutyTblUpdateNotify.
//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::SetMasterAppFrame
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgAiDgCiDhGiDeHiDgGiDeCiDfOiLeOjDkOiMlDiCmMiDeBiDhGiDiKiCmM_xHqqkZx_CommonDrawFrame_xZkqqHx_iCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	hwnd	:_xZkqqHx_iLeOjDkOiMlDiDeBiDhGiDiKiDhEiDiMiBfLiDiAiCmMiDgOiDjDiDgIiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCChipEditorFrame::SetMasterAppFrame (HWND hwnd)
//{
//	m_hwndMasterAppFrame = hwnd;
//} // CFCChipEditorFrame::SetMasterAppFrame.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::GetMasterAppFrame
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgAiDgCiDhGiDeHiDgGiDeCiDfOiLeOjDkOiMlDiCmMiDeBiDhGiDiKiCmM_xHqqkZx_CommonDrawFrame_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iLeOjDkOiMlDiDeBiDhGiDiKiDhEiDiMiBfLiDiAiCmMiDgOiDjDiDgIiDiLiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//HWND CFCChipEditorFrame::GetMasterAppFrame ()
//{
//	return m_hwndMasterAppFrame;
//} // CFCChipEditorFrame::GetMasterAppFrame.
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::PostOnCreate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OnCreate_xZkqqHx_iKnGjAjEiCmMiOmAiNhDjClMiMoDiCmJiMmEiCnBiPgPiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpCreateStruct	: _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiPiJiKpKiJlLiKgFiOoNjFmPjAjEiCmMiNfMjBkCjBmMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	CFCMainFrame_xZkqqHx_iDeOiDiJiDfIiCkJiCoHiBeB_xHqqkZx_CFCDynamicDrawFrame/CFCChipEditorFrame_xZkqqHx_iCkK_xHqqkZx_
 *			_xZkqqHx_jFkKiKpCiClFiClNiOjOiCmJiBeB_xHqqkZx_OnDestroy_xZkqqHx_iCkJiCoHjFkKjHkDiClHiCoJjFeLjHhGiCkKiCkAiCmBiClNiPiIjHjNiCpA_xHqqkZx_
 *			_xZkqqHx_iClBiCmMiKnGjAjEiCmJiInKjDkOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCChipEditorFrame::PostOnCreate (CFrameWnd* pWndFrame)
{
//----- 00.12.29 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::PostOnCreate(pWndFrame);
//----- 00.12.29 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 04.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	//----- _xZkqqHx_jFfHiPiAiDgDiBfLiDiLiDgPiBfLiCpAiNoMjAkM_xHqqkZx_ -----
//	if (!CreateDockToolBar(m_wndToolBar, pWndFrame,
//							ID_VIEW_TOOLBAR_CHIP_EDIT,
//							IDR_CHIP_EDIT, IDS_CHIP_EDIT)) return;
//	// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCmMiPiJiKpKiJlLiBeCiDfJiBfLiDiAiDfCiDjDiDhLiDhLiDgCiDeOiDfIjDjJiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
//	m_wndToolBar.Init();
//----- 04.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	//----- _xZkqqHx_jFnCiPfHiBeFiNoMjAkMiDgDiBfLiDiLiDgDiBfLiDiLiDgPiBfLiCpAiNoMjAkM_xHqqkZx_ -----
	if (!CreateDockToolBar(	m_wndToolBoxBar,
							pWndFrame,
							ID_VIEW_TOOLBAR_CHIP_TOOLS))
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//							IDR_CHIP_TOOLBOX))
		return;
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHjBjHiCoIjAoGiCpAjAnNjCoIiBeC_xHqqkZx_
	m_wndToolBoxBar.SetMessageWnd(g_pView);

//----- 00.09.30 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	if (!CreateDockToolBar(	m_wndToolBox2Bar,
							pWndFrame,
							ID_VIEW_TOOLBAR_CHIP_TOOLS2))
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//							IDR_CHIP_TOOLBOX2))
		return;
	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHjBjHiCoIjAoGiCpAjAnNjCoIiBeC_xHqqkZx_
	m_wndToolBox2Bar.SetMessageWnd(g_pView);
//----- 00.09.30 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDgDiBfLiDiLiDgPiBfLiCmMiNoMjAkMiLhJiCnBiDgIiDgCiDeMiDjDiDePiPiIjHjN_xHqqkZx_ -----
//	if (!CreateDockToolBar(m_tolBrText, pWndFrame,
//							ID_VIEW_TOOLBAR_TEXT, IDR_COMMON_TEXT)) return;
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.03.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	//----- _xZkqqHx_iDeKiDiJiBfLiDgFiBfLiDhFiDiLiDgDiBfLiDiLiDgPiBfLiCmMiNoMjAkMiLhJiCnBiDgIiDgCiDeMiDjDiDePiPiIjHjN_xHqqkZx_ -----
//	// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiPiJiKpKiJlLiBeC_xHqqkZx_
//	if (!CreateDockToolBar(m_tolBrPenBrush, pWndFrame,
//							ID_VIEW_TOOLBAR_PEN_BRUSH, IDR_COMMON_PEN_BRUSH)) return;
//	m_tolBrPenBrush.Init();
//----- 01.03.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	//----- _xZkqqHx_iDgAiDgCiDhGjGpAiKiEiDgDiBfLiDiLiDgPiBfLiCpAiNoMjAkM_xHqqkZx_ -----
	// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiPiJiKpKiJlLiBeC_xHqqkZx_
	if (!CreateDockToolBar(	m_wndToolChipDuty,
							pWndFrame,
							ID_VIEW_TOOLBAR_CHIP_DUTY))
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//							IDR_CHIP_DUTY))
		return;
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	m_wndToolChipDuty.Initialize();

//----- 00.12.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	BASE_CLASS::PostOnCreate(pWndFrame);
//----- 00.12.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCChipEditorFrame::PostOnCreate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::GetZoomToolBarInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDeDiDjDiDgDiBfLiDiLiDgPiBfLiCmMiPiJiKpKiJlLiCmJjFeLjHhGiCmIiPoOjFpBiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	idCmd	:_xZkqqHx_iDgPiBfLiCmJiKiEiCoIjAfFiCoJiDfCiDhNiDjDiDgI_xHqqkZx_ID_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
// *			idRes	:_xZkqqHx_iDgPiBfLiCkKiDiNiBfLiDgIiClHiCoJiDgDiBfLiDiLiDgPiBfLiDiKiDfMiBfLiDfIiCmM_xHqqkZx_ID_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *			idStr	:_xZkqqHx_iDgPiBfLiCkKiDiNiBfLiDgIiClHiCoJiDfOiDeDiDgHiDiLiDiKiDfMiBfLiDfIiCmM_xHqqkZx_ID_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.06.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
//----- 06.10.30 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//void CFCChipEditorFrame::GetZoomToolBarInfo (DWORD& idCmd,
//										DWORD& idRes,
//										DWORD& idStr) const
//----- 06.10.30 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
void CFCChipEditorFrame::GetZoomToolBarInfo (DWORD& idCmd) const
//----- 06.10.30 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
{
	idCmd = ID_VIEW_TOOLBAR_CHIP_EDIT;
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	idRes = IDR_CHIP_EDIT;
//	idStr = IDS_CHIP_EDIT;
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCChipEditorFrame::GetZoomToolBarInfo.

/////////////////////////////////////////////////////////////////////////////
// CFCChipEditorFrame _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnDestroy
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCkKjEgKiKpMiClDiCoKiCoJiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCChipEditorFrame::OnDestroy ()
//{
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	BASE_CLASS::OnDestroy();
//} // CFCChipEditorFrame::OnDestroy.
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnClose
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAjFmCiClGiCoJiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.25 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCChipEditorFrame::OnClose ()
//{
//	if (g_pDoc->IsModified())
//	//----- _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKiPeDjAlDiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// IDS_MSG_IS_REGISTER_CHIP = "_xZkqqHx_iDgAiDgCiDhGiCpAjDgPjIfOiClFiCnMiClHiCkJ_xHqqkZx_?"
//		switch(FFMessageBox(IDS_MSG_IS_REGISTER_CHIP, 0, MB_YESNOCANCEL))
//		{
//		case IDYES:
//			PostMessage(WM_COMMAND, ID_FILE_CHPED_SAVE_EXIT, (LPARAM)0);
//			break;
//		case IDNO:
//			PostMessage(WM_COMMAND, ID_FILE_CHPED_NO_SAVE_EXIT, (LPARAM)0);
//			break;
//		default: // IDCANCEL:
//			break;
//		}
//	} else
//	//----- _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKiPeDjAlDiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeCiClBiCmMiCnMiCnMiPeJjHlJiClHiCoJiBeC_xHqqkZx_
//		BASE_CLASS::OnClose();
//	}
//} // CFCChipEditorFrame::OnClose.
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnUserToChipedit
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgAiDgCiDhGiDeHiDgGiDeCiDfOiCnGiCmMiDfCiDhNiDjDiDgIiCpAiOpDjAeNiClFiClNiCmGiCkLiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_iDgAiDgCiDhGiDeHiDgGiDeCiDfOiDiCiBfLiDgIiCmMiOjOiCmJjHeMiMpIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wParam	:_xZkqqHx_iDfCiDhNiDjDiDgIiBeC_xHqqkZx_
// *			lParam	:_xZkqqHx_iDfCiDhNiDjDiDgIjFmKiCmMiIpIjAjEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPoNiCmJ_xHqqkZx_1.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.01.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *			99.03.24 Fukushiro M. CFCMainFrame_xZkqqHx_iCkJiCoHiInKjDkOiBeC_xHqqkZx_
// *************************************************************************/
//LRESULT CFCChipEditorFrame::OnUserToChipedit (WPARAM wParam, LPARAM lParam)
//{
//	switch (wParam)
//	{
//	case FDTC_RECEIVE_STREAM:
//		g_pChipDoc->ReceiveStreamAndInit(reinterpret_cast<HWND>(lParam));
//		break;
//	case FDTC_APP_CLOSE:
//		g_pChipDoc->SetModifiedFlag(FALSE);
//		::PostQuitMessage(0);
//		break;
//	}
//	return 1;
//} // CFCChipEditorFrame::OnUserToChipedit.
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnChipeditSetDuty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCmMjGpAiKiEiCpAjAnNjCoIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCChipEditorFrame::OnChipeditSetDuty ()
{
	// _xZkqqHx_jGpAiKiEjAnNjCoIiDfPiDeDiDeBiDiNiDePiBeC_xHqqkZx_
	CFCDlgChipDuty dlg(g_pView->SelectObjVector().front());
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiBeC_xHqqkZx_
	if (dlg.DoModal() == IDOK)
	{
//----- 05.07.02 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiCmMjGpAiKiEiCkKjFmPiNfIiClDiCoKiClNiCmMiCmFjCmKjCgNiBeC_xHqqkZx_
//		OnUpdateSelected();
//----- 05.07.02 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiCmMjGpAiKiEiCkKjFmPiNfIiClDiCoKiClNiCmMiCmFjCmKjCgNiBeC_xHqqkZx_
		PostMessage(WM_USER_OBJ_SELECT_CHANGED);
//----- 05.07.02 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
} // CFCChipEditorFrame::OnChipeditSetDuty.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnUpdateChipeditSetDuty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFjEjFgJiCmMjGpAiKiEiCpAjAnNjCoIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCChipEditorFrame::OnUpdateChipeditSetDuty (CCmdUI* pCmdUI)
{
//----- 02.12.08 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	pCmdUI->Enable(FFCanBasicOperate() && g_pView->SelectObjVector().size() == 1 &&
//					g_pView->GetCurrentTool() == g_pView->CommandID2Tool(g_pDoc->GetStdTool()));
//----- 02.12.08 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	pCmdUI->Enable(FFCanBasicOperate() && g_pView->SelectObjVector().size() == 1 &&
					g_pView->GetCurrentTool() == g_pToolManager->CommandID2Tool(g_pDoc->GetStdTool()));
//----- 02.12.08 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCChipEditorFrame::OnUpdateChipeditSetDuty.

//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	WaitForMolipDrawQuit
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	Molip Draw_xZkqqHx_iCmMiPeJjHlJiCpAiKmEiOiLiClHiCoJiDfIiDiMiDgCiDgIiDhGiDiNiDePiDiJiDiAiBeC_xHqqkZx_
// *			Molip Draw_xZkqqHx_iCkKiPeJjHlJiClFiClNiCoHiBeBiDiBiDeDiDjDiDhEiDiMiBfLiDiAiCmJiPeJjHlJiDiBiDgCiDfKiBfLiDfHiCpA_xHqqkZx_
// *			_xZkqqHx_jBjHjFhEiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	Molip Draw_xZkqqHx_iCmMiDhGiDiNiDfKiDfIiDgOiDjDiDgIiDiLiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfIiDiMiDgCiDgIiCmMjAkMiMpHiBeFiOlIjEhDiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//static DWORD WINAPI WaitForMolipDrawQuit (LPVOID pvoid)
//{
//	// Molip Draw_xZkqqHx_iCmMiDhGiDiNiDfKiDfI_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
//	DWORD dwProcID = DWORD(pvoid);
//	// _xZkqqHx_iDhGiDiNiDfKiDfI_xHqqkZx_ID_xZkqqHx_iCkJiCoHiDgOiDjDiDgIiDiLiCpAiNoMjAkMiBeC_xHqqkZx_
//	HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwProcID);
//	// Molip Draw_xZkqqHx_iDhGiDiNiDfKiDfIiCkKiPeJjHlJiClHiCoJiCnMiCmFiBeBjGlDjAkHiMmAiCmFjBnCiCmCiBeC_xHqqkZx_
//	WaitForSingleObject(hProcess, INFINITE);
//	// Molip Draw_xZkqqHx_iDgOiDjDiDgIiDiLiCmNiCoAiCkEiOgHiCoNiCmIiCkCiCkJiCoHiDeOiDiNiBfLiDfJiClHiCoJiBeC_xHqqkZx_
//	CloseHandle(hProcess);
//	// _xZkqqHx_iDiBiDeDiDjDiDhEiDiMiBfLiDiAiCnG_xHqqkZx_Molip Draw_xZkqqHx_iPeJjHlJiCpAjCmKjCgNiBeC_xHqqkZx_
//	PostMessage(FFGetMainWnd()->GetWnd()->m_hWnd, WM_USER_MOLIPDRAW_QUIT, 0, 0);
//	// _xZkqqHx_jAlDiPoNiPeJjHlJiBeC_xHqqkZx_
//    return S_OK;
//} // WaitForMolipDrawQuit.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnCreate
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDiMiBfLiDiAiNoMjAkMiOjOiCmJiOmAiNhDiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.06 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
// *************************************************************************/
//int CFCChipEditorFrame::OnCreate (LPCREATESTRUCT lpCreateStruct)
//{
//	if (BASE_CLASS::OnCreate(lpCreateStruct) == -1)
//		return -1;
//
//	if (GetMasterAppFrame() != NULL)
//	//----- _xZkqqHx_iDgAiDgCiDhGiDeHiDgGiDeCiDfOiLeOjDkOiMlDiCmMiDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iLeOjDkOiMlDiDeBiDhGiDiKiCmMiKmEiOiLiDfIiDiMiDgCiDgIiCpAiLeOjDkOiClHiCoJiBeC_xHqqkZx_
//		// MolipDraw_xZkqqHx_iCmMiDeFiDeCiDjDiDgIiDeFiDgOiDjDiDgIiDiLiCkJiCoHiDhGiDiNiDfKiDfI_xHqqkZx_ID_xZkqqHx_iCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
//		DWORD dwProcID;	// _xZkqqHx_iDhGiDiNiDfKiDfI_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
//		::GetWindowThreadProcessId(GetMasterAppFrame(), &dwProcID);
//		// Molip Draw_xZkqqHx_iPeJjHlJiKmEiOiLiDfIiDiMiDgCiDgIiCpAiLeOjDkOiBeC_xHqqkZx_
//		DWORD dwThreadId;
////----- 00.09.20 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////		HANDLE hMonitorThread =
////				CreateThread(NULL, 0, (PTHREAD_START_ROUTINE)WaitForMolipDrawQuit,
////							(LPVOID)dwProcID, 0, &dwThreadId);
////----- 00.09.20 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//		(void)CreateThread(NULL, 0, (PTHREAD_START_ROUTINE)WaitForMolipDrawQuit,
//							(LPVOID)dwProcID, 0, &dwThreadId);
////----- 00.09.20 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//	}
//	return 0;
//} // CFCChipEditorFrame::OnCreate.
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnUserMolipdrawQuit
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	Molip Draw_xZkqqHx_iCkKiPeJjHlJiClFiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_OnCreate_xZkqqHx_jCiGiCmM_xHqqkZx_
// *			Molip Draw_xZkqqHx_iKmEiOiLiDfIiDiMiDgCiDgIiCkJiCoHiDiBiDgCiDfKiBfLiDfHiCkKjBjHiCoHiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	1
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//LRESULT CFCChipEditorFrame::OnUserMolipdrawQuit (WPARAM, LPARAM)
//{
//	g_pDoc->SetModifiedFlag(FALSE);
//	::PostQuitMessage(0);
//	return 1;
//} // CFCChipEditorFrame::OnUserMolipdrawQuit.
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnUserObjSelectChanged
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjBeJjBpAiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJ_xHqqkZx_View_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	1
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jBeJjBpAiClDiCoKiClNjFjEjFgJiCmMjGpAiKiEjFfMiOkGiCmMiClNiCnPiCmJiNoMjAkMiClFiClNiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//LRESULT CFCChipEditorFrame::OnUserObjSelectChanged (WPARAM, LPARAM)
//{
//	// _xZkqqHx_jBeJjBpAjFmPiNfIiCpAjGpAiKiEjFfMiOkGiDgDiBfLiDiLiDgPiBfLiCmJjCmKjCgNiBeC_xHqqkZx_
//	m_wndToolChipDuty.ObjSelectNotify();
//	// _xZkqqHx_jBeJjBpAjFmPiNfIiCpAiDeKiDiJiBfLiDgFiBfLiDhFiDiLiDgDiBfLiDiLiDgPiBfLiCmJjCmKjCgNiBeC_xHqqkZx_
//	m_tolBrPenBrush.ObjSelectNotify();
//	return 1;
//} // CFCChipEditorFrame::OnUserObjSelectChanged.
//----- 01.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnUserCurrentToolChanged
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiCmMjBeJjBpAiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJ_xHqqkZx_View_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	1
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	ChipEditor_xZkqqHx_iCmFiOgHjHhAiClHiCoJiClNiCnPiCmJiNoMjAkMiClFiClNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
LRESULT CFCChipEditorFrame::OnUserCurrentToolChanged (WPARAM, LPARAM)
{
	// _xZkqqHx_iDgDiBfLiDiLjFmPiNfIiCmJiCkIiCkCiCmEiBeBiDgDiBfLiDiLiCkKjBeJjBpAiDgDiBfLiDiLiCmMiPoKiNiHiCmMiCnNjGpAiKiEjFfMiOkGiDgDiBfLiDiLiDgPiBfL_xHqqkZx_
	// _xZkqqHx_iCpAjHeMiMpIiCmJiClHiCoJiBeC_xHqqkZx_
	m_wndToolChipDuty.EnableSelect(g_pView->GetCurrentTool() == g_pToolManager->CommandID2Tool(g_pDoc->GetStdTool()));
	return 1;
} // CFCChipEditorFrame::OnUserCurrentToolChanged.

//----- 01.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnUserCmdSessionEnded
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiDfKiDgCiDfGiDiHiDjDiPeJjHlJiKnGjAjEiCkKiOmAiNhDiClDiCoKiClNiOjOiBeB_xHqqkZx_
// *			CommandGate_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	1
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//LRESULT CFCChipEditorFrame::OnUserCmdSessionEnded (WPARAM, LPARAM)
//{
//	// _xZkqqHx_jBeJjBpAjFmPiNfIiCpAiDeKiDiJiBfLiDgFiBfLiDhFiDiLiDgDiBfLiDiLiDgPiBfLiCmJjCmKjCgNiBeC_xHqqkZx_
//	m_tolBrPenBrush.ObjSelectNotify();
//	return 1;
//} // CFCChipEditorFrame::OnUserCmdSessionEnded.
//----- 01.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnOptionEnv
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiKmCiLkLiCmMjAnNjCoIiDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iKmCiLkLiCmMjAnNjCoIjHhAiCmMiDfPiDeDiDeBiDiNiDePiCpAiLeOjDkOiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.07.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCChipEditorFrame::OnOptionEnv ()
//{
//	// CFCCommonDrawFrame::OnOptionEnv_xZkqqHx_iCmGjEoEiCnHiCmEiBeBiLeOjDkOiOjOiDgFiDjDiDhGiDiMiBfLiDgHiCmMiOhHjCoIiCkKjGlDiCkCiBeC_xHqqkZx_
//	// IDS_MSG_SET_ENVIRONMENT = "_xZkqqHx_iKmCiLkLiCmMjAnNjCoI_xHqqkZx_"
//	CFCPropertySheet sheet(GetResWString(IDS_MSG_SET_ENVIRONMENT));
//	CFCPreColorFont prpColFnt;
//	CFCPreUnit prpUnit;
//	CFCPreInterface prpInterface;
//	CFCPreText prpText;
//	CFCPreDraw prpDraw;
//	CFCPrePlugIn prpPlugIn;
//	sheet.AddPage(&prpColFnt);
//	sheet.AddPage(&prpUnit);
//	sheet.AddPage(&prpInterface);
//	sheet.AddPage(&prpText);
//	sheet.AddPage(&prpDraw);
//	sheet.AddPage(&prpPlugIn);
//	(void)sheet.DoModal();
//} // CFCChipEditorFrame::OnOptionEnv.
//----- 01.04.07 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 01.07.11 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnGraphicsEditPictArrow
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhDiDeOiDgAiDiDjGoOiIpDiDgFiBfLiDhFiDiLiCmMjFnCiPfHiBhGiCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.07.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCChipEditorFrame::OnGraphicsEditPictArrow ()
{
	CFCDlgPictArrowSelect dlg;
	dlg.DoModal();
} // CFCChipEditorFrame::OnGraphicsEditPictArrow.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCChipEditorFrame::OnUpdateGraphicsEditPictArrow
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhDiDeOiDgAiDiDjGoOiIpDiDgFiBfLiDhFiDiLiCmMjFnCiPfHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.07.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCChipEditorFrame::OnUpdateGraphicsEditPictArrow (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
} // CFCChipEditorFrame::OnUpdateGraphicsEditPictArrow.
//----- 01.07.11 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
