www.pudn.com > agentnet.zip > SetupAgentPage.cpp
// SetupAgentPage.cpp : implementation file
//
#include "stdafx.h"
#include "AgentNetClient.h"
#include "SetupAgentPage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSetupAgentPage property page
IMPLEMENT_DYNCREATE(CSetupAgentPage, CPropertyPage)
CSetupAgentPage::CSetupAgentPage() : CPropertyPage(CSetupAgentPage::IDD)
{
//{{AFX_DATA_INIT(CSetupAgentPage)
m_strAgentCharPath = _T("");
//}}AFX_DATA_INIT
}
CSetupAgentPage::~CSetupAgentPage()
{
}
void CSetupAgentPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSetupAgentPage)
DDX_Text(pDX, IDC_EDIT_AGENT_CHAR_FILE_PATH, m_strAgentCharPath);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSetupAgentPage, CPropertyPage)
//{{AFX_MSG_MAP(CSetupAgentPage)
ON_BN_CLICKED(IDC_BUTTON_SHOW_FILE, OnButtonShowFile)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSetupAgentPage message handlers
void CSetupAgentPage::OnButtonShowFile()
{
// TODO: Add your control notification handler code here
CFileDialog dlg(TRUE);
if (dlg.DoModal()==IDOK)
{
m_strAgentCharPath=dlg.GetPathName();
UpdateData(FALSE);
}
}