home *** CD-ROM | disk | FTP | other *** search
/ Using Visual Basic 5 (Platinum Edition) / vb5.iso / ACTIVEX / SRDVID / DATA.Z / pshotsp.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-10  |  1.8 KB  |  74 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //    psHotsp.cpp : Implementation of the CPSHotspot class
  4. //
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. //  (C) Copyright Black Diamond Consulting, Inc 1996. All rights reserved.
  8. //
  9. //    You have a royalty-free right to use, modify, reproduce and 
  10. //    distribute the Sample Files (and/or any modified version) in 
  11. //    any way you find useful, provided that you agree that Black 
  12. //    Diamond Consulting has no warranty obligations or liability
  13. //    for any Sample Application Files which are modified. 
  14. //
  15. //    Revision History:
  16. //
  17. /////////////////////////////////////////////////////////////////////////////
  18.  
  19. #include "stdafx.h"
  20. #include "resource.h"
  21.  
  22. #ifndef __PSHOTSP_H__
  23.     #include "psHotsp.h"
  24. #endif
  25.  
  26. #ifndef __PPHSGEN_H__
  27.     #include "ppHSGen.h"
  28. #endif
  29.  
  30. #ifndef __CHOTSPOT_H__
  31.     #include "CHotspot.h"
  32. #endif
  33.  
  34. IMPLEMENT_DYNAMIC(CPSHotspot, CPropertySheet)
  35.  
  36. BEGIN_MESSAGE_MAP(CPSHotspot, CPropertySheet)
  37.     //{{AFX_MSG_MAP(CPSHotspot)
  38.     ON_WM_CREATE()
  39.     ON_COMMAND(ID_APPLY_NOW, OnApplyNow)
  40.     //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42.  
  43. CPSHotspot::CPSHotspot( CWnd* pWndParent, CSVViewerDoc* pDoc, CHotspot* pHotspot )
  44.            :CPropertySheet( AFX_IDS_APP_TITLE, pWndParent )
  45. {
  46.     m_pDocument = pDoc;
  47.     m_pHotspot = pHotspot;
  48.  
  49.     // Create the property pages
  50.     m_pGeneralPage = new CHSGeneralPage( m_pDocument, m_pHotspot );
  51.     AddPage( m_pGeneralPage );
  52. }
  53.  
  54. CPSHotspot::~CPSHotspot()
  55. {
  56.     delete m_pGeneralPage;
  57. }
  58.  
  59. int CPSHotspot::OnCreate(LPCREATESTRUCT lpCreateStruct)
  60. {
  61.     // Add the preview window to the property sheet.
  62.  
  63.     int nReturn;
  64.     if ((nReturn = CPropertySheet::OnCreate(lpCreateStruct)) != 0)
  65.         return nReturn;
  66.  
  67.     CenterWindow();
  68.     return 0;
  69. }
  70.  
  71. void CPSHotspot::OnApplyNow()
  72. {
  73. }
  74.