// DynamicDrawFrame.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "resource.h"			// For ID_XXXX.
#include "UtilFile.h"			// For FFGetFileDirectory.
#include "DynamicDrawFrame.h"	// This header.

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

// Superclass_xZkqqHx_iCmMjCoIiLgAiBeC_xHqqkZx_

//----- 03.09.14 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////----- 03.09.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//UINT CFCDynamicDrawFrame::s_dwBroadcastHwndMsg = RegisterWindowMessage(_T("DynamicDrawBroadcastHwnd"));
//UINT CFCDynamicDrawFrame::s_dwNotifyHwndMsg = RegisterWindowMessage(_T("DynamicDrawNotifyHwnd"));
////----- 03.09.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 03.09.14 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawFrame

IMPLEMENT_DYNCREATE(CFCDynamicDrawFrame, CFCCommonDrawFrame)

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawFrame::CFCDynamicDrawFrame
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.12.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCDynamicDrawFrame::CFCDynamicDrawFrame ()
{
} // CFCDynamicDrawFrame::CFCDynamicDrawFrame().

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawFrame::~CFCDynamicDrawFrame
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.12.23 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCDynamicDrawFrame::~CFCDynamicDrawFrame ()
{
} // CFCDynamicDrawFrame::~CFCDynamicDrawFrame.

BEGIN_MESSAGE_MAP(CFCDynamicDrawFrame, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDynamicDrawFrame)
	//}}AFX_MSG_MAP
	ON_UPDATE_COMMAND_UI(ID_VIEW_TOOLBAR_MAINFRAME, CFCMainFrame::OnUpdateViewToolbars)
	ON_COMMAND_EX(ID_VIEW_TOOLBAR_MAINFRAME, CFCMainFrame::OnViewToolbars)
