|
// BusinessPage.cpp : implementation file
//
#include "stdafx.h"
#include "Address.h"
#include "BusinessPage.h"
#include "HyperLink.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBusinessPage property page
IMPLEMENT_DYNCREATE(CBusinessPage, CPropertyPage)
CBusinessPage::CBusinessPage() : CPropertyPage(CBusinessPage::IDD)
{
//{{AFX_DATA_INIT(CBusinessPage)
m_strBusinessCity = _T("");
m_strBusinessCountry = _T("");
m_strBusinessPhone = _T("");
m_strBusinessFax = _T("");
m_strBusinessPostalCode = _T("");
m_strBusinessState = _T("");
m_strBusinessStreet = _T("");
m_strBusinessWebPage = _T("");
m_strCompany = _T("");
m_strDepartment = _T("");
m_strJobTitle = _T("");
m_strOfficeLocation = _T("");
m_strPager = _T("");
//}}AFX_DATA_INIT
}
CBusinessPage::~CBusinessPage()
{
}
void CBusinessPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBusinessPage)
DDX_Text(pDX, IDC_BUSINESSCITY, m_strBusinessCity);
DDX_Text(pDX, IDC_BUSINESSCOUNTRY, m_strBusinessCountry);
DDX_Text(pDX, IDC_BUSINESSPHONE, m_strBusinessPhone);
DDX_Text(pDX, IDC_BUSINESSFAX, m_strBusinessFax);
DDX_Text(pDX, IDC_BUSINESSPOSTALCODE, m_strBusinessPostalCode);
DDX_Text(pDX, IDC_BUSINESSSTATE, m_strBusinessState);
DDX_Text(pDX, IDC_BUSINESSSTREET, m_strBusinessStreet);
DDX_Text(pDX, IDC_BUSINESSWEBPAGE, m_strBusinessWebPage);
DDX_Text(pDX, IDC_COMPANY, m_strCompany);
DDX_Text(pDX, IDC_DEPARTMENT, m_strDepartment);
DDX_Text(pDX, IDC_JOBTITLE, m_strJobTitle);
DDX_Text(pDX, IDC_OFFICELOCATION, m_strOfficeLocation);
DDX_Text(pDX, IDC_PAGER, m_strPager);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CBusinessPage, CPropertyPage)
//{{AFX_MSG_MAP(CBusinessPage)
ON_BN_CLICKED(IDC_GOBUSINESSWEBPAGE, OnGobusinesswebpage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBusinessPage message handlers
void CBusinessPage::OnGobusinesswebpage()
{
CString strURL;
GetDlgItemText(IDC_BUSINESSWEBPAGE, strURL);
if (!strURL.IsEmpty())
CHyperLink::GotoURL(strURL, SW_SHOWNORMAL);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.