219 lines
6.3 KiB
C++
219 lines
6.3 KiB
C++
// ColPage.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "CB32.h"
|
|
#include "ColPage.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CColPage property page
|
|
|
|
IMPLEMENT_DYNCREATE(CColPage, CPropertyPage)
|
|
|
|
CColPage::CColPage() : CPropertyPage(CColPage::IDD)
|
|
{
|
|
//{{AFX_DATA_INIT(CColPage)
|
|
m_cadd1 = 0;
|
|
m_cadd2 = 0;
|
|
m_ccell = 0;
|
|
m_ccellx = 0;
|
|
m_ccity = 0;
|
|
m_ccountry = 0;
|
|
m_cemail1 = 0;
|
|
m_cemail2 = 0;
|
|
m_cfax = 0;
|
|
m_cfaxx = 0;
|
|
m_cfname = 0;
|
|
m_chomep = 0;
|
|
m_chomepx = 0;
|
|
m_clname = 0;
|
|
m_cmi = 0;
|
|
m_cpager = 0;
|
|
m_cpagerc = 0;
|
|
m_cpagerx = 0;
|
|
m_cstate = 0;
|
|
m_ctitle = 0;
|
|
m_cweb1 = 0;
|
|
m_cweb2 = 0;
|
|
m_cworkp = 0;
|
|
m_cworkpx = 0;
|
|
m_czip = 0;
|
|
m_ccadd1 = 0;
|
|
m_ccadd2 = 0;
|
|
m_ccomp = 0;
|
|
m_cdept = 0;
|
|
m_cmgr = 0;
|
|
m_cposn = 0;
|
|
m_cnotes = 0;
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
CColPage::~CColPage()
|
|
{
|
|
}
|
|
|
|
void CColPage::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CPropertyPage::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CColPage)
|
|
DDX_Control(pDX, IDC_SPINCNOTES, m_spincnotes);
|
|
DDX_Control(pDX, IDC_SPINCPOSN, m_spincposn);
|
|
DDX_Control(pDX, IDC_SPINCMGR, m_spincmgr);
|
|
DDX_Control(pDX, IDC_SPINCDEPT, m_spincdept);
|
|
DDX_Control(pDX, IDC_SPINCCOMP, m_spinccomp);
|
|
DDX_Control(pDX, IDC_SPINCCADD2, m_spinccadd2);
|
|
DDX_Control(pDX, IDC_SPINCCADD1, m_spinccadd1);
|
|
DDX_Control(pDX, IDC_SPINCZIP, m_spinczip);
|
|
DDX_Control(pDX, IDC_SPINCWORKPX, m_spincworkpx);
|
|
DDX_Control(pDX, IDC_SPINCWORKP, m_spincworkp);
|
|
DDX_Control(pDX, IDC_SPINCWEB2, m_spincweb2);
|
|
DDX_Control(pDX, IDC_SPINCWEB1, m_spincweb1);
|
|
DDX_Control(pDX, IDC_SPINCTITLE, m_spinctitle);
|
|
DDX_Control(pDX, IDC_SPINCSTATE, m_spincstate);
|
|
DDX_Control(pDX, IDC_SPINCPAGERX, m_spincpagerx);
|
|
DDX_Control(pDX, IDC_SPINCPAGERC, m_spincpagerc);
|
|
DDX_Control(pDX, IDC_SPINCPAGER, m_spincpager);
|
|
DDX_Control(pDX, IDC_SPINCMI, m_spincmi);
|
|
DDX_Control(pDX, IDC_SPINCLNAME, m_spinclname);
|
|
DDX_Control(pDX, IDC_SPINCHOMEPX, m_spinchomepx);
|
|
DDX_Control(pDX, IDC_SPINCHOMEP, m_spinchomep);
|
|
DDX_Control(pDX, IDC_SPINCFNAME, m_spincfname);
|
|
DDX_Control(pDX, IDC_SPINCFAXX, m_spincfaxx);
|
|
DDX_Control(pDX, IDC_SPINCFAX, m_spincfax);
|
|
DDX_Control(pDX, IDC_SPINCEMAIL2, m_spincemail2);
|
|
DDX_Control(pDX, IDC_SPINCEMAIL1, m_spincemail1);
|
|
DDX_Control(pDX, IDC_SPINCCOUNTRY, m_spinccountry);
|
|
DDX_Control(pDX, IDC_SPINCCITY, m_spinccity);
|
|
DDX_Control(pDX, IDC_SPINCCELLX, m_spinccellx);
|
|
DDX_Control(pDX, IDC_SPINCCELL, m_spinccell);
|
|
DDX_Control(pDX, IDC_SPINCADD2, m_spincadd2);
|
|
DDX_Control(pDX, IDC_SPINCADD1, m_spincadd1);
|
|
DDX_Text(pDX, IDC_CADD1, m_cadd1);
|
|
DDX_Text(pDX, IDC_CADD2, m_cadd2);
|
|
DDX_Text(pDX, IDC_CCELL, m_ccell);
|
|
DDX_Text(pDX, IDC_CCELLX, m_ccellx);
|
|
DDX_Text(pDX, IDC_CCITY, m_ccity);
|
|
DDX_Text(pDX, IDC_CCOUNTRY, m_ccountry);
|
|
DDX_Text(pDX, IDC_CEMAIL1, m_cemail1);
|
|
DDX_Text(pDX, IDC_CEMAIL2, m_cemail2);
|
|
DDX_Text(pDX, IDC_CFAX, m_cfax);
|
|
DDX_Text(pDX, IDC_CFAXX, m_cfaxx);
|
|
DDX_Text(pDX, IDC_CFNAME, m_cfname);
|
|
DDX_Text(pDX, IDC_CHOMEP, m_chomep);
|
|
DDX_Text(pDX, IDC_CHOMEPX, m_chomepx);
|
|
DDX_Text(pDX, IDC_CLNAME, m_clname);
|
|
DDX_Text(pDX, IDC_CMI, m_cmi);
|
|
DDX_Text(pDX, IDC_CPAGER, m_cpager);
|
|
DDX_Text(pDX, IDC_CPAGERC, m_cpagerc);
|
|
DDX_Text(pDX, IDC_CPAGERX, m_cpagerx);
|
|
DDX_Text(pDX, IDC_CSTATE, m_cstate);
|
|
DDX_Text(pDX, IDC_CTITLE, m_ctitle);
|
|
DDX_Text(pDX, IDC_CWEB1, m_cweb1);
|
|
DDX_Text(pDX, IDC_CWEB2, m_cweb2);
|
|
DDX_Text(pDX, IDC_CWORKP, m_cworkp);
|
|
DDX_Text(pDX, IDC_CWORKPX, m_cworkpx);
|
|
DDX_Text(pDX, IDC_CZIP, m_czip);
|
|
DDX_Text(pDX, IDC_CCADD1, m_ccadd1);
|
|
DDX_Text(pDX, IDC_CCADD2, m_ccadd2);
|
|
DDX_Text(pDX, IDC_CCOMP, m_ccomp);
|
|
DDX_Text(pDX, IDC_CDEPT, m_cdept);
|
|
DDX_Text(pDX, IDC_CMGR, m_cmgr);
|
|
DDX_Text(pDX, IDC_CPOSN, m_cposn);
|
|
DDX_Text(pDX, IDC_CNOTES, m_cnotes);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CColPage, CPropertyPage)
|
|
//{{AFX_MSG_MAP(CColPage)
|
|
ON_BN_CLICKED(IDC_RESETSIZE, OnResetsize)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CColPage message handlers
|
|
|
|
BOOL CColPage::OnInitDialog()
|
|
{
|
|
CPropertyPage::OnInitDialog();
|
|
|
|
m_spinclname.SetRange(0,300);
|
|
m_spincfname.SetRange(0,300);
|
|
m_spincmi.SetRange(0,300);
|
|
m_spinctitle.SetRange(0,300);
|
|
m_spincadd1.SetRange(0,300);
|
|
m_spincadd2.SetRange(0,300);
|
|
m_spinccity.SetRange(0,300);
|
|
m_spincstate.SetRange(0,300);
|
|
m_spinczip.SetRange(0,300);
|
|
m_spinccountry.SetRange(0,300);
|
|
|
|
m_spinccomp.SetRange(0,300);
|
|
m_spincdept.SetRange(0,300);
|
|
m_spincposn.SetRange(0,300);
|
|
m_spincmgr.SetRange(0,300);
|
|
m_spinccadd1.SetRange(0,300);
|
|
m_spinccadd2.SetRange(0,300);
|
|
|
|
m_spinchomepx.SetRange(0,300);
|
|
m_spinchomep.SetRange(0,300);
|
|
m_spincworkpx.SetRange(0,300);
|
|
m_spincworkp.SetRange(0,300);
|
|
m_spincfaxx.SetRange(0,300);
|
|
m_spincfax.SetRange(0,300);
|
|
m_spincpagerx.SetRange(0,300);
|
|
m_spincpagerc.SetRange(0,300);
|
|
m_spincpager.SetRange(0,300);
|
|
m_spinccellx.SetRange(0,300);
|
|
m_spinccell.SetRange(0,300);
|
|
|
|
m_spincemail1.SetRange(0,300);
|
|
m_spincemail2.SetRange(0,300);
|
|
m_spincweb1.SetRange(0,300);
|
|
m_spincweb2.SetRange(0,300);
|
|
m_spincnotes.SetRange(0,300);
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
void CColPage::OnResetsize()
|
|
{
|
|
SetDlgItemInt(IDC_CLNAME,100);
|
|
SetDlgItemInt(IDC_CFNAME,100);
|
|
SetDlgItemInt(IDC_CMI,40);
|
|
SetDlgItemInt(IDC_CTITLE,40);
|
|
SetDlgItemInt(IDC_CADD1,170);
|
|
SetDlgItemInt(IDC_CADD2,170);
|
|
SetDlgItemInt(IDC_CCOUNTRY,110);
|
|
SetDlgItemInt(IDC_CSTATE,90);
|
|
SetDlgItemInt(IDC_CZIP,60);
|
|
SetDlgItemInt(IDC_CCOMP,100);
|
|
SetDlgItemInt(IDC_DEPT,100);
|
|
SetDlgItemInt(IDC_CPOSN,100);
|
|
SetDlgItemInt(IDC_CMGR,100);
|
|
SetDlgItemInt(IDC_CCADD1,100);
|
|
SetDlgItemInt(IDC_CCADD2,100);
|
|
SetDlgItemInt(IDC_CHOMEP,120);
|
|
SetDlgItemInt(IDC_CHOMEPX,60);
|
|
SetDlgItemInt(IDC_CWORKP,120);
|
|
SetDlgItemInt(IDC_CWORKPX,60);
|
|
SetDlgItemInt(IDC_CCELL,120);
|
|
SetDlgItemInt(IDC_CCELLX,60);
|
|
SetDlgItemInt(IDC_CPAGER,120);
|
|
SetDlgItemInt(IDC_CPAGERC,120);
|
|
SetDlgItemInt(IDC_CPAGERX,60);
|
|
SetDlgItemInt(IDC_CFAX,120);
|
|
SetDlgItemInt(IDC_CFAXX,60);
|
|
SetDlgItemInt(IDC_CEMAIL1,200);
|
|
SetDlgItemInt(IDC_CEMAIL2,200);
|
|
SetDlgItemInt(IDC_CWEB1,280);
|
|
SetDlgItemInt(IDC_CWEB2,280);
|
|
SetDlgItemInt(IDC_CNOTES,280);
|
|
}
|