3 #include "StandAloneDlg.h"
\r
5 // CProgressDlg dialog
\r
7 class CProgressDlg : public CResizableStandAloneDialog
\r
9 DECLARE_DYNAMIC(CProgressDlg)
\r
12 CProgressDlg(CWnd* pParent = NULL); // standard constructor
\r
13 virtual ~CProgressDlg();
\r
14 virtual BOOL OnInitDialog();
\r
16 enum { IDD = IDD_GITPROGRESS };
\r
20 CProgressCtrl m_Progress;
\r
23 CAnimateCtrl m_Animate;
\r
24 CStatic m_CurrentWork;
\r
25 CWinThread* m_pThread;
\r
26 volatile LONG m_bThreadRunning;
\r
28 BOOL m_bShowCommand; // whether to display the command in the log window (default true)
\r
29 CString m_PreText; // optional text to show in log window before running command
\r
31 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\r
32 static UINT ProgressThreadEntry(LPVOID pVoid);
\r
33 UINT ProgressThread();
\r
35 void ParserCmdOutput(TCHAR ch);
\r
36 int FindPercentage(CString &log);
\r
37 void RemoveLastLine(CString &str);
\r
40 DECLARE_MESSAGE_MAP()
\r