// WndSideView.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"	// For FFGetApp().
#include "UtilStr.h"		// For FFExtractUntil.
#include "FrameWnd.h"		// For FFGetMainWnd().
#include "WndSideView.h"	// This header.

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

// Superclass_xZkqqHx_iCmMjCoIiLgAiBeC_xHqqkZx_

// _xZkqqHx_iDgHiDgCiDhGiDgPiBfLiCmMiNiCiClDiBeC_xHqqkZx_
static const long s_lTopBarHeight = 16;

// _xZkqqHx_jDgPjIfOjGlMiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
LPCTSTR CFCWndSideView::s_lpszClassName = NULL;

/////////////////////////////////////////////////////////////////////////////
// CFCWndSideView

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::CFCWndSideView
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDhEiDeIiDiLiDgHiDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCWndSideView::CFCWndSideView ()
{
} // CFCWndSideView::CFCWndSideView.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::~CFCWndSideView
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCWndSideView::~CFCWndSideView ()
{
} // CFCWndSideView::~CFCWndSideView.

BEGIN_MESSAGE_MAP(CFCWndSideView, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCWndSideView)
	ON_WM_CREATE()
	ON_WM_DESTROY()
	ON_WM_SIZE()
	//}}AFX_MSG_MAP
	ON_CONTROL_RANGE(BN_CLICKED, 0, 0xffff, OnAnyButton)
//	ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipNotify)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCWndSideView _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::SetTopBarControlId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgHiDgCiDhGiDgPiBfLiCmMiKgFiDfCiDjDiDgHiDiNiBfLiDiLiCmM_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lBtnSideChangeId:_xZkqqHx_iDfEiDeDiDgIiDgAiDeGiDjDiDfHiDhLiDfOiDjDiCmM_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			lBtnSwitchBarId	:_xZkqqHx_iDfIiDeDiDgCiDgAiDgPiBfLiDhLiDfOiDjDiCmM_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			lBtnCloseId		:_xZkqqHx_iDeOiDiNiBfLiDfJiDhLiDfOiDjDiCmM_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDhLiDfOiDjD_xHqqkZx_ID_xZkqqHx_iCmNiBeBiDhLiDfOiDjDiCkKiJjPiClDiCoKiClNiCmGiCkLiCmJiDiBiDeDiDjDiDhEiDiMiBfLiDiAiCnG_xHqqkZx_
 *			_xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_ID_xZkqqHx_iCmGiClFiCmEjBjHjAeNiClDiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iClBiCmMiKnGjAjEiCmN_xHqqkZx_Create_xZkqqHx_jBePiCmJiOmAiNhDiClHiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCWndSideView::SetTopBarControlId (long lBtnSideChangeId,
										 long lBtnSwitchBarId,
										 long lBtnCloseId)
{
	m_lBtnSideChangeId = lBtnSideChangeId;
	m_lBtnSwitchBarId = lBtnSwitchBarId;
	m_lBtnCloseId = lBtnCloseId;
} // CFCWndSideView::SetTopBarControlId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::Create
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	rect		:_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMiLoJiMgAiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pParentWnd	:_xZkqqHx_jAgFiDeFiDeCiDjDiDgIiDeFiCpAiOhHjCoIiBeC_xHqqkZx_
 *			nID			:_xZkqqHx_iDeFiDeCiDjDiDgIiDeF_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	:_xZkqqHx_jAlDiPoNiPeJjHlJ_xHqqkZx_
 *			FALSE	:_xZkqqHx_iInJiPoNiPeJjHlJ_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCWndSideView::Create (	const CRect& rect,
								CWnd* pParentWnd,
								UINT nID)
{
	//----- _xZkqqHx_iDeOiDiJiDfIiCpAjDgPjIfO_xHqqkZx_ -----
	if (s_lpszClassName == NULL)
    	s_lpszClassName = ::AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW,
												FFGetApp()->LoadStandardCursor(IDC_ARROW));
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	return BASE_CLASS::Create(s_lpszClassName, _T(""), WS_CHILD|WS_VISIBLE, rect, pParentWnd, nID, NULL);
} // CFCWndSideView::Create.

