#if !defined(AFX_COMMONDRAWFRAME_H__D2DB6E46_B691_11D3_AED0_00C0F6B0E2D0__INCLUDED_)
#define AFX_COMMONDRAWFRAME_H__D2DB6E46_B691_11D3_AED0_00C0F6B0E2D0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CommonDrawFrame.h : _xZkqqHx_iDhHiDgCiDfPiBfL_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "TolBrTools.h"			// For CFCTolBrTools.
#include "TolBrLayer.h"			// For CFCTolBrLayer.
#include "TolBrSheet.h"			// For CFCTolBrSheet.
#include "TolBrObjLabel.h"		// For CFCTolBrObjLabel.
//----- 05.08.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
#include "TolBrFont.h"			// For CFCTolBrFont.
#include "TolBrPenBrush.h"		// For CFCTolBrPenBrush.
#include "TolBrBase.h"			// For CFCTolBrBase.
//----- 05.08.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
#include "FrameWnd.h"			// For FFGetMainWnd().
#include "MainFrame.h"			// Superclass.

#ifdef SUPER_CLASS
#undef SUPER_CLASS
#endif
#define SUPER_CLASS CFCMainFrame


class CFCCtlBrSideView;
class CFCWndChipView;
class CFCDlgSideView;

/////////////////////////////////////////////////////////////////////////////
// CFCCommonDrawFrame _xZkqqHx_iDhEiDiMiBfLiDiA_xHqqkZx_

class CFCCommonDrawFrame : public SUPER_CLASS
{
protected:
typedef SUPER_CLASS BASE_CLASS;

	DECLARE_DYNCREATE(CFCCommonDrawFrame)
protected:
	CFCCommonDrawFrame();           // _xZkqqHx_jDkOjDeJjAlGjAkMiCmJiOgHjHhAiClDiCoKiCoJiDhGiDiNiDgFiDeOiDgH_xHqqkZx_ _xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_

// _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
public:
	//----- _xZkqqHx_iDgAiDgCiDhGiKnGiMfHiKnGjAjE_xHqqkZx_ -----
	virtual ChipGroupID	GetCurrentChipGroupId () const;
//----- 06.11.10 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//// 06.10.31 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////	virtual void	SetCurrentChipGroupId (ChipGroupID cgid) const;
//	virtual void	SetCurrentChipGroupId (ChipGroupID cgid);
//----- 06.11.10 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	virtual ChipID	GetCurChipId () const;

	//----- _xZkqqHx_jBeJjBpAjFjEjFgJiKnGiMfHiKnGjAjE_xHqqkZx_ -----

//----- 02.08.07 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (_xZkqqHx_iIpDiNpMiDhGiDiMiDhCiDiFiBfLiOjOiCmJiDgAiDgCiDhGiDfIiDgHiDeBjBiAiNoMiClHiCoJiCmGjHiOiClPiCoJ_xHqqkZx_)-----
	virtual void	OnBeginPrintPreview ();
	virtual void	OnEndPrintPreview ();
//----- 02.08.07 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (_xZkqqHx_iIpDiNpMiDhGiDiMiDhCiDiFiBfLiOjOiCmJiDgAiDgCiDhGiDfIiDgHiDeBjBiAiNoMiClHiCoJiCmGjHiOiClPiCoJ_xHqqkZx_)-----

protected:
	//----- _xZkqqHx_iDgAiDgCiDhGiKnGiMfHiKnGjAjE_xHqqkZx_ -----
	virtual BOOL	IsChipStoreVisible () const;
	virtual void	SetChipStoreVisible (BOOL bIsVisible);
	virtual CFCWndChipView*	GetWndChipView ();

	//----- _xZkqqHx_iPiJiKpKiJlLjDjJiCmMiKnGjAjE_xHqqkZx_ -----
// 06.03.25 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	virtual void	OnFirstExecute ();
	virtual void	PostOnCreate (CFrameWnd* pWndFrame);
	virtual void	PreOnDestroy ();

	//----- _xZkqqHx_jBeJjBpAjFjEjFgJiKnGiMfHiKnGjAjE_xHqqkZx_ -----

