summaryrefslogtreecommitdiff
path: root/NetCmpts/ProgressDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NetCmpts/ProgressDlg.cpp')
-rw-r--r--NetCmpts/ProgressDlg.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/NetCmpts/ProgressDlg.cpp b/NetCmpts/ProgressDlg.cpp
new file mode 100644
index 0000000..f5fe559
--- /dev/null
+++ b/NetCmpts/ProgressDlg.cpp
@@ -0,0 +1,45 @@
+// AddingFontsDlg.cpp : implementation file
+//
+
+#include "stdafx.h"
+#include "resource.h"
+#include "ProgressDlg.h"
+
+/////////////////////////////////////////////////////////////////////////////
+// CProgressDlg dialog
+
+
+CProgressDlg::CProgressDlg()
+{
+ m_bCancel = false;
+}
+
+
+/////////////////////////////////////////////////////////////////////////////
+// CProgressDlg message handlers
+
+LRESULT CProgressDlg::OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
+{
+ // Remove Window
+ DestroyWindow();
+
+ // Set Cancel Flag
+ m_bCancel = true;
+
+ return 0;
+}
+
+LRESULT CProgressDlg::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
+{
+ return OnCancel(0, 0, NULL, bHandled);
+}
+
+
+LRESULT CProgressDlg::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
+{
+ m_ctlProgress = GetDlgItem(IDC_PROGRESS2);
+ CenterWindow(GetDesktopWindow());
+
+ return TRUE; // return TRUE unless you set the focus to a control
+}
+