summaryrefslogtreecommitdiff
path: root/NetCmpts/ProgressDlg.cpp
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2003-09-17 19:07:23 +0000
committerStef Walter <stef@thewalter.net>2003-09-17 19:07:23 +0000
commit3f95d417d9e623ac0c74df8ef11d7a01846392dd (patch)
tree45ec73f2dc07eafd7f41a6f62a8cdfbaa279469f /NetCmpts/ProgressDlg.cpp
Initial ImportHEADmaster
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
+}
+