// OptionsSheet.cpp : implementation file // #include "stdafx.h" #include "SegDemo.h" #include "OptionsSheet.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // COptionsSheet IMPLEMENT_DYNAMIC(COptionsSheet, CPropertySheet) COptionsSheet::COptionsSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(nIDCaption, pParentWnd, iSelectPage) { } COptionsSheet::COptionsSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(pszCaption, pParentWnd, iSelectPage) { } COptionsSheet::~COptionsSheet() { } BEGIN_MESSAGE_MAP(COptionsSheet, CPropertySheet) //{{AFX_MSG_MAP(COptionsSheet) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // COptionsSheet message handlers void COptionsSheet::SetMRCPageOptions(LPMRCOPTIONS pMrcOptions) { if(pMrcOptions) { m_MrcPage.m_pMrcOptions = pMrcOptions; AddPage(&m_MrcPage); } } void COptionsSheet::SetPDFPageOptions(LPPDFOPTIONS pPdfOptions) { if(pPdfOptions) { m_PdfPage.m_pPdfOptions = pPdfOptions; AddPage(&m_PdfPage); } } void COptionsSheet::SetSegmentationPageOptions(LPSEGMENTOPTIONS pSegmentOptions) { if(pSegmentOptions) { m_SegPage.m_pSegmentOptions = pSegmentOptions; AddPage(&m_SegPage); } } void COptionsSheet::SetCombinePageOptions(LPCOMBINEOPTIONS pCombineOptions) { if(pCombineOptions) { m_CombinePage.m_pCombineOptions = pCombineOptions; AddPage(&m_CombinePage); } } void COptionsSheet::SetColorsPageOptions(LPCOLORSOPTIONS pColorsOptions) { if(pColorsOptions) { m_ColorsPage.m_pColorsOptions = pColorsOptions; AddPage(&m_ColorsPage); } }