www.pudn.com > TetrisWang.zip > PropSheetOption.cpp
// PropSheetOption.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "PropSheetOption.h"
#include "DlgOption.h"
#include "ChildView.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPropSheetOption
IMPLEMENT_DYNAMIC(CPropSheetOption, CPropertySheet)
CPropSheetOption::CPropSheetOption(CWnd* pWndParent)
: CPropertySheet(IDS_PROPSHT_CAPTION, pWndParent)
{
// Add all of the property pages here. Note that
// the order that they appear in here will be
// the order they appear in on screen. By default,
// the first page of the set is the active one.
// One way to make a different property page the
// active one is to call SetActivePage().
AddPage(&m_Page1);
AddPage(&m_Page2);
AddPage(&m_Page3);
AddPage(&m_Page4);
CChildView* pView = ((CDlgOption*)pWndParent)->m_pView;
m_Page1.SetView(pView);
m_Page2.SetView(pView);
m_Page3.SetView(pView);
m_Page4.SetView(pView);
}
CPropSheetOption::~CPropSheetOption()
{
}
BEGIN_MESSAGE_MAP(CPropSheetOption, CPropertySheet)
//{{AFX_MSG_MAP(CPropSheetOption)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPropSheetOption message handlers