diff options
author | Stef Walter <stef@thewalter.net> | 2003-09-17 19:07:23 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2003-09-17 19:07:23 +0000 |
commit | 3f95d417d9e623ac0c74df8ef11d7a01846392dd (patch) | |
tree | 45ec73f2dc07eafd7f41a6f62a8cdfbaa279469f /NetCmpts/ProgressDlg.cpp |
Diffstat (limited to 'NetCmpts/ProgressDlg.cpp')
-rw-r--r-- | NetCmpts/ProgressDlg.cpp | 45 |
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 +} + |