52 lines
1.2 KiB
C++
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);
|
|
}
|