This repository has been archived on 2024-03-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ContactBook/PrefPage.cpp
2024-03-20 09:28:18 -05:00

52 lines
1.2 KiB
C++

// PrefPage.cpp : implementation file
//
#include "stdafx.h"
#include "CB32.h"
#include "PrefPage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPrefPage
IMPLEMENT_DYNAMIC(CPrefPage, CPropertySheet)
CPrefPage::CPrefPage(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
}
CPrefPage::CPrefPage(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
}
CPrefPage::~CPrefPage()
{
}
BEGIN_MESSAGE_MAP(CPrefPage, CPropertySheet)
//{{AFX_MSG_MAP(CPrefPage)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPrefPage message handlers
void CPrefPage::AddCtrlPages()
{
m_hIcn = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_psh.dwFlags |= PSP_USEHICON;
m_psh.hIcon = m_hIcn;
AddPage(&m_prefset);
AddPage(&m_prefcol);
AddPage(&m_preford);
}