ReactOS 0.4.15-dev-6679-g945ee4b
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{
30public:
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);
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_ */
HINSTANCE hInstance
Definition: charmap.c:19
virtual BOOL WINAPI HasUserCancelled()
virtual HRESULT WINAPI SetTitle(LPCWSTR pwzTitle)
virtual HRESULT WINAPI ContextSensitiveHelp(BOOL fEnterMode)
virtual HRESULT WINAPI SetLine(DWORD dwLineNum, LPCWSTR pwzLine, BOOL bPath, LPCVOID reserved)
void update_dialog(DWORD dwUpdate)
virtual HRESULT WINAPI SetCancelMsg(LPCWSTR pwzMsg, LPCVOID reserved)
virtual HRESULT WINAPI GetWindow(HWND *phwnd)
virtual HRESULT WINAPI SetAnimation(HINSTANCE hInstance, UINT uiResourceId)
ULONGLONG ullTotal
virtual HRESULT WINAPI StartProgressDialog(HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved)
CRITICAL_SECTION cs
virtual HRESULT WINAPI StopProgressDialog()
virtual HRESULT WINAPI SetProgress64(ULONGLONG ullCompleted, ULONGLONG ullTotal)
virtual HRESULT WINAPI SetProgress(DWORD dwCompleted, DWORD dwTotal)
progressMark progressClock[30]
ULONGLONG ullCompleted
static HWND hwndParent
Definition: cryptui.c:300
#define IDR_PROGRESSDIALOG
Definition: resource.h:102
r reserved
Definition: btrfs.c:3006
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:581
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:601
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:679
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:651
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:645
#define END_COM_MAP()
Definition: atlcom.h:592
unsigned int UINT
Definition: ndis.h:50
const GUID IID_IOleWindow
uint64_t ULONGLONG
Definition: typedefs.h:67
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
CONST void * LPCVOID
Definition: windef.h:191
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185