|
// HomePage.cpp : implementation file
//
#include "stdafx.h"
#include "Address.h"
#include "HomePage.h"
#include "HyperLink.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHomePage property page
IMPLEMENT_DYNCREATE(CHomePage, CPropertyPage)
CHomePage::CHomePage() : CPropertyPage(CHomePage::IDD)
{
//{{AFX_DATA_INIT(CHomePage)
m_strCarPhone = _T("");
m_strHomeCity = _T("");
m_strHomeCountry = _T("");
m_strHomeFax = _T("");
m_strHomePhone = _T("");
m_strHomePostalCode = _T("");
m_strHomeState = _T("");
m_strHomeStreet = _T("");
m_strPersonalWebPage = _T("");
//}}AFX_DATA_INIT
}
CHomePage::~CHomePage()
{
}
void CHomePage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CHomePage)
DDX_Text(pDX, IDC_CARPHONE, m_strCarPhone);
DDX_Text(pDX, IDC_HOMECITY, m_strHomeCity);
DDX_Text(pDX, IDC_HOMECOUNTRY, m_strHomeCountry);
DDX_Text(pDX, IDC_HOMEFAX, m_strHomeFax);
DDX_Text(pDX, IDC_HOMEPHONE, m_strHomePhone);
DDX_Text(pDX, IDC_HOMEPOSTALCODE, m_strHomePostalCode);
DDX_Text(pDX, IDC_HOMESTATE, m_strHomeState);
DDX_Text(pDX, IDC_HOMESTREET, m_strHomeStreet);
DDX_Text(pDX, IDC_PERSONALWEBPAGE, m_strPersonalWebPage);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CHomePage, CPropertyPage)
//{{AFX_MSG_MAP(CHomePage)
ON_BN_CLICKED(IDC_GOPERSONALWEBPAGE, OnGopersonalwebpage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CHomePage message handlers
void CHomePage::OnGopersonalwebpage()
{
CString strURL;
GetDlgItemText(IDC_PERSONALWEBPAGE, 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.