3 #include "StandAloneDlg.h"
\r
5 #define MSG_PROGRESSDLG_UPDATE_UI (WM_USER+121)
\r
6 // CProgressDlg dialog
\r
7 #define MSG_PROGRESSDLG_START 0
\r
8 #define MSG_PROGRESSDLG_END 110
\r
10 class CProgressDlg : public CResizableStandAloneDialog
\r
12 DECLARE_DYNAMIC(CProgressDlg)
\r
15 CProgressDlg(CWnd* pParent = NULL); // standard constructor
\r
16 virtual ~CProgressDlg();
\r
17 virtual BOOL OnInitDialog();
\r
19 enum { IDD = IDD_GITPROGRESS };
\r
23 CProgressCtrl m_Progress;
\r
26 CAnimateCtrl m_Animate;
\r
27 CStatic m_CurrentWork;
\r
28 CWinThread* m_pThread;
\r
29 volatile LONG m_bThreadRunning;
\r
31 BOOL m_bShowCommand; // whether to display the command in the log window (default true)
\r
32 CString m_PreText; // optional text to show in log window before running command
\r
34 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\r
35 static UINT ProgressThreadEntry(LPVOID pVoid);
\r
36 UINT ProgressThread();
\r
38 void ParserCmdOutput(TCHAR ch);
\r
39 int FindPercentage(CString &log);
\r
40 void RemoveLastLine(CString &str);
\r
42 LRESULT CProgressDlg::OnProgressUpdateUI(WPARAM wParam,LPARAM lParam);
\r
45 DECLARE_MESSAGE_MAP()
\r