// FdbSaveImageAs.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"
#include "UtilDlg.h"		// For SetUnitString.etc.
#include "UtilStr.h"		// For GetResString.
#include "FdbSaveImageAs.h"	// This header.

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


/////////////////////////////////////////////////////////////////////////////
// FCFdbSaveImageAs

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCFdbSaveImageAs::FCFdbSaveImageAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.07.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCFdbSaveImageAs::FCFdbSaveImageAs (	BOOL bOpenFileDialog,
										const wchar_t* wcpDefExt,
										const wchar_t* wcpFileName,
										DWORD dwFlags,
										const wchar_t* wcpFilter,
										HWND hwndParent,
										const wchar_t* wcpTitle)
				: BASE_CLASS(	bOpenFileDialog,
								wcpDefExt,
								wcpFileName,
								dwFlags,
								wcpFilter,
								hwndParent,
								wcpTitle)
{
	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCmJiPgEiCmLiCoJiDgFiDjDiDhGiDiMiBfLiDgHiDiKiDfMiBfLiDfIiCpAjAnNjCoIiBeC_xHqqkZx_
	m_ofn.lpTemplateName = MAKEINTRESOURCE(IDD_SYS_DLG_SAVE_SELECT_AS);
	m_ofn.hInstance = FFGetApp()->GetResourceInstance();
	m_ofn.Flags |= OFN_ENABLETEMPLATE;
	// _xZkqqHx_iDhHiDiLiDhGiDhLiDfOiDjDiCpAjFfMiOkGiBeC_xHqqkZx_
	m_ofn.Flags |= OFN_SHOWHELP;

	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiDeFiDeCiDjDiDgIiDeFiCmMiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
	m_strDlgTitle = FFLoadString(IDD_SYS_DLG_SAVE_SELECT_AS);
	m_ofn.lpstrTitle = m_strDlgTitle;

	//----- _xZkqqHx_jFmPjAjEiPiJiKpKiJlL_xHqqkZx_ -----
	m_mmLeft = 0.0;
	m_mmTop = 0.0;
	m_mmRight = 0.0;
	m_mmBottom = 0.0;

	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiPiIjHjNjCiGiCmMiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
	m_bProhibitMsg = TRUE;

	// _xZkqqHx_iPpDiLlFiImLjBlGiDhHiDiLiDhGiCmM_xHqqkZx_ID_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
	SetHelpID(IDD_SYS_DLG_SAVE_SELECT_AS);
} // FCFdbSaveImageAs::FCFdbSaveImageAs.

//----- 05.10.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//void FCFdbSaveImageAs::DoDataExchange (CDataExchange* pDX)
//{
//	CDialog::DoDataExchange(pDX);
//	//{{AFX_DATA_MAP(FCFdbSaveImageAs)
//	//}}AFX_DATA_MAP
//	DDX_Control(pDX, IDC_SSA_SPN_MARGIN_LEFT, m_spnMarginLeft);
//	DDX_Control(pDX, IDC_SSA_SPN_MARGIN_TOP, m_spnMarginTop);
//	DDX_Control(pDX, IDC_SSA_SPN_MARGIN_RIGHT, m_spnMarginRight);
//	DDX_Control(pDX, IDC_SSA_SPN_MARGIN_BOTTOM, m_spnMarginBottom);
//} // FCFdbSaveImageAs::DoDataExchange.
//
//
//BEGIN_MESSAGE_MAP(FCFdbSaveImageAs, BASE_CLASS)
//	//{{AFX_MSG_MAP(FCFdbSaveImageAs)
//	ON_COMMAND(ID_DIALOG_INIT_VALUE, OnDialogInitValue)
//	ON_WM_CTLCOLOR()
//	ON_WM_DESTROY()
//	//}}AFX_MSG_MAP
//	ON_EN_CHANGE(IDC_SSA_EDT_MARGIN_LEFT, OnChangeSsaEdtMarginLeft)
//	ON_EN_CHANGE(IDC_SSA_EDT_MARGIN_TOP, OnChangeSsaEdtMarginTop)
//	ON_EN_CHANGE(IDC_SSA_EDT_MARGIN_RIGHT, OnChangeSsaEdtMarginRight)
//	ON_EN_CHANGE(IDC_SSA_EDT_MARGIN_BOTTOM, OnChangeSsaEdtMarginBottom)
//	ON_BN_CLICKED(IDC_SSA_CHK_SAME_VALUE, OnSsaChkSameValue)
//END_MESSAGE_MAP()
//----- 05.10.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