	//----- _xZkqqHx_iDgDiBfLiDiLiDgPiBfLiKnGiMfHiKnGjAjE_xHqqkZx_ -----
//----- 05.10.24 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	virtual void	OnViewSizingBarVisible (DWORD dwCommandId);
	virtual void	OnUpdateViewSizingBarVisible (CCmdUI* pCmdUI);
//----- 05.10.24 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	virtual void	PostMessageToControlBars (UINT message = UINT(-1), WPARAM wParam = 0, LPARAM lParam = 0);

// _xZkqqHx_iDiGiBfLiDfFjFmPjAjEiBeC_xHqqkZx_
protected:
//----------<NOT EXPORT TO VIEWER>-----------
	//----- _xZkqqHx_iDgAiDgCiDhGiKnGiMfHjFmPjAjE_xHqqkZx_ -----
	CFCCtlBrSideView*	m_pCtlBrChipStore;	// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiBgJiDfCiDjDiDgHiDiNiBfLiDiLiDgPiBfLiBgKiBeC_xHqqkZx_
	CFCDlgSideView*		m_pDlgChipStore;	// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiBgJiDeFiDeCiDjDiDgIiDeFiBgKiBeC_xHqqkZx_
	CFCWndChipView*		m_pWndChipView;		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiDfKiDgCiDgHiBeC_xHqqkZx_

//----- 05.07.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	BOOL	m_bIsChipStoreRedraw;		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiNmEjFgAiJoGiDhEiDiJiDePiBeC_xHqqkZx_
//	BOOL	m_bIsChipChanged;			// _xZkqqHx_jBePiJpBiCmMiNmEjFfMiOkGiImIiNhOiCmJiDgAiDgCiDhGiCkKjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
//	BOOL	m_bIsChipGroupChanged;		// _xZkqqHx_jBePiJpBiCmMiNmEjFfMiOkGiImIiNhOiCmJiDgAiDgCiDhGiDePiDiLiBfLiDhGiCkKjFmPiNfIiClDiCoKiClNiCkJiBeI_xHqqkZx_
//----- 05.07.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	BOOL	m_bIsChipStoreVisible;		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiCmMjFfMiOkGiPpDjBnEiBeCiIpDiNpMiDhGiDiMiDhCiDiFiBfLiOjOiCmMiCnNiOgHjHhAiBeC_xHqqkZx_
//----------</NOT EXPORT TO VIEWER>-----------

// _xZkqqHx_iDeBiDgHiDiKiDhCiDiFiBfLiDgH_xHqqkZx_
public:

// _xZkqqHx_iDeJiDhJiDiMiBfLiDfGiDiHiDjD_xHqqkZx_
public:

// _xZkqqHx_iDeJiBfLiDgPiBfLiDiJiDeDiDgI_xHqqkZx_
	// ClassWizard _xZkqqHx_iCmNiJlMjBhKiKnGjAjEiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiCpAjAlGjAkMiClFiCnMiClHiBeC_xHqqkZx_
	//{{AFX_VIRTUAL(CFCCommonDrawFrame)
	//}}AFX_VIRTUAL

// _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_
protected:
	virtual ~CFCCommonDrawFrame();

protected:  // _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiL_xHqqkZx_ _xZkqqHx_iDgPiBfLjHhAiDiBiDjDiDgPiBeC_xHqqkZx_
//----------<NOT EXPORT TO VIEWER>-----------
//----- 05.08.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	CFCTolBrPenBrush	m_tolBrPenBrush;	// _xZkqqHx_iDhJiDjDiBeFiDhFiDiJiDfGiDgDiBfLiDiLiDgPiBfLiBeC_xHqqkZx_
	CFCTolBrBase		m_tolBrText;		// _xZkqqHx_iDgFiDeMiDfIiDgHiDgDiBfLiDiLiDgPiBfLiBeC_xHqqkZx_
	CFCTolBrFont		m_tolBrFont;		// _xZkqqHx_iDhEiDeIiDjDiDgHiDgDiBfLiDiLiDgPiBfLiBeC_xHqqkZx_
//----- 05.08.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	CFCTolBrTools		m_wndToolBoxBar;	// _xZkqqHx_iDgDiBfLiDiLiDhLiDgCiDeOiDfI_xHqqkZx_1_xZkqqHx_iBeC_xHqqkZx_
	CFCTolBrTools 		m_wndToolBox2Bar;	// _xZkqqHx_iDgDiBfLiDiLiDhLiDgCiDeOiDfI_xHqqkZx_2_xZkqqHx_iBeC_xHqqkZx_
	CFCTolBrLayer		m_tolBrLayer;		// _xZkqqHx_iDiMiDeDiDiEiBfLiDgDiBfLiDiLiDgPiBfLiBeC_xHqqkZx_
//----------</NOT EXPORT TO VIEWER>-----------
	CFCTolBrSheet		m_tolBrSheet;		// _xZkqqHx_iDfGiBfLiDgHiDgDiBfLiDiLiDgPiBfLiBeC_xHqqkZx_
	CFCTolBrObjLabel	m_tolBrObjLabel;	// _xZkqqHx_iDiJiDhIiDiLiDgDiBfLiDiLiDgPiBfLiBeC_xHqqkZx_

