summaryrefslogtreecommitdiff
path: root/NSCmpts/EncryptSourceProp.cpp
blob: 17b47f7f138aa497261a11c98c2eb769fa670376 (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
// EncryptSourceProp.cpp : Implementation of CEncryptSourceProp
#include "stdafx.h"
#include "NSCmpts.h"
#include "EncryptSourceProp.h"

/////////////////////////////////////////////////////////////////////////////
// CEncryptSourceProp

LRESULT CEncryptSourceProp::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	// Let it initialize
	CSourceProp::OnInitDialog(uMsg, wParam, lParam, bHandled);

	// Load the File List
	m_Data.Initialize(m_nObjects, m_ppUnk);

	if(m_Data.IsInitialized())
		m_Data.GetStringSet(NS_ENCRYPT_REG_FILES, m_aPaths);

	// Set Icon and Caption for Xpy
	CStatic icon = GetDlgItem(IDC_ICO);
	icon.SetIcon(::LoadIcon(_Module.m_hInstResource, MAKEINTRESOURCE(IDI_WXPY)));
	SetDlgItemText(IDC_MESSAGE, _T("Encrypt these files or folders: "));

	UpdateData(false);

	return TRUE;
}