// CommonEditorFrame.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "UtilErr.h"			// For FFMessageBox.
#include "UtilStr.h"			// For GetResString.
#include "CommonEditorDoc.h"	// For FFCommonEditorDoc().
#include "PreColor.h"			// For CFCPreColor.
#include "PreFont.h"			// For CFCPreFont.
#include "PreInitFile.h"		// For CFCPreInitFile.
#include "PreUnit.h"			// For CFCPreUnit.
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
#include "PreToolbar.h"			// For CFCPreToolbar.
#include "PreInterface.h"		// For CFCPreInterface.
#include "PrePopHint.h"			// For CFCPrePopHint.
#include "PreText.h"			// For CFCPreText.
#include "PreDraw.h"			// For CFCPreDraw.
#include "PrePlugIn.h"			// For CFCPrePlugIn.
#include "PropertySheet.h"		// For CFCPropertySheet.
#include "FrameWnd.h"			// For FFGetMainWnd().
#include "CommonEditorFrame.h"	// This header.

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

// Superclass_xZkqqHx_iCmMjCoIiLgAiBeC_xHqqkZx_

// _xZkqqHx_iLeOjDkOiMlDiCmM_xHqqkZx_MolipDraw_xZkqqHx_iCmMiDhEiDiMiBfLiDiAiDgOiDjDiDgIiDiLiBeC_xHqqkZx_
HWND CFCCommonEditorFrame::m_hwndMasterAppFrame = NULL;

//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//// CommonEditorFrame_xZkqqHx_iBeC_xHqqkZx_
//CFCCommonEditorFrame* g_pCommonEditorFrame = NULL;
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCCommonEditorFrame

IMPLEMENT_DYNCREATE(CFCCommonEditorFrame, CFCMainFrame)

CFCCommonEditorFrame::CFCCommonEditorFrame ()
{
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// CommonEditorFrame_xZkqqHx_iBeC_xHqqkZx_
//	g_pCommonEditorFrame = this;
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCCommonEditorFrame::CFCCommonEditorFrame().

CFCCommonEditorFrame::~CFCCommonEditorFrame()
{
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// CommonEditorFrame_xZkqqHx_iBeC_xHqqkZx_
//	g_pCommonEditorFrame = NULL;
//----- 02.12.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCCommonEditorFrame::~CFCCommonEditorFrame().

BEGIN_MESSAGE_MAP(CFCCommonEditorFrame, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCCommonEditorFrame)
	ON_COMMAND(ID_OPTION_ENV, OnOptionEnv)
	ON_UPDATE_COMMAND_UI(ID_OPTION_ENV, OnUpdateOptionEnv)
	//}}AFX_MSG_MAP
	ON_MESSAGE(WM_USER_TO_EDITDRAW, OnUserToEditdraw)
	ON_MESSAGE(WM_USER_MOLIPDRAW_QUIT, OnUserMolipdrawQuit)
END_MESSAGE_MAP()

//----- 05.06.29 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)
//----- 05.06.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCCommonEditorFrame _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	myWaitForMolipDrawQuit
 *
 * <_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 myWaitForMolipDrawQuit (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;
} // myWaitForMolipDrawQuit.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCCommonEditorFrame::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 CFCCommonEditorFrame::SetMasterAppFrame (HWND hwnd)
{
	m_hwndMasterAppFrame = hwnd;
} // CFCCommonEditorFrame::SetMasterAppFrame.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCCommonEditorFrame::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 CFCCommonEditorFrame::GetMasterAppFrame ()
{
	return m_hwndMasterAppFrame;
} // CFCCommonEditorFrame::GetMasterAppFrame.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCCommonEditorFrame::PostOnCreate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OnCreate_xZkqqHx_iKnGjAjEiCmMiOmAiNhDjClMiMoDiCmJiMmEiCnBiPgPiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpCreateStruct	: _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiPiJiKpKiJlLiKgFiOoNjFmPjAjEiCmMiNfMjBkCjBmMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	CFCMainFrame_xZkqqHx_iDeOiDiJiDfIiCkJiCoHiBeB_xHqqkZx_CFCDynamicDrawFrame/CFCCommonEditorFrame_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 CFCCommonEditorFrame::PostOnCreate (CFrameWnd* pWndFrame)
{
	if (GetMasterAppFrame() != NULL)
	//----- _xZkqqHx_iDeHiDgGiDeCiDfOiLeOjDkOiMlDiCmMiDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCkKiCkAiCoJiPoKiNiH_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;
		(void)CreateThread(NULL, 0, (PTHREAD_START_ROUTINE)myWaitForMolipDrawQuit,
							(LPVOID)dwProcID, 0, &dwThreadId);
	}

	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::PostOnCreate(pWndFrame);

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

//----- 05.08.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	//----- _xZkqqHx_iDeKiDiJiBfLiDgFiBfLiDhFiDiLiDgDiBfLiDiLiDgPiBfLiCmMiNoMjAkMiLhJiCnBiDgIiDgCiDeMiDjDiDePiPiIjHjN_xHqqkZx_ -----
	if (!CreateDockToolBar(	m_tolBrPenBrush,
							pWndFrame,
							ID_VIEW_TOOLBAR_PEN_BRUSH))
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//							IDR_COMMON_PEN_BRUSH))
		return;
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiPiJiKpKiJlLiBeC_xHqqkZx_
//	m_tolBrPenBrush.Initialize();
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDgDiBfLiDiLiDgPiBfLiCmMiNoMjAkMiLhJiCnBiDgIiDgCiDeMiDjDiDePiPiIjHjN_xHqqkZx_ -----
	if (!CreateDockToolBar(	m_tolBrText,
							pWndFrame,
							ID_VIEW_TOOLBAR_TEXT))
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//							IDR_COMMON_TEXT))
		return;

	//----- _xZkqqHx_iDhEiDeIiDjDiDgHiDgDiBfLiDiLiDgPiBfLiCmMiNoMjAkMiLhJiCnBiDgIiDgCiDeMiDjDiDePiPiIjHjN_xHqqkZx_ -----
	if (!CreateDockToolBar(	m_tolBrFont,
							pWndFrame,
							ID_VIEW_TOOLBAR_FONT))
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//							IDR_COMMON_FONT))
		return;
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiPiJiKpKiJlLiBeC_xHqqkZx_
//	m_tolBrFont.Initialize();
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 05.08.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----


} // CFCCommonEditorFrame::PostOnCreate.

/////////////////////////////////////////////////////////////////////////////
// CFCCommonEditorFrame _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCCommonEditorFrame::OnUserToEditdraw
 *
 * <_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 CFCCommonEditorFrame::OnUserToEditdraw (WPARAM wParam, LPARAM lParam)
{
	switch (wParam)
	{
	case FDTC_RECEIVE_STREAM:
		FFCommonEditorDoc()->ReceiveStreamAndInit(reinterpret_cast<HWND>(lParam));
		break;
	case FDTC_APP_CLOSE:
//----- 02.12.16 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		FFCommonEditorDoc()->SetModifiedFlag(FALSE);
//		// _xZkqqHx_iImIiJlKiCmFiDiBiDiCiDiKiKeKjFpKiBjF_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCmMiNoNiPjMiBeC_xHqqkZx_
//		FFCommonEditorDoc()->DeleteContents();
//		::PostQuitMessage(0);
//----- 02.12.16 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_iDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAjChIiJiEiLkNjAkHiPeJjHlJiClHiCoJiBeC_xHqqkZx_
		g_pDoc->ExitApplication();
//----- 02.12.16 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		break;
	}
	return 1;
} // CFCCommonEditorFrame::OnUserToEditdraw.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCCommonEditorFrame::OnUserMolipdrawQuit
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	Molip Draw_xZkqqHx_iCkKiPeJjHlJiClFiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_PostOnCreate_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 CFCCommonEditorFrame::OnUserMolipdrawQuit (WPARAM, LPARAM)
{
//----- 03.08.15 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	g_pDoc->SetModifiedFlag(FALSE);
//	::PostQuitMessage(0);
//----- 03.08.15 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	g_pDoc->ExitApplication();
//----- 03.08.15 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	return 1;
} // CFCCommonEditorFrame::OnUserMolipdrawQuit.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCCommonEditorFrame::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 CFCCommonEditorFrame::OnOptionEnv ()
{
	// CFCCommonDrawFrame::OnOptionEnv_xZkqqHx_iCmGjEoEiCnHiCmEiBeBiLeOjDkOiOjOiDgFiDjDiDhGiDiMiBfLiDgHiCmMiOhHjCoIiCkKjGlDiCkCiBeC_xHqqkZx_
//----- 05.05.09 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// IDS_MSG_SET_ENVIRONMENT = "_xZkqqHx_iKmCiLkLiCmMjAnNjCoI_xHqqkZx_"
//	CFCPropertySheet sheet(IDS_MSG_SET_ENVIRONMENT);
//----- 05.05.09 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// ID_OPTION_ENV = "_xZkqqHx_iKmCiLkLiCmMjAnNjCoI_xHqqkZx_"
	CFCPropertySheet sheet(ID_OPTION_ENV);
//----- 05.05.09 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	CFCPreColor prpCol;
	CFCPreFont prpFnt;
// 06.02.23 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	CFCPreInitFile prpInitFile;
	CFCPreUnit prpUnit;
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	CFCPreToolbar prpToolbar;
	CFCPreInterface prpInterface;
	CFCPrePopHint prpPopHint;
	CFCPreText prpText;
	CFCPreDraw prpDraw;
	CFCPrePlugIn prpPlugIn;
	sheet.AddPage(&prpCol);
	sheet.AddPage(&prpFnt);
// 06.02.23 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	sheet.AddPage(&prpInitFile);
	sheet.AddPage(&prpUnit);
// 06.10.30 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	sheet.AddPage(&prpToolbar);
	sheet.AddPage(&prpInterface);
	sheet.AddPage(&prpPopHint);
	sheet.AddPage(&prpText);
	sheet.AddPage(&prpDraw);
	sheet.AddPage(&prpPlugIn);
	(void)sheet.DoModal();
} // CFCCommonEditorFrame::OnOptionEnv.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCCommonEditorFrame::OnUpdateOptionEnv
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiKmCiLkLiCmMjAnNjCoIiDfCiDhNiDjDiDgIiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_jFfMiOkGiPpDjBnEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCCommonEditorFrame::OnUpdateOptionEnv (CCmdUI* pCmdUI)
{
// 06.02.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	pCmdUI->Enable(FFCanBasicOperate() && g_pDoc->GetIsDocumentOpened());
	pCmdUI->Enable(FFCanBasicOperate());
} // CFCCommonEditorFrame::OnUpdateOptionEnv.