	// _xZkqqHx_jAlGjAkMiClDiCoKiClNiDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDhNiDgCiDhGiKnGjAjE_xHqqkZx_
	//{{AFX_MSG(CFCCommonDrawFrame)
	afx_msg void OnViewChipStoreDockOrFloat();
	afx_msg void OnUpdateViewChipStoreDockOrFloat(CCmdUI* pCmdUI);
	afx_msg void OnOptionEnv();
	afx_msg void OnGraphicsEditChipGroup();
	afx_msg void OnUpdateGraphicsEditChipGroup(CCmdUI* pCmdUI);
	afx_msg void OnGraphicsEditChip();
	afx_msg void OnUpdateGraphicsEditChip(CCmdUI* pCmdUI);
	afx_msg void OnGraphicsChipPaste();
	afx_msg void OnUpdateGraphicsChipPaste(CCmdUI* pCmdUI);
	afx_msg void OnGraphicsEditPictArrow();
	afx_msg void OnUpdateGraphicsEditPictArrow(CCmdUI* pCmdUI);
	afx_msg void OnGraphicsUnselectChip();
	afx_msg void OnUpdateGraphicsUnselectChip(CCmdUI* pCmdUI);
	afx_msg void OnUpdateOptionEnv(CCmdUI* pCmdUI);
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnViewChipStoreSideChange();
	afx_msg void OnUpdateViewChipStoreSideChange(CCmdUI* pCmdUI);
	//}}AFX_MSG
	afx_msg LRESULT OnUserRepairDocument(WPARAM wParam = 0, LPARAM lParam = 0);
	afx_msg LRESULT OnMtrxLbtnDblclked(WPARAM wParam = 0, LPARAM lParam = 0);
	afx_msg LRESULT OnUserUpdateChipStore (WPARAM wParam, LPARAM lParam = 0);
//----- 05.07.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	afx_msg LRESULT OnUserCmdSessionEnded(WPARAM wParam = 0, LPARAM lParam = 0);
//	afx_msg LRESULT OnUserCommandCalled(WPARAM wParam, LPARAM lParam);
//----- 05.07.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	afx_msg LRESULT OnUserLayerUpdated (WPARAM wParam, LPARAM lParam);
//	afx_msg LRESULT OnUserSheetChanged (WPARAM wParam = 0, LPARAM lParam = 0);
//	afx_msg LRESULT OnUserCurrentSheetChanged (WPARAM wParam = 0, LPARAM lParam = 0);
//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 05.10.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	afx_msg void OnViewChipStoreVisible();
//	afx_msg void OnUpdateViewChipStoreVisible(CCmdUI* pCmdUI);
//----- 05.10.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	DECLARE_MESSAGE_MAP()
}; // class CFCCommonDrawFrame.

/////////////////////////////////////////////////////////////////////////////

// CommonDraw_xZkqqHx_iDhEiDiMiBfLiDiAiBeC_xHqqkZx_
inline CFCCommonDrawFrame* FFCommonDrawFrame ()
{
	if (FFGetMainWnd()->GetWnd()->IsKindOf(RUNTIME_CLASS(CFCCommonDrawFrame)))
		return (CFCCommonDrawFrame*)g_pFrame;
	else
		return NULL;
} // FFCommonDrawFrame.

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ _xZkqqHx_iCmNjBePiNhDiCmMjClMjBePiCmJjCmHiJmBiCmMjAoJiMlOiCpAjBhNjDpMiClFiCnMiClHiBeC_xHqqkZx_

#endif // !defined(AFX_COMMONDRAWFRAME_H__D2DB6E46_B691_11D3_AED0_00C0F6B0E2D0__INCLUDED_)
