ReactOS  0.4.15-dev-1397-g19779b3
CProgressDialog Class Reference

#include <CProgressDialog.h>

Inheritance diagram for CProgressDialog:
Collaboration diagram for CProgressDialog:

Classes

struct  progressMark
 

Public Member Functions

void set_progress_marquee ()
 
void update_dialog (DWORD dwUpdate)
 
void end_dialog ()
 
 CProgressDialog ()
 
 ~CProgressDialog ()
 
virtual HRESULT WINAPI StartProgressDialog (HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved)
 
virtual HRESULT WINAPI StopProgressDialog ()
 
virtual HRESULT WINAPI SetTitle (LPCWSTR pwzTitle)
 
virtual HRESULT WINAPI SetAnimation (HINSTANCE hInstance, UINT uiResourceId)
 
virtual BOOL WINAPI HasUserCancelled ()
 
virtual HRESULT WINAPI SetProgress64 (ULONGLONG ullCompleted, ULONGLONG ullTotal)
 
virtual HRESULT WINAPI SetProgress (DWORD dwCompleted, DWORD dwTotal)
 
virtual HRESULT WINAPI SetLine (DWORD dwLineNum, LPCWSTR pwzLine, BOOL bPath, LPCVOID reserved)
 
virtual HRESULT WINAPI SetCancelMsg (LPCWSTR pwzMsg, LPCVOID reserved)
 
virtual HRESULT WINAPI Timer (DWORD dwTimerAction, LPCVOID reserved)
 
virtual HRESULT WINAPI GetWindow (HWND *phwnd)
 
virtual HRESULT WINAPI ContextSensitiveHelp (BOOL fEnterMode)
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Public Attributes

CRITICAL_SECTION cs
 
HWND hwnd
 
DWORD dwFlags
 
DWORD dwUpdate
 
LPWSTR lines [3]
 
LPWSTR cancelMsg
 
LPWSTR title
 
BOOL isCancelled
 
ULONGLONG ullCompleted
 
ULONGLONG ullTotal
 
HWND hwndDisabledParent
 
UINT clockHand
 
progressMark progressClock [30]
 
DWORD dwStartTime
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 

Additional Inherited Members

- Public Types inherited from IOleWindow
typedef IOleWindowLPOLEWINDOW
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 

Detailed Description

Definition at line 24 of file CProgressDialog.h.

Constructor & Destructor Documentation

◆ CProgressDialog()

CProgressDialog::CProgressDialog ( )

Definition at line 45 of file CProgressDialog.cpp.

46 {
47  this->lines[0] = (LPWSTR) HeapAlloc(GetProcessHeap(), 0, BUFFER_SIZE);
48  this->lines[1] = (LPWSTR) HeapAlloc(GetProcessHeap(), 0, BUFFER_SIZE);
49  this->lines[2] = (LPWSTR) HeapAlloc(GetProcessHeap(), 0, BUFFER_SIZE);
52 
53  this->lines[0][0] = this->lines[1][0] = this->lines[2][0] = UNICODE_NULL;
54  this->cancelMsg[0] = this->title[0] = UNICODE_NULL;
55 
56  this->clockHand = -1;
57  this->progressClock[29].ullMark = 0ull;
58  this->dwStartTime = GetTickCount();
59 
61 }
#define BUFFER_SIZE
DWORD WINAPI GetTickCount(VOID)
Definition: time.c:455
#define UNICODE_NULL
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:751
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
CRITICAL_SECTION cs
progressMark progressClock[30]
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ ~CProgressDialog()

CProgressDialog::~CProgressDialog ( )

Definition at line 63 of file CProgressDialog.cpp.

