summaryrefslogtreecommitdiff
path: root/NetCmpts/ProgressDlg.cpp
blob: f5fe5597b26f8b687e9a4b913645f60d37751d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
}