ReactOS  0.4.15-dev-1374-g8d3e80e
CProgressDialog.h
Go to the documentation of this file.
1 /*
2  * Progress dialog
3  *
4  * Copyright 2014 Huw Campbell
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 #ifndef _PROGRESSDIALOG_H_
22 #define _PROGRESSDIALOG_H_
23 
25  public CComCoClass<CProgressDialog, &CLSID_ProgressDialog>,
26  public CComObjectRootEx<CComMultiThreadModelNoCS>,
27  public IProgressDialog,
28  public IOleWindow
29 {
30 public:
42  void set_progress_marquee();
44  void end_dialog();
45 
47  struct progressMark {
50  };
53 
56 
57  // IProgressDialog
60  virtual HRESULT WINAPI SetTitle(LPCWSTR pwzTitle);
61  virtual HRESULT WINAPI SetAnimation(HINSTANCE hInstance, UINT uiResourceId);
62  virtual BOOL WINAPI HasUserCancelled();
64  virtual HRESULT WINAPI SetProgress(DWORD dwCompleted, DWORD dwTotal);
65  virtual HRESULT WINAPI SetLine(DWORD dwLineNum, LPCWSTR pwzLine, BOOL bPath, LPCVOID reserved);
67  virtual HRESULT WINAPI Timer(DWORD dwTimerAction, LPCVOID reserved);
68 
70  virtual HRESULT WINAPI GetWindow(HWND* phwnd);
71  virtual HRESULT WINAPI ContextSensitiveHelp(BOOL fEnterMode);
72 
75 
77 
79  COM_INTERFACE_ENTRY_IID(IID_IProgressDialog, IProgressDialog)
82 };
83 
84 #endif /* _PROGRESSDIALOG_H_ */
virtual HRESULT WINAPI SetAnimation(HINSTANCE hInstance, UINT uiResourceId)
virtual HRESULT WINAPI SetProgress64(ULONGLONG ullCompleted, ULONGLONG ullTotal)
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:611
#define IDR_PROGRESSDIALOG
Definition: resource.h:102
ULONGLONG ullTotal
HINSTANCE hInstance
Definition: charmap.c:20
virtual HRESULT WINAPI SetProgress(DWORD dwCompleted, DWORD dwTotal)
unsigned int BOOL
Definition: ntddk_ex.h:94
r reserved
Definition: btrfs.c:2940
static HWND hwndParent
Definition: cryptui.c:300
virtual HRESULT WINAPI Timer(DWORD dwTimerAction, LPCVOID reserved)
virtual HRESULT WINAPI SetCancelMsg(LPCWSTR pwzMsg, LPCVOID reserved)
virtual HRESULT WINAPI StartProgressDialog(HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved)
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:541
LONG HRESULT
Definition: typedefs.h:79
uint64_t ULONGLONG
Definition: typedefs.h:67
#define WINAPI
Definition: msvc.h:6
CRITICAL_SECTION cs
unsigned long DWORD
Definition: ntddk_ex.h:95
progressMark progressClock[30]
virtual BOOL WINAPI HasUserCancelled()
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:605
virtual HRESULT WINAPI StopProgressDialog()
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:561
void update_dialog(DWORD dwUpdate)
unsigned int UINT
Definition: ndis.h:50
virtual HRESULT WINAPI SetLine(DWORD dwLineNum, LPCWSTR pwzLine, BOOL bPath, LPCVOID reserved)
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:639
CONST void * LPCVOID
Definition: windef.h:191
virtual HRESULT WINAPI SetTitle(LPCWSTR pwzTitle)
const GUID IID_IOleWindow
#define END_COM_MAP()
Definition: atlcom.h:552
WCHAR * LPWSTR
Definition: xmlstorage.h:184
ULONGLONG ullCompleted
virtual HRESULT WINAPI GetWindow(HWND *phwnd)
virtual HRESULT WINAPI ContextSensitiveHelp(BOOL fEnterMode)