// PatchApplyDlg.h : header file
//

#if !defined(AFX_PATCHAPPLYDLG_H__3189E982_D0CF_4C3F_B9A8_4C7EC712B011__INCLUDED_)
#define AFX_PATCHAPPLYDLG_H__3189E982_D0CF_4C3F_B9A8_4C7EC712B011__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CPatchApplyDlg dialog

class CPatchApplyDlg : public CDialog
{
// Construction
public:
	LPVOID PatchCallBack( UINT Id, LPVOID Parm);
	void FatalError(UINT id);
	CString GetTransString(UINT);
	void ApplyPatch();
	CPatchApplyDlg(CWnd* pParent = NULL);	// standard constructor
	bool DoesFileExist(LPCSTR fname);
	bool DisplayReadMe();
	static bool NeedUpgrade();
	void RunPatch();



	bool InSetup;
	bool IsEnglish;
	bool Patching;
	bool ErrorProcessed;

// Dialog Data
	//{{AFX_DATA(CPatchApplyDlg)
	enum { IDD = IDD_PATCHAPPLY_DIALOG };
	CProgressCtrl	m_FileProg;
	CButton	m_But;
	CProgressCtrl	m_PatchProg;
	CString	m_StatText;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPatchApplyDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CPatchApplyDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnExit();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PATCHAPPLYDLG_H__3189E982_D0CF_4C3F_B9A8_4C7EC712B011__INCLUDED_)