/////////////////////////////////////////////////////////////////////////////
// CFCWndSideView _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::GetTopBarHeight
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgHiDgCiDhGiDgPiBfLiCmMiNiCiClDiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDgHiDgCiDhGiDgPiBfLiCmMiNiCiClDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDfEiDeDiDgIiDgAiDeGiDjDiDfHiDhLiDfOiDjDiBeBiDfIiDeDiDgCiDgAiDgPiBfLjDjJiCmMiNiCiClDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCWndSideView::GetTopBarHeight () const
{
	return s_lTopBarHeight;
} // CFCWndSideView::GetTopBarHeight.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::myInitOwnerButton
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeJiBfLiDgJiBfLiDgIiDiNiBfLiCmMiDhGiDgCiDfGiDiFiDhLiDfOiDjDiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ctrl	:_xZkqqHx_iDhLiDfOiDjDiCpAiOhHjCoIiBeC_xHqqkZx_CFCBtnSwitchBar _xZkqqHx_iIlNiCkCiCmN_xHqqkZx_ CFCBtnPictText_xZkqqHx_iBeC_xHqqkZx_
 *			lCtrlId	:_xZkqqHx_iDhLiDfOiDjDiCmM_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			lIconId	:_xZkqqHx_iDhLiDfOiDjDiCmJjDfMiCoJiDeBiDeDiDfCiDjDiCmM_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_CFCBtnPictText_xZkqqHx_iDeOiDiJiDfI_xHqqkZx_
 *					 _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiPoKiNiHiCmMiCnNjAnNjCoIiJmCjEfMiBeCiClLiCoKiImIiKePiCmN_xHqqkZx_0_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhLiDfOiDjDiCpAiNoMjAkMiClFiBeBiDeBiDeDiDfCiDjDiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCWndSideView::myInitOwnerButton (CButton& ctrl, long lCtrlId, long lIconId)
{
	ctrl.Create(_T(""),
				BS_OWNERDRAW |
				WS_VISIBLE |
				WS_TABSTOP |
				WS_CHILD,
			 	CRect(0,0,10,10),
				this,
				lCtrlId);
	if (lIconId != 0)
	{
		// CFCBtnPictText_xZkqqHx_iDeOiDiJiDfIiCmGjCgGjCoIiClFiCmEiDeBiDeDiDfCiDjDiCpAjAnNjCoIiBeC_xHqqkZx_
		((CFCBtnPictText*)&ctrl)->SetIcon(FFGetApp()->LoadIcon(lIconId), 32, 32);
	}
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiOkJjDkO_xHqqkZx_Alt_xZkqqHx_iCmMjBmOiPnLiCmGiClHiCoJiBeC_xHqqkZx_
	FFGetMainWnd()->AddAutoAltWindow(ctrl.m_hWnd);
} // CFCWndSideView::myInitOwnerButton.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::OnCreate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiNoMjAkMiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
int CFCWndSideView::OnCreate (LPCREATESTRUCT lpCreateStruct)
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	if (BASE_CLASS::OnCreate(lpCreateStruct) == -1)
		return -1;

//----- 05.07.20 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgDiBfLiDiLiDgAiDgCiDhGiCpAjFfMiOkGiJmCiCmJiClHiCoJiBeC_xHqqkZx_
//	EnableToolTips(TRUE);
//----- 05.07.20 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiOkJjDkO_xHqqkZx_Alt_xZkqqHx_iCmMjBmOiPnLiCmGiClHiCoJiBeC_xHqqkZx_
	FFGetMainWnd()->AddAutoAltWindow(m_hWnd);
	// _xZkqqHx_iDfEiDeDiDgIiDgAiDeGiDjDiDfHiDhLiDfOiDjDiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	myInitOwnerButton(m_btnSideChange, m_lBtnSideChangeId, IDI_LR_ARROW_SMALL);
	// _xZkqqHx_iDfIiDeDiDgCiDgAiDgPiBfLiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	myInitOwnerButton(m_btnSwitchBar, m_lBtnSwitchBarId, 0);
	// _xZkqqHx_iDeOiDiNiBfLiDfJiDhLiDfOiDjDiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	myInitOwnerButton(m_btnClose, m_lBtnCloseId, IDI_SMALL_CROSS);

	return 0;
} // CFCWndSideView::OnCreate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::OnDestroy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFjEgKiKpMiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCWndSideView::OnDestroy ()
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnDestroy();
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCpAiOkJjDkO_xHqqkZx_Alt_xZkqqHx_iCmMjBmOiPnLiCkJiCoHiJpAiPjMiClHiCoJiBeC_xHqqkZx_
	FFGetMainWnd()->DeleteAutoAltWindow(m_hWnd);
	FFGetMainWnd()->DeleteAutoAltWindow(m_btnSideChange.m_hWnd);
	FFGetMainWnd()->DeleteAutoAltWindow(m_btnSwitchBar.m_hWnd);
	FFGetMainWnd()->DeleteAutoAltWindow(m_btnClose.m_hWnd);
} // CFCWndSideView::OnDestroy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::OnSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfEiDeDiDfJiCkKjFmPiNfIiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nType	:_xZkqqHx_iDiKiDfEiDeDiDfJiCmMiOoNjHnOiBeC_xHqqkZx_
 *			cx,cy	:_xZkqqHx_jAfGiClFiCkCiDeFiDeCiDjDiDgIiDeFiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iImIiJlKiCmMiDgHiDgCiDhGiDgPiBfLiCmMjEhKjChFiCpAjClCjAkOiClHiCoJiBeC_xHqqkZx_
 *
 *      _xZkqqHx_iDfEiDeDiDgIiDgAiDeGiDjDiDfH_xHqqkZx_    _xZkqqHx_iDfIiDeDiDgCiDgAiDgPiBfL_xHqqkZx_     _xZkqqHx_iDeOiDiNiBfLiDfJiDhLiDfOiDjD_xHqqkZx_
 *             _xZkqqHx_iBkL_xHqqkZx_            _xZkqqHx_iBkL_xHqqkZx_                _xZkqqHx_iBkL_xHqqkZx_
 *          _xZkqqHx_iEkBiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEkC_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_<-> _xZkqqHx_iEkAiBkMiBkMiBkMiBkMiBkMiBkMiBkMiBkMiBkMiBkMiEkA_xHqqkZx_ _xZkqqHx_iBhO_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_
 *          _xZkqqHx_iEkFiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEkH_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_iEkEiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCWndSideView::OnSize (UINT nType, int cx, int cy)
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnSize(nType, cx, cy);
	if (GetParent() != NULL &&
		GetParent()->IsKindOf(RUNTIME_CLASS(CControlBar)))
	//----- _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiDgPiBfLiCmJjFhEiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfEiDeDiDgIiDgAiDeGiDjDiDfHiDhLiDfOiDjDiCpAjFfMiOkGiBeC_xHqqkZx_
		m_btnSideChange.ShowWindow(SW_SHOW);
		// _xZkqqHx_iDeOiDiNiBfLiDfJiDhLiDfOiDjDiCpAjFfMiOkGiBeC_xHqqkZx_
		m_btnClose.ShowWindow(SW_SHOW);
		// _xZkqqHx_iDfEiDeDiDgIiDgAiDeGiDjDiDfHiDhLiDfOiDjDiCpAiInKjDkOiBeC_xHqqkZx_
		m_btnSideChange.MoveWindow(0, 0, GetTopBarHeight(), GetTopBarHeight());
		// _xZkqqHx_iDfIiDeDiDgCiDgAiDgPiBfLiCpAiInKjDkOiBeC_xHqqkZx_
		m_btnSwitchBar.MoveWindow(GetTopBarHeight(), 0, cx - 2 * GetTopBarHeight(), GetTopBarHeight());
		// _xZkqqHx_iDeOiDiNiBfLiDfJiDhLiDfOiDjDiCpAiInKjDkOiBeC_xHqqkZx_
		m_btnClose.MoveWindow(cx - GetTopBarHeight(), 0, GetTopBarHeight(), GetTopBarHeight());
	} else
	//----- _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiDgPiBfLiImIiKePiCmJjFhEiCkCiCmEiCkCiCoJiBgJiDhEiDiNiBfLiDgHiCmMiBgKiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfEiDeDiDgIiDgAiDeGiDjDiDfHiDhLiDfOiDjDiCpAjEpBjFfMiOkGiBeC_xHqqkZx_
		m_btnSideChange.ShowWindow(SW_HIDE);
		// _xZkqqHx_iDeOiDiNiBfLiDfJiDhLiDfOiDjDiCpAjEpBjFfMiOkGiBeC_xHqqkZx_
		m_btnClose.ShowWindow(SW_HIDE);
		// _xZkqqHx_iDfIiDeDiDgCiDgAiDgPiBfLiCpAiInKjDkOiBeC_xHqqkZx_
		m_btnSwitchBar.MoveWindow(0, 0, cx, GetTopBarHeight());
	}
} // CFCWndSideView::OnSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::OnAnyButton
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfEiDeDiDgIiDhCiDiFiBfLiCmMjBfDiCmEiCmMiDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCWndSideView::OnAnyButton (UINT dwId)
{
	long lCtrlId = LOWORD(GetCurrentMessage()->wParam);
	// _xZkqqHx_iDfCiDhNiDjDiDgIiCpAjBjHjAeNiBeC_xHqqkZx_
	FFGetMainWnd()->PostMessage(WM_COMMAND, lCtrlId, 0);
	CButton* pButton = (CButton*)GetDlgItem(lCtrlId);
	DWORD dwBtStyle = pButton->GetButtonStyle();
	if ((dwBtStyle & 0x0000000FL) == BS_DEFPUSHBUTTON)
	//----- _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiDhLiDfOiDjDiCkKjAnNjCoIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDhLiDfOiDjDiCpAiJjPiClHiClBiCmGiCmFiOkJjDkOjDeJiCmJjAnNjCoIiClDiCoKiBeBjBlOjIgHiCmJiCmIiCmBiCmEiClFiCnMiCkEiBeC_xHqqkZx_
		// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiDhLiDfOiDjDiCpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
		pButton->SetButtonStyle(dwBtStyle & 0xFFFFFFF0L);
	}

	// _xZkqqHx_iDhEiDeIiBfLiDeKiDfIiCpAiDhLiDfOiDjDiCkJiCoHiKePiClHiBeCiDhEiDeIiBfLiDeKiDfIiCkKjDjGiClNiCmBiCmEiCkCiCoJiCmG_xHqqkZx_
	// _xZkqqHx_iDhLiDfOiDjDiPoDiCmJjDfPjApMiCmMiDhEiDeIiBfLiDeKiDfIiDhEiDiMiBfLiDiAiCkKjFgAiJoGiClDiCoKiCoJiBeC_xHqqkZx_
	SetFocus();
} // CFCWndSideView::OnAnyButton.

//----- 05.07.20 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCWndSideView::OnToolTipNotify
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiDgAiDgCiDhGiCmMjFlGiOjKjHpBiCpAjFfMiOkGiClHiCoJiNnLiCmJiBeBjFlGiOjKjHpBiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCWndSideView::OnToolTipNotify (UINT id, NMHDR *pNMHDR, LRESULT *pResult)
//{
//	*pResult = 0;
//	TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;
//	UINT nID = pNMHDR->idFrom;
//	if (pTTT->uFlags & TTF_IDISHWND)
//	{
//		// idFrom is actually the HWND of the tool
//		nID = ::GetDlgCtrlID((HWND)nID);
//		if (nID != ID_WND_HTREE_VIEW)
//		{
////----- 05.01.20 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////			pTTT->lpszText = MAKEINTRESOURCE(nID);
////			pTTT->hinst = AfxGetResourceHandle();
////----- 05.01.20 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//			// _xZkqqHx_iDiKiDfMiBfLiDfIjFlGiOjKjHpBiCmM_xHqqkZx_ \n _xZkqqHx_iCkJiCoHiMoDiCpAiOoGiCoIiPgPiClFiCmEjAnNjCoIiClHiCoJiBeC_xHqqkZx_
//			WString wstrMessage;
//			wstrMessage.LoadString(nID);
//			// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCkKiJpMiNhDiDfCiBfLiDgIiCpAiKnMiCnOiPoKiNiHiCmNiBeBjAoGjDkKiBgAiJpMiNhDiDfCiBfLiDgIiCnMiCmFiCpAiNoNiPjMiBeC_xHqqkZx_
//			if (wstrMessage.Find(L'\n') != -1)
//				FFExtractUntil(wstrMessage, L'\n');
//			lstrcpyn(pTTT->szText, WStrToTStr(wstrMessage), sizeof(pTTT->szText));
//			return TRUE;
//		}
//	}
//	return FALSE;
//} // CFCWndSideView::OnToolTipNotify.
//
//----- 05.07.20 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
