Click here to Skip to main content
11,503,750 members (61,635 online)
Click here to Skip to main content
Add your own
alternative version

Address Book

, 6 Aug 2000 CPOL 231.2K 5K 93
Address Book application
// 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__;

// CBusinessPage property page

IMPLEMENT_DYNCREATE(CBusinessPage, CPropertyPage)

CBusinessPage::CBusinessPage() : CPropertyPage(CBusinessPage::IDD)
	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("");


void CBusinessPage::DoDataExchange(CDataExchange* pDX)
	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);

BEGIN_MESSAGE_MAP(CBusinessPage, CPropertyPage)

// CBusinessPage message handlers

void CBusinessPage::OnGobusinesswebpage() 
	CString 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 article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Xavier John
Software Developer
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 7 Aug 2000
Article Copyright 1999 by Xavier John
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid