#if !defined(AFX_FILECOPYPROGRESS_H__C94BC265_18F1_49F7_98DF_45D4A2844DF5__INCLUDED_)
#define AFX_FILECOPYPROGRESS_H__C94BC265_18F1_49F7_98DF_45D4A2844DF5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FileCopyProgress.h : header file
//
#include "include\fs.h"
#include <process.h> 
#include "BitButton.h"
#include "PictureEx.h"
#define  PC2NC 1
#define  NC2PC 2
typedef struct _FileCopyParam_
{
   CFile * pcFd;
   BOOL * pCopyCancel;
   IOSFd ncFd;
   HWND hwndDlg;
   HWND hwndProcess;
   int fsize;
   int ncflg;
   
} FILECOPYPARAM;
/////////////////////////////////////////////////////////////////////////////
// CFileCopyProgress dialog

class CFileCopyProgress : public CDialog
{
// Construction
public:
	CFileCopyProgress(CWnd* pParent = NULL);   // standard constructor
	CBitButton m_butstop;
	CPictureEx m_Picture;
// Dialog Data
	//{{AFX_DATA(CFileCopyProgress)
	enum { IDD = IDD_DIALOG_COPYFILE };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFileCopyProgress)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL
public:
	LPCTSTR m_pstrFileName;
	LPCTSTR m_pstrType;
	CFile *pPcFd;
	IOSFd ncFd;
	long threadid;
	int fsize;
	
	int NCFlag;
	BOOL fCopyCanceled;
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CFileCopyProgress)
	virtual BOOL OnInitDialog();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
	afx_msg LRESULT OnButCancel();
	afx_msg void OnClose();
	afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);
	afx_msg void OnPaint();
	afx_msg void OnAskCbFormatName(UINT nMaxCount, LPTSTR lpszString);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnCaptureChanged(CWnd *pWnd);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_FILECOPYPROGRESS_H__C94BC265_18F1_49F7_98DF_45D4A2844DF5__INCLUDED_)
