home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////////////////////////////////////////////////////
- //
- // psHotsp.cpp : Implementation of the CPSHotspot class
- //
- /////////////////////////////////////////////////////////////////////////////
- //
- // (C) Copyright Black Diamond Consulting, Inc 1996. All rights reserved.
- //
- // You have a royalty-free right to use, modify, reproduce and
- // distribute the Sample Files (and/or any modified version) in
- // any way you find useful, provided that you agree that Black
- // Diamond Consulting has no warranty obligations or liability
- // for any Sample Application Files which are modified.
- //
- // Revision History:
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #include "stdafx.h"
- #include "resource.h"
-
- #ifndef __PSHOTSP_H__
- #include "psHotsp.h"
- #endif
-
- #ifndef __PPHSGEN_H__
- #include "ppHSGen.h"
- #endif
-
- #ifndef __CHOTSPOT_H__
- #include "CHotspot.h"
- #endif
-
- IMPLEMENT_DYNAMIC(CPSHotspot, CPropertySheet)
-
- BEGIN_MESSAGE_MAP(CPSHotspot, CPropertySheet)
- //{{AFX_MSG_MAP(CPSHotspot)
- ON_WM_CREATE()
- ON_COMMAND(ID_APPLY_NOW, OnApplyNow)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- CPSHotspot::CPSHotspot( CWnd* pWndParent, CSVViewerDoc* pDoc, CHotspot* pHotspot )
- :CPropertySheet( AFX_IDS_APP_TITLE, pWndParent )
- {
- m_pDocument = pDoc;
- m_pHotspot = pHotspot;
-
- // Create the property pages
- m_pGeneralPage = new CHSGeneralPage( m_pDocument, m_pHotspot );
- AddPage( m_pGeneralPage );
- }
-
- CPSHotspot::~CPSHotspot()
- {
- delete m_pGeneralPage;
- }
-
- int CPSHotspot::OnCreate(LPCREATESTRUCT lpCreateStruct)
- {
- // Add the preview window to the property sheet.
-
- int nReturn;
- if ((nReturn = CPropertySheet::OnCreate(lpCreateStruct)) != 0)
- return nReturn;
-
- CenterWindow();
- return 0;
- }
-
- void CPSHotspot::OnApplyNow()
- {
- }
-