PagePreview.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #if !defined(AFX_CPagePreview_H__E7EDBA8B_E2C6_4927_95BC_C2A01B8ACFAD__INCLUDED_)
  2. #define AFX_CPagePreview_H__E7EDBA8B_E2C6_4927_95BC_C2A01B8ACFAD__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // CPagePreview.h : header file
  7. //
  8. #include "Page.h"
  9. #include "PageData.h"
  10. #include "BaseObj.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPagePreview dialog
  13. class CPagePreview : public CPage, CNVAPIExamplePage<CPagePreview>
  14. , public BaseObj, public NeroVisionAPI::IPreviewCallback
  15. {
  16. // Construction
  17. public:
  18. CPagePreview(CSheet * pParentSheet); // standard constructor
  19. // Dialog Data
  20. //{{AFX_DATA(CPagePreview)
  21. enum { IDD = IDD_PREVIEW_PAGE };
  22. CSliderCtrl m_slider;
  23. //}}AFX_DATA
  24. // Overrides
  25. // ClassWizard generated virtual function overrides
  26. //{{AFX_VIRTUAL(CPagePreview)
  27. protected:
  28. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. protected:
  32. // Generated message map functions
  33. //{{AFX_MSG(CPagePreview)
  34. virtual BOOL OnInitDialog();
  35. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  36. //}}AFX_MSG
  37. DECLARE_MESSAGE_MAP()
  38. public:
  39. bool Create (void);
  40. bool OnBack (void);
  41. void OnChangeState (bool bActivate, bool bForward);
  42. NeroVisionAPI::IPreviewPtr m_preview;
  43. IMPL_IUNKNOWN
  44. IMPL_INTERFACE(NeroVisionAPI::IPreviewCallback)
  45. STDMETHODIMP raw_NotifyPosChanged(double pos, int title, int chapter);
  46. STDMETHODIMP raw_NotifyPlaybackEnd();
  47. void SetSliderUpdate(bool enable) { m_setSlider = enable; }
  48. private:
  49. bool m_setSlider;
  50. };
  51. //{{AFX_INSERT_LOCATION}}
  52. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  53. #endif // !defined(AFX_CPagePreview_H__E7EDBA8B_E2C6_4927_95BC_C2A01B8ACFAD__INCLUDED_)