Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version
Go to top

Address Book

, 6 Aug 2000
Address Book application
// 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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Xavier John
Software Developer
United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 7 Aug 2000
Article Copyright 1999 by Xavier John
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid