*.js files: keep the style consistent
[TortoiseGit.git] / contrib / issue-tracker-plugins / ExampleAtlPlugin / WaitDialog.h
blobd3747fa9b5376ac2bef7f2ef635852bc98c2c264
1 #pragma once
3 #include "resource.h"
5 const UINT WM_PROCESS_STARTING = WM_APP + 42;
6 const UINT WM_PROCESS_COMPLETED = WM_APP + 43;
8 class CWaitDialog :
9 public CDialogImpl<CWaitDialog>
11 HANDLE m_hThread;
12 CString m_commandLine;
14 public:
15 CWaitDialog(const CString &commandLine);
16 ~CWaitDialog();
18 enum { IDD = IDD_WAITDIALOG };
20 BEGIN_MSG_MAP(CWaitDialog)
21 MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
22 MESSAGE_HANDLER(WM_PROCESS_STARTING, OnProcessStarting)
23 MESSAGE_HANDLER(WM_PROCESS_COMPLETED, OnProcessCompleted)
24 END_MSG_MAP()
26 // Handler prototypes:
27 // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
28 // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
29 // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
31 LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
32 LRESULT OnProcessStarting(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
33 LRESULT OnProcessCompleted(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
35 private:
36 static unsigned int __stdcall _ThreadRoutine(void *pParam)
38 CWaitDialog *pThis = reinterpret_cast<CWaitDialog *>(pParam);
39 return pThis->ThreadRoutine();
42 unsigned int ThreadRoutine();