// DlgTextMargin.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "DlgTextMargin.h"

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

/////////////////////////////////////////////////////////////////////////////
// CFCDlgTextMargin _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

CFCDlgTextMargin::CFCDlgTextMargin (CWnd* pParent /*=NULL*/)
	: BASE_CLASS(CFCDlgTextMargin::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFCDlgTextMargin)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDhNiDgCiDhDiDjDiDePjHhAiCmMiDhNiDeOiDiNiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_DATA_INIT

	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNjCiGiCmMiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
	m_bProhibitMsg = TRUE;
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFjEjFgJiPfHiNiHiBeC_xHqqkZx_
	m_pvTextObj = NULL;
	// _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiBeC_xHqqkZx_
	m_pEditor = NULL;
} // CFCDlgTextMargin::CFCDlgTextMargin.

void CFCDlgTextMargin::DoDataExchange(CDataExchange* pDX)
{
	BASE_CLASS::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFCDlgTextMargin)
	DDX_Control(pDX, IDC_TMG_SPN_TEXT_MARGIN_B, m_spnTextMarginB);
	DDX_Control(pDX, IDC_TMG_SPN_TEXT_MARGIN_R, m_spnTextMarginR);
	DDX_Control(pDX, IDC_TMG_SPN_TEXT_MARGIN_T, m_spnTextMarginT);
	DDX_Control(pDX, IDC_TMG_SPN_TEXT_MARGIN_L, m_spnTextMarginL);
	//}}AFX_DATA_MAP
} // CFCDlgTextMargin::DoDataExchange.

BEGIN_MESSAGE_MAP(CFCDlgTextMargin, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDlgTextMargin)
	ON_COMMAND(ID_DIALOG_INIT_VALUE, OnDialogInitValue)
	ON_EN_CHANGE(IDC_TMG_EDT_TEXT_MARGIN_L, OnChangeTmgEdtTextMarginL)
	ON_EN_CHANGE(IDC_TMG_EDT_TEXT_MARGIN_T, OnChangeTmgEdtTextMarginT)
	ON_EN_CHANGE(IDC_TMG_EDT_TEXT_MARGIN_R, OnChangeTmgEdtTextMarginR)
	ON_EN_CHANGE(IDC_TMG_EDT_TEXT_MARGIN_B, OnChangeTmgEdtTextMarginB)
	ON_BN_CLICKED(ID_APPLY_NOW, OnApplyNow)
	ON_WM_CTLCOLOR()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDlgTextMargin _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

//----- 00.03.04 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//BOOL CFCDlgTextMargin::OnInitDialog() 
//{
//	BASE_CLASS::OnInitDialog();
//	
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiPiJiKpKiJlLiCmMjFoCjBkLiPiIjHjNiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//	return TRUE;  // _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmJiDhEiDeIiBfLiDeKiDfIiCpAjAnNjCoIiClFiCmIiCkCiCmGiCkLiBeBjGnPiCoIjCgMiCmN_xHqqkZx_ TRUE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
//	              // _xZkqqHx_jHoBiKeP_xHqqkZx_: OCX _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfHiCmMjGnPiCoIjCgMiCmN_xHqqkZx_ FALSE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
//}
//
//void CFCDlgTextMargin::OnOK() 
//{
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiClLiCmMjBlMiCmMiMjPiPnIjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//	BASE_CLASS::OnOK();
//}
//
//void CFCDlgTextMargin::OnDialogInitValue() 
//{
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiDfCiDhNiDjDiDgI_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//}
//
//void CFCDlgTextMargin::OnChangeTmgEdtTextMarginL() 
//{
//	// TODO: _xZkqqHx_iClBiCoKiCkK_xHqqkZx_ RICHEDIT _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMiPoKiNiHiBeBiDfCiDjDiDgHiDiNiBfLiDiLiCmNiBeB_xHqqkZx_ lParam _xZkqqHx_iDhNiDfIiDeO_xHqqkZx_
//	// _xZkqqHx_jDoAiCmFiCmMjIfPjHjNjIgBiCmM_xHqqkZx_ ENM_CHANGE _xZkqqHx_iDhEiDiJiDePjFhEiCkLiCmF_xHqqkZx_ CRichEditCrtl().SetEventMask()
//	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjBjHiCoJiClNiCnPiCmJ_xHqqkZx_ BASE_CLASS::OnInitDialog() _xZkqqHx_iKnGjAjEiCpAiDeJiBfLiDgPiBfL_xHqqkZx_
//	// _xZkqqHx_iDiJiDeDiDgIiClFiCmIiCkCiMmAiCoIiClBiCmMjCmKjCgNiCpAjBjHiCoIiCnMiClJiCpBiBeC_xHqqkZx_
//	
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiDfCiDjDiDgHiDiNiBfLiDiLjCmKjCgNiDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//}
//
//void CFCDlgTextMargin::OnChangeTmgEdtTextMarginT() 
//{
//	// TODO: _xZkqqHx_iClBiCoKiCkK_xHqqkZx_ RICHEDIT _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMiPoKiNiHiBeBiDfCiDjDiDgHiDiNiBfLiDiLiCmNiBeB_xHqqkZx_ lParam _xZkqqHx_iDhNiDfIiDeO_xHqqkZx_
//	// _xZkqqHx_jDoAiCmFiCmMjIfPjHjNjIgBiCmM_xHqqkZx_ ENM_CHANGE _xZkqqHx_iDhEiDiJiDePjFhEiCkLiCmF_xHqqkZx_ CRichEditCrtl().SetEventMask()
//	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjBjHiCoJiClNiCnPiCmJ_xHqqkZx_ BASE_CLASS::OnInitDialog() _xZkqqHx_iKnGjAjEiCpAiDeJiBfLiDgPiBfL_xHqqkZx_
//	// _xZkqqHx_iDiJiDeDiDgIiClFiCmIiCkCiMmAiCoIiClBiCmMjCmKjCgNiCpAjBjHiCoIiCnMiClJiCpBiBeC_xHqqkZx_
//	
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiDfCiDjDiDgHiDiNiBfLiDiLjCmKjCgNiDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//}
//
//void CFCDlgTextMargin::OnChangeTmgEdtTextMarginR() 
//{
//	// TODO: _xZkqqHx_iClBiCoKiCkK_xHqqkZx_ RICHEDIT _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMiPoKiNiHiBeBiDfCiDjDiDgHiDiNiBfLiDiLiCmNiBeB_xHqqkZx_ lParam _xZkqqHx_iDhNiDfIiDeO_xHqqkZx_
//	// _xZkqqHx_jDoAiCmFiCmMjIfPjHjNjIgBiCmM_xHqqkZx_ ENM_CHANGE _xZkqqHx_iDhEiDiJiDePjFhEiCkLiCmF_xHqqkZx_ CRichEditCrtl().SetEventMask()
//	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjBjHiCoJiClNiCnPiCmJ_xHqqkZx_ BASE_CLASS::OnInitDialog() _xZkqqHx_iKnGjAjEiCpAiDeJiBfLiDgPiBfL_xHqqkZx_
//	// _xZkqqHx_iDiJiDeDiDgIiClFiCmIiCkCiMmAiCoIiClBiCmMjCmKjCgNiCpAjBjHiCoIiCnMiClJiCpBiBeC_xHqqkZx_
//	
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiDfCiDjDiDgHiDiNiBfLiDiLjCmKjCgNiDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//}
//
//void CFCDlgTextMargin::OnChangeTmgEdtTextMarginB() 
//{
//	// TODO: _xZkqqHx_iClBiCoKiCkK_xHqqkZx_ RICHEDIT _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMiPoKiNiHiBeBiDfCiDjDiDgHiDiNiBfLiDiLiCmNiBeB_xHqqkZx_ lParam _xZkqqHx_iDhNiDfIiDeO_xHqqkZx_
//	// _xZkqqHx_jDoAiCmFiCmMjIfPjHjNjIgBiCmM_xHqqkZx_ ENM_CHANGE _xZkqqHx_iDhEiDiJiDePjFhEiCkLiCmF_xHqqkZx_ CRichEditCrtl().SetEventMask()
//	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAiDfCiDjDiDgHiDiNiBfLiDiLiCnGjBjHiCoJiClNiCnPiCmJ_xHqqkZx_ BASE_CLASS::OnInitDialog() _xZkqqHx_iKnGjAjEiCpAiDeJiBfLiDgPiBfL_xHqqkZx_
//	// _xZkqqHx_iDiJiDeDiDgIiClFiCmIiCkCiMmAiCoIiClBiCmMjCmKjCgNiCpAjBjHiCoIiCnMiClJiCpBiBeC_xHqqkZx_
//	
//	// TODO: _xZkqqHx_iClBiCmMiImKjChFiCmJiDfCiDjDiDgHiDiNiBfLiDiLjCmKjCgNiDgOiDjDiDgIiDiJjHhAiCmMiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
//	
//}
//----- 00.03.04 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