// 06.03.04 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	ON_COMMAND(ID_TEST_TEST_TEST1, OnTestTestTest1)
//----- 03.09.14 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////----- 03.09.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//	ON_REGISTERED_MESSAGE(CFCDynamicDrawFrame::s_dwBroadcastHwndMsg, CFCMainFrame::OnBroadcastHwndMsg)
//	ON_REGISTERED_MESSAGE(CFCDynamicDrawFrame::s_dwNotifyHwndMsg, CFCMainFrame::OnNotifyHwndMsg)
////----- 03.09.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 03.09.14 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawFrame _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawFrame::OnFirstExecute
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiNmFiPiJiCmMiLeOjDkOiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawFrame::OnFirstExecute ()
{
	// MolipDraw.exe_xZkqqHx_iCmMjBlGiNnNiClHiCoJiDhAiDfIiCpAiOoGiCoIiPgPiClHiBeCiDhAiDfIiNmFiMoDiCmJ_xHqqkZx_"\"_xZkqqHx_iCkKjFhEiCkCiCmEiCkCiCoJiBeC_xHqqkZx_
	WString wstrDirPath = FFGetFileDirectory(FFGetMolipExePath());
	// DD_xZkqqHx_iDfIiDiJiDeDiDgIiCpAjFfMiOkGiBeC_xHqqkZx_
	FFImageMessageBox(wstrDirPath + L"DynamicDraw.ddsw");
//----- 06.05.30 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iNkBiClHiCkOiDgAiDiFiBfLiDgHiDiKiDeBiDiLiDiAiBfLiDhCiBfLiCpAiNmEjAlGiClFiCnMiClHiCkJiBeI_xHqqkZx_\r\n_xZkqqHx_iMoDiCmFiDeJiDjDiDiJiDeDiDjDiDhHiDiLiDhGiCkJiCoHiCoAiNmEjAlGiCmFiCkLiCnMiClHiBeC_xHqqkZx_
	if (FFMessageBox(IDS_MSG_IS_START_TUTORIAL_MOVIE, 0, MB_YESNO) == IDYES)
	{
		// _xZkqqHx_iDgGiDiCiDiAiBfLiDhCiBfLiCpAiNmEjAlGiClHiCoJiBeC_xHqqkZx_
		CString strDemo = WStrToTStr(FFGetFileDirectory(FFGetMolipExePath()) + L"dddemo.wmv");
		ShellExecute(0, _T("open"), strDemo, NULL, NULL, SW_SHOW);
	}
//----- 06.05.30 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnFirstExecute();
} // CFCDynamicDrawFrame::OnFirstExecute.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawFrame::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_>	00.02.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDynamicDrawFrame::PostOnCreate (CFrameWnd* pWndFrame)
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::PostOnCreate(pWndFrame);
//----- 04.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	//----- _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCmMiNoMjAkMiLhJiCnBiDgIiDgCiDeMiDjDiDePiPiIjHjN_xHqqkZx_ -----
//	if (!CreateDockToolBar(m_wndToolBar, pWndFrame,
//							ID_VIEW_TOOLBAR_MAINFRAME,
//							IDR_MAINFRAME, IDS_MAINFRAME)) return;
//	// _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiCmMiPiJiKpKiJlLiBeCiDfJiBfLiDiAiDfCiDjDiDhLiDhLiDgCiDeOiDfIjDjJiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
//	m_wndToolBar.Init();
//----- 04.06.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawFrame::PostOnCreate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawFrame::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 CFCDynamicDrawFrame::GetZoomToolBarInfo (	DWORD& idCmd,
//										DWORD& idRes,
//										DWORD& idStr) const
//----- 06.10.30 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
void CFCDynamicDrawFrame::GetZoomToolBarInfo (DWORD& idCmd) const
//----- 06.10.30 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
{
	idCmd = ID_VIEW_TOOLBAR_MAINFRAME;
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	idRes = IDR_MAINFRAME;
//	idStr = IDS_MAINFRAME;
//----- 06.10.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // CFCDynamicDrawFrame::GetZoomToolBarInfo.

//----- 03.09.14 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawFrame::GetBroadcastHwndMsg
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	HWND_xZkqqHx_iCmMjEkNjAeNiCpAiOhHiOkGiClHiCoJiDhFiDiNiBfLiDgIiDeMiDiDiDfIiDgHjHhAiDiBiDgCiDfKiBfLiDfHiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhFiDiNiBfLiDgIiDeMiDiDiDfIiDgHjHhAiDiBiDgCiDfKiBfLiDfHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	BroadcastHwndMsg _xZkqqHx_iCmM_xHqqkZx_ WPARAM _xZkqqHx_iCmJiCmNiBeBiDhFiDiNiBfLiDgIiDeMiDiDiDfIiDgHiDiBiDgCiDfKiBfLiDfH_xHqqkZx_
// *			_xZkqqHx_iOkPjFmKjHhAiCmMiDfCiBfLiDgIiBgJjCmKiPoNiCmN_xHqqkZx_time_xZkqqHx_iKnGjAjEiCkKjFnEiClHiOjOiKnEiBgKiCpAiOhHjCoIiBeC_xHqqkZx_LPARAM _xZkqqHx_iCmN_xHqqkZx_
// *			_xZkqqHx_jGkCiOgHjHhAiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//DWORD CFCDynamicDrawFrame::GetBroadcastHwndMsg () const
//{
//	return s_dwBroadcastHwndMsg;
//} // CFCDynamicDrawFrame::GetBroadcastHwndMsg.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDynamicDrawFrame::GetNotifyHwndMsg
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	HWND_xZkqqHx_iCpAjCmKjCgNiClHiCoJiDhFiDiNiBfLiDgIiDeMiDiDiDfIiDgHjHhAiDiBiDgCiDfKiBfLiDfHiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhFiDiNiBfLiDgIiDeMiDiDiDfIiDgHjHhAiDiBiDgCiDfKiBfLiDfHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	NotifyHwndMsg _xZkqqHx_iCmM_xHqqkZx_ WPARAM _xZkqqHx_iCmJiCmNiBeBiDhFiDiNiBfLiDgIiDeMiDiDiDfIiDgHiDiBiDgCiDfKiBfLiDfH_xHqqkZx_
// *			_xZkqqHx_iOkPjFmKjHhAiCmMiDfCiBfLiDgIiBgJ_xHqqkZx_BroadcastHwndMsg _xZkqqHx_iCmFiOpDiCkPiOoGiCmBiClN_xHqqkZx_WPARAM_xZkqqHx_iBgKiCpAiOhHjCoIiBeC_xHqqkZx_
// *			LPARAM _xZkqqHx_iCmN_xHqqkZx_ MainFrame_xZkqqHx_iCmM_xHqqkZx_HWND_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//DWORD CFCDynamicDrawFrame::GetNotifyHwndMsg () const
//{
//	return s_dwNotifyHwndMsg;
//} // CFCDynamicDrawFrame::GetNotifyHwndMsg.
//----- 03.09.14 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/////////////////////////////////////////////////////////////////////////////
// CFCDynamicDrawFrame _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_


//----- 06.03.04 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//void CFCDynamicDrawFrame::OnTestTestTest1() 
//{
//	CString str;
//	str.Format(_T("%x"), m_hWnd);
//	AfxMessageBox(str);
//}
//----- 06.03.04 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