64 {
65  if (this->hwnd)
66  this->end_dialog();
67  HeapFree(GetProcessHeap(), 0, this->lines[0]);
68  HeapFree(GetProcessHeap(), 0, this->lines[1]);
69  HeapFree(GetProcessHeap(), 0, this->lines[2]);
70  HeapFree(GetProcessHeap(), 0, this->cancelMsg);
71  HeapFree(GetProcessHeap(), 0, this->title);
72  DeleteCriticalSection(&this->cs);
73 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define GetProcessHeap()
Definition: compat.h:595
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
CRITICAL_SECTION cs
#define HeapFree(x, y, z)
Definition: compat.h:594

Member Function Documentation

◆ ContextSensitiveHelp()

HRESULT WINAPI CProgressDialog::ContextSensitiveHelp ( BOOL  fEnterMode)
virtual

Implements IOleWindow.

Definition at line 448 of file CProgressDialog.cpp.

449 {
450  return E_NOTIMPL;
451 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ end_dialog()

void CProgressDialog::end_dialog ( )

Definition at line 140 of file CProgressDialog.cpp.

141 {
142  SendMessageW(this->hwnd, WM_DLG_DESTROY, 0, 0);
143  /* native doesn't re-enable the window? */
144  if (this->hwndDisabledParent)
146  this->hwnd = NULL;
147 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define TRUE
Definition: types.h:120
#define WM_DLG_DESTROY
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define NULL
Definition: types.h:112

Referenced by StopProgressDialog(), and ~CProgressDialog().

◆ GetWindow()

HRESULT WINAPI CProgressDialog::GetWindow ( HWND phwnd)
virtual

Implements IOleWindow.

Definition at line 440 of file CProgressDialog.cpp.

441 {
442  EnterCriticalSection(&this->cs);
443  *phwnd = this->hwnd;
444  LeaveCriticalSection(&this->cs);
445  return S_OK;
446 }
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
CRITICAL_SECTION cs
#define S_OK
Definition: intsafe.h:51
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)

◆ HasUserCancelled()

BOOL WINAPI CProgressDialog::HasUserCancelled ( )
virtual

Definition at line 356 of file CProgressDialog.cpp.

357 {
358  return this->isCancelled;
359 }

◆ set_progress_marquee()

void CProgressDialog::set_progress_marquee ( )

Definition at line 102 of file CProgressDialog.cpp.

103 {
104  HWND hProgress = GetDlgItem(this->hwnd, IDC_PROGRESS_BAR);
105  SetWindowLongW(hProgress, GWL_STYLE,
106  GetWindowLongW(hProgress, GWL_STYLE)|PBS_MARQUEE);
107 }
#define IDC_PROGRESS_BAR
Definition: resource.h:134
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define PBS_MARQUEE
Definition: commctrl.h:2194
LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define GWL_STYLE
Definition: winuser.h:846

◆ SetAnimation()

HRESULT WINAPI CProgressDialog::SetAnimation ( HINSTANCE  hInstance,
UINT  uiResourceId 
)
virtual

Definition at line 344 of file CProgressDialog.cpp.

345 {
346  HWND hAnimation = GetDlgItem(this->hwnd, IDD_PROGRESS_DLG);
347  SetWindowLongW(hAnimation, GWL_STYLE,
349 
350  if(!Animate_OpenEx(hAnimation,hInstance,MAKEINTRESOURCEW(uiResourceId)))
351  return S_FALSE;
352 
353  return S_OK;
354 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define IDD_PROGRESS_DLG
Definition: resource.h:136
#define ACS_AUTOPLAY
Definition: commctrl.h:4144
#define ACS_CENTER
Definition: commctrl.h:4142
HINSTANCE hInstance
Definition: charmap.c:20
LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG)
#define S_FALSE
Definition: winerror.h:2357
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define Animate_OpenEx(hwnd, hInst, szName)
Definition: commctrl.h:4161
#define GWL_STYLE
Definition: winuser.h:846
#define S_OK
Definition: intsafe.h:51
#define ACS_TRANSPARENT
Definition: commctrl.h:4143
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

◆ SetCancelMsg()

HRESULT WINAPI CProgressDialog::SetCancelMsg ( LPCWSTR  pwzMsg,
LPCVOID  reserved 
)
virtual

Definition at line 413 of file CProgressDialog.cpp.

414 {
415  HWND hwnd;
416 
417  if (reserved)
418  FIXME("reserved pointer not null (%p)\n", reserved);
419 
420  EnterCriticalSection(&this->cs);
421  set_buffer(&this->cancelMsg, pwzMsg);
423  hwnd = (this->isCancelled ? this->hwnd : NULL); /* no sense to send the message if window not cancelled */
424  LeaveCriticalSection(&this->cs);
425 
426  if (hwnd)
428 
429  return S_OK;
430 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
#define FIXME(fmt,...)
Definition: debug.h:111
r reserved
Definition: btrfs.c:2940
#define CANCEL_MSG_LINE
CRITICAL_SECTION cs
#define S_OK
Definition: intsafe.h:51
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define NULL
Definition: types.h:112
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define UPDATE_LINE1
#define WM_DLG_UPDATE
static void set_buffer(LPWSTR *buffer, LPCWSTR string)

◆ SetLine()

HRESULT WINAPI CProgressDialog::SetLine ( DWORD  dwLineNum,
LPCWSTR  pwzLine,
BOOL  bPath,
LPCVOID  reserved 
)
virtual

Definition at line 390 of file CProgressDialog.cpp.

391 {
392  HWND hwnd;
393 
394  if (reserved)
395  FIXME("reserved pointer not null (%p)\n", reserved);
396 
397  dwLineNum--;
398  if (dwLineNum >= 3) /* Windows seems to do something like that */
399  dwLineNum = 0;
400 
401  EnterCriticalSection(&this->cs);
402  set_buffer(&this->lines[dwLineNum], pwzLine);
403  this->dwUpdate |= UPDATE_LINE1 << dwLineNum;
404  hwnd = (this->isCancelled ? NULL : this->hwnd); /* no sense to send the message if window cancelled */
405  LeaveCriticalSection(&this->cs);
406 
407  if (hwnd)
409 
410  return S_OK;
411 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
#define FIXME(fmt,...)
Definition: debug.h:111
r reserved
Definition: btrfs.c:2940
CRITICAL_SECTION cs
#define S_OK
Definition: intsafe.h:51
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define NULL
Definition: types.h:112
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define UPDATE_LINE1
#define WM_DLG_UPDATE
static void set_buffer(LPWSTR *buffer, LPCWSTR string)

◆ SetProgress()

HRESULT WINAPI CProgressDialog::SetProgress ( DWORD  dwCompleted,
DWORD  dwTotal 
)
virtual

Definition at line 385 of file CProgressDialog.cpp.

386 {
387  return this->SetProgress64(dwCompleted, dwTotal);
388 }
virtual HRESULT WINAPI SetProgress64(ULONGLONG ullCompleted, ULONGLONG ullTotal)

◆ SetProgress64()

HRESULT WINAPI CProgressDialog::SetProgress64 ( ULONGLONG  ullCompleted,
ULONGLONG  ullTotal 
)
virtual

Definition at line 361 of file CProgressDialog.cpp.

362 {
363  HWND hwnd;
364 
365  EnterCriticalSection(&this->cs);
366  this->ullTotal = ullTotal;
367  this->ullCompleted = ullCompleted;
368 
369  if (GetTickCount() - this->progressClock[(this->clockHand + 29) % 30].dwTime > 20) {
370  this->clockHand = (this->clockHand + 1) % 30;
372  this->progressClock[this->clockHand].dwTime = GetTickCount();
373  }
374 
375  this->dwUpdate |= UPDATE_PROGRESS;
376  hwnd = this->hwnd;
377  LeaveCriticalSection(&this->cs);
378 
379  if (hwnd)
381 
382  return S_OK; /* Windows sometimes returns S_FALSE */
383 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
DWORD WINAPI GetTickCount(VOID)
Definition: time.c:455
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
ULONGLONG ullTotal
DWORD dwTime
Definition: solitaire.cpp:25
CRITICAL_SECTION cs
#define UPDATE_PROGRESS
progressMark progressClock[30]
#define S_OK
Definition: intsafe.h:51
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define WM_DLG_UPDATE
ULONGLONG ullCompleted

Referenced by SetProgress().

◆ SetTitle()

HRESULT WINAPI CProgressDialog::SetTitle ( LPCWSTR  pwzTitle)
virtual

Definition at line 328 of file CProgressDialog.cpp.

329 {
330  HWND hwnd;
331 
332  EnterCriticalSection(&this->cs);
333  set_buffer(&this->title, pwzTitle);
334  this->dwUpdate |= UPDATE_TITLE;
335  hwnd = this->hwnd;
336  LeaveCriticalSection(&this->cs);
337 
338  if (hwnd)
340 
341  return S_OK;
342 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
CRITICAL_SECTION cs
#define UPDATE_TITLE
#define S_OK
Definition: intsafe.h:51
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define WM_DLG_UPDATE
static void set_buffer(LPWSTR *buffer, LPCWSTR string)

◆ StartProgressDialog()

HRESULT WINAPI CProgressDialog::StartProgressDialog ( HWND  hwndParent,
IUnknown punkEnableModeless,
DWORD  dwFlags,
LPCVOID  reserved 
)
virtual

Definition at line 271 of file CProgressDialog.cpp.

272 {
273  static const INITCOMMONCONTROLSEX init = { sizeof(init), ICC_ANIMATE_CLASS };
274 
275  struct create_params params;
276  HANDLE hThread;
277 
278  // TRACE("(%p, %p, %x, %p)\n", this, punkEnableModeless, dwFlags, reserved);
279  if (punkEnableModeless || reserved)
280  FIXME("Reserved parameters not null (%p, %p)\n", punkEnableModeless, reserved);
282  FIXME("Flags PROGDLG_AUTOTIME not supported\n");
283  if (dwFlags & PROGDLG_NOTIME)
284  FIXME("Flags PROGDLG_NOTIME not supported\n");
285 
287 
288  EnterCriticalSection(&this->cs);
289 
290  if (this->hwnd)
291  {
292  LeaveCriticalSection(&this->cs);
293  return S_OK; /* as on XP */
294  }
295  this->dwFlags = dwFlags;
296  params.This = this;
297  params.hwndParent = hwndParent;
298  params.hEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
299 
302  CloseHandle(params.hEvent);
304 
305  this->hwndDisabledParent = NULL;
306  if (hwndParent && (dwFlags & PROGDLG_MODAL))
307  {
308  HWND hwndDisable = GetAncestor(hwndParent, GA_ROOT);
309  if (EnableWindow(hwndDisable, FALSE))
310  this->hwndDisabledParent = hwndDisable;
311  }
312 
313  LeaveCriticalSection(&this->cs);
314 
315  return S_OK;
316 }
#define GA_ROOT
Definition: winuser.h:2764
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
HWND WINAPI GetAncestor(_In_ HWND, _In_ UINT)
#define CloseHandle
Definition: compat.h:598
#define TRUE
Definition: types.h:120
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
static int init
Definition: wintirpc.c:33
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
Definition: synch.c:651
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
Definition: synch.c:82
#define FALSE
Definition: types.h:117
GLenum const GLfloat * params
Definition: glext.h:5645
#define FIXME(fmt,...)
Definition: debug.h:111
r reserved
Definition: btrfs.c:2940
static DWORD WINAPI dialog_thread(LPVOID lpParameter)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
Definition: thread.c:136
static HWND hwndParent
Definition: cryptui.c:300
CRITICAL_SECTION cs
#define PROGDLG_AUTOTIME
Definition: shlobj.h:893
#define ICC_ANIMATE_CLASS
Definition: commctrl.h:65
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:893
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
#define PROGDLG_MODAL
Definition: shlobj.h:892
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
#define S_OK
Definition: intsafe.h:51
#define NULL
Definition: types.h:112
HANDLE hThread
Definition: wizard.c:27
#define PROGDLG_NOTIME
Definition: shlobj.h:894
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define INFINITE
Definition: serial.h:102

◆ StopProgressDialog()

HRESULT WINAPI CProgressDialog::StopProgressDialog ( )
virtual

Definition at line 318 of file CProgressDialog.cpp.

319 {
320  EnterCriticalSection(&this->cs);
321  if (this->hwnd)
322  this->end_dialog();
323  LeaveCriticalSection(&this->cs);
324 
325  return S_OK;
326 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
CRITICAL_SECTION cs
#define S_OK
Definition: intsafe.h:51
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)

◆ Timer()

HRESULT WINAPI CProgressDialog::Timer ( DWORD  dwTimerAction,
LPCVOID  reserved 
)
virtual

Definition at line 432 of file CProgressDialog.cpp.

433 {
434  if (reserved)
435  FIXME("Reserved field not NULL but %p\n", reserved);
436 
437  return S_OK;
438 }
#define FIXME(fmt,...)
Definition: debug.h:111
r reserved
Definition: btrfs.c:2940
#define S_OK
Definition: intsafe.h:51

◆ update_dialog()

void CProgressDialog::update_dialog ( DWORD  dwUpdate)

Definition at line 109 of file CProgressDialog.cpp.

110 {
111  WCHAR empty[] = {0};
112 
113  if (dwUpdate & UPDATE_TITLE)
114  SetWindowTextW(this->hwnd, this->title);
115 
116  if (dwUpdate & UPDATE_LINE1)
117  SetDlgItemTextW(this->hwnd, IDC_TEXT_LINE, (this->isCancelled ? empty : this->lines[0]));
118  if (dwUpdate & UPDATE_LINE2)
119  SetDlgItemTextW(this->hwnd, IDC_TEXT_LINE+1, (this->isCancelled ? empty : this->lines[1]));
120  if (dwUpdate & UPDATE_LINE3)
121  SetDlgItemTextW(this->hwnd, IDC_TEXT_LINE+2, (this->isCancelled ? this->cancelMsg : this->lines[2]));
122 
124  {
125  ULONGLONG ullTotal = this->ullTotal;
127 
128  /* progress bar requires 32-bit coordinates */
129  while (ullTotal >> 32)
130  {
131  ullTotal >>= 1;
132  ullCompleted >>= 1;
133  }
134 
137  }
138 }
#define IDC_PROGRESS_BAR
Definition: resource.h:134
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define PBM_SETRANGE32
Definition: commctrl.h:2184
#define PBM_SETPOS
Definition: commctrl.h:2180
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
ULONGLONG ullTotal
#define IDC_TEXT_LINE
Definition: resource.h:135
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
__wchar_t WCHAR
Definition: xmlstorage.h:180
uint64_t ULONGLONG
Definition: typedefs.h:67
#define UPDATE_PROGRESS
unsigned long DWORD
Definition: ntddk_ex.h:95
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define UPDATE_TITLE
#define UPDATE_LINE2
BOOL empty
Definition: button.c:170
#define UPDATE_LINE3
#define UPDATE_LINE1
ULONGLONG ullCompleted

Member Data Documentation

◆ cancelMsg

LPWSTR CProgressDialog::cancelMsg

Definition at line 36 of file CProgressDialog.h.

Referenced by CProgressDialog(), SetCancelMsg(), update_dialog(), and ~CProgressDialog().

◆ clockHand

UINT CProgressDialog::clockHand

Definition at line 46 of file CProgressDialog.h.

Referenced by CProgressDialog(), and SetProgress64().

◆ cs

◆ dwFlags

DWORD CProgressDialog::dwFlags

Definition at line 33 of file CProgressDialog.h.

Referenced by StartProgressDialog().

◆ dwStartTime

DWORD CProgressDialog::dwStartTime

Definition at line 52 of file CProgressDialog.h.

Referenced by CProgressDialog().

◆ dwUpdate

DWORD CProgressDialog::dwUpdate

Definition at line 34 of file CProgressDialog.h.

Referenced by SetCancelMsg(), SetLine(), SetProgress64(), SetTitle(), and update_dialog().

◆ hwnd

HWND CProgressDialog::hwnd

Definition at line 32 of file CProgressDialog.h.

Referenced by GetWindow(), SetCancelMsg(), SetLine(), SetProgress64(), and SetTitle().

◆ hwndDisabledParent

HWND CProgressDialog::hwndDisabledParent

Definition at line 41 of file CProgressDialog.h.

Referenced by end_dialog(), and StartProgressDialog().

◆ isCancelled

BOOL CProgressDialog::isCancelled

Definition at line 38 of file CProgressDialog.h.

Referenced by HasUserCancelled(), SetCancelMsg(), SetLine(), and update_dialog().

◆ lines

LPWSTR CProgressDialog::lines[3]

Definition at line 35 of file CProgressDialog.h.

Referenced by CProgressDialog(), SetLine(), update_dialog(), and ~CProgressDialog().

◆ progressClock

progressMark CProgressDialog::progressClock[30]

Definition at line 51 of file CProgressDialog.h.

Referenced by CProgressDialog(), and SetProgress64().

◆ title

LPWSTR CProgressDialog::title

Definition at line 37 of file CProgressDialog.h.

Referenced by CProgressDialog(), SetTitle(), update_dialog(), and ~CProgressDialog().

◆ ullCompleted

ULONGLONG CProgressDialog::ullCompleted

Definition at line 39 of file CProgressDialog.h.

Referenced by SetProgress64(), and update_dialog().

◆ ullTotal

ULONGLONG CProgressDialog::ullTotal

Definition at line 40 of file CProgressDialog.h.

Referenced by SetProgress64(), and update_dialog().


The documentation for this class was generated from the following files: