#ifndef __FdbSaveImageAs_h
#define __FdbSaveImageAs_h

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

#include "SpnHiUnit.h"				// For CFCSpnHiUnit.
#include "FdbSaveImageAsSub.h"		// For FCFDBSAVEIMAGEAS.
#include "FileDialogBase.h"			// For Superclass.

#ifdef SUPER_CLASS
#undef SUPER_CLASS
#endif
#define SUPER_CLASS FCFileDialogBase

/////////////////////////////////////////////////////////////////////////////
// FCFdbSaveImageAs _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

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

public:
	FCFdbSaveImageAs (	BOOL bOpenFileDialog,
						const wchar_t* wcpDefExt = NULL,
						const wchar_t* wcpFileName = NULL,
						DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
						const wchar_t* wcpFilter = NULL,
						HWND hwndParent = NULL,
						const wchar_t* wcpTitle = NULL);

FCFDBSAVEIMAGEAS

// _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
public:
	virtual void	SetSaveMargin (mmetol mmLeft, mmetol mmTop, mmetol mmRight, mmetol mmBottom);
	virtual void	GetSaveMargin (mmetol& mmLeft, mmetol& mmTop, mmetol& mmRight, mmetol& mmBottom);

protected:
	virtual BOOL	OnInitDialog ();
	virtual void	OnOK ();
//	virtual void	OnDestroy ();
	virtual HBRUSH	OnCtlColor (CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	virtual UINT_PTR	OnMessage (DWORD dwMessageId, WPARAM wParam, LPARAM lParam);

	virtual void	OnDialogInitValue ();
	virtual void	OnChangeSsaEdtMarginLeft ();
	virtual void	OnChangeSsaEdtMarginTop ();
	virtual void	OnChangeSsaEdtMarginRight ();
	virtual void	OnChangeSsaEdtMarginBottom ();
	virtual void	OnSsaChkSameValue ();

// _xZkqqHx_iDiGiBfLiDfFjFmPjAjEiBeC_xHqqkZx_
protected:
	CFCSpnHiUnit	m_spnMarginLeft;
	CFCSpnHiUnit	m_spnMarginTop;
	CFCSpnHiUnit	m_spnMarginRight;
	CFCSpnHiUnit	m_spnMarginBottom;

	mmetol	m_mmLeft;
	mmetol	m_mmTop;
	mmetol	m_mmRight;
	mmetol	m_mmBottom;

	CString	m_strDlgTitle;	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiDeFiDeCiDjDiDgIiDeFiCmMiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
}; // class FCFdbSaveImageAs.

#endif // __FdbSaveImageAs_h
