#if !defined(AFX_CANCELDLG_H__CF6315F4_35F7_4B31_82DF_F01442A02503__INCLUDED_)
#define AFX_CANCELDLG_H__CF6315F4_35F7_4B31_82DF_F01442A02503__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CancelDlg.h : header file
//

//UINT CancelDlgThreadProc( LPVOID pParam );


class CCancelDlgThread : public CWinThread
{
	DECLARE_DYNCREATE(CCancelDlgThread)
		
public:
	CCancelDlgThread();           // protected constructor used by dynamic creation
	
public:
	bool *m_bEndExpand;
	int *m_cur_level;
	bool *m_bIsActive;
	
	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(cWaitDlgThread)
public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL
	
	// Implementation
public:
	virtual ~CCancelDlgThread();
	
protected:
	
	// Generated message map functions
	//{{AFX_MSG(cWaitDlgThread)
	// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
// CCancelDlg dialog


class CCancelDlg : public CaplTranslateDialog
{
	// Construction
public:
	CCancelDlg(CWnd* pParent = NULL);   // standard constructor
	
	CCancelDlgThread *m_trd;
	
	// Dialog Data
	//{{AFX_DATA(CCancelDlg)
	enum { IDD = IDD_CANCEL };
	// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
	
	
	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCancelDlg)
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	
	// Implementation
protected:
	
	// Generated message map functions
	//{{AFX_MSG(CCancelDlg)
	virtual void OnCancel();
	virtual BOOL OnInitDialog();
	afx_msg void OnBtn();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_CANCELDLG_H__CF6315F4_35F7_4B31_82DF_F01442A02503__INCLUDED_)
