#ifndef __FdbOpenDdFile_h
#define __FdbOpenDdFile_h

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

#include "StcDIBImage.h"	// For CFCStcDIBImage.
#include "FileDialogBase.h"	// For Superclass.

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

struct FCOpenDdfileThreadData;

/////////////////////////////////////////////////////////////////////////////
// FCFdbOpenDdFile _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

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

public:
	FCFdbOpenDdFile (	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);
// 05.10.12 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	virtual ~FCFdbOpenDdFile ();

// 06.10.20 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	virtual void	SetRegName (const wchar_t* wcpRegName);
// 06.12.11 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	virtual void	SetDefaultDirectory (const wchar_t* wcpPath);

// _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
protected:
	virtual BOOL	OnInitDialog ();
	virtual void	OnOK ();
	virtual void	OnDestroy ();
	virtual void	OnSize (UINT nType, int cx, int cy);
	virtual void	OnFileNameChanged ();
	virtual UINT_PTR	OnMessage (DWORD dwMessageId, WPARAM wParam, LPARAM lParam);
// 06.10.20 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	virtual BOOL	OnCommand (WPARAM wParam, LPARAM lParam);
	virtual LRESULT	OnUserPngDataLoaded (WPARAM wParam, LPARAM lParam);

// _xZkqqHx_iDiGiBfLiDfFjFmPjAjEiBeC_xHqqkZx_
protected:
	FCOpenDdfileThreadData*	m_pThreadData;	// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLjDmHiCnNiNjOiCnNiDfIiDiMiDgCiDgIiCmGiCmMiLkEjHeMiDgGiBfLiDfOiBeC_xHqqkZx_
	CFCStcDIBImage	m_stcImage;
	DWORD			m_dwThreadId;
// 06.10.20 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	WString	m_wstrRegName;			// _xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiDiKiDfIiDgHiCmMiDiMiDfHiDfIiDgHiDiKiBeC_xHqqkZx_
// 06.12.11 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	WString	m_wstrDefaultDirPath;	// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiCmMiDgGiDeCiDiMiDeOiDgHiDiKiDhAiDfIiBeC_xHqqkZx_

protected:
//	afx_msg void OnSize(UINT nType, int cx, int cy);
//	afx_msg LRESULT OnUserPngDataLoaded(WPARAM wParam, LPARAM lParam);

}; // class FCFdbOpenDdFile.

#endif //__FdbOpenDdFile_h
