summaryrefslogtreecommitdiff
path: root/NSCmpts/BackupSourceProp.cpp
blob: a311ffb1e072c2ae6407b1664b604952e2ed546e (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
// BackupSourceProp.cpp : Implementation of CBackupSourceProp
#include "stdafx.h"
#include "NSCmpts.h"
#include "BackupSourceProp.h"

/////////////////////////////////////////////////////////////////////////////
// CBackupSourceProp

LRESULT CBackupSourceProp::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	CSourceProp::OnInitDialog(uMsg, wParam, lParam, bHandled);

	// Let it choose an object for data
	m_Data.Initialize(m_nObjects, m_ppUnk);

	// Load the File List
	if(m_Data.IsInitialized())
		m_Data.GetStringSet(NS_BACKUP_REG_SOURCE, m_aPaths);

	UpdateData(false);

	// Change Caption Text
	SetDlgItemText(IDC_MESSAGE, _T("Backup these files or folders: "));

	return TRUE;
}