home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////////////////////////////////////////////////////
- //
- // SVView.h : Interface of the CSVViewerView 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:
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #define __SVVIEW_H__
- #include "dib.h"
-
- #ifndef __CSURVIEW_H__
- #include "CSurView.h"
- #endif
-
- #ifndef __CHOTSPOT_H__
- #include "CHotspot.h"
- #endif
-
- class CSVViewerView : public CSurroundView
- {
-
- protected:
- CHotspot* m_currentHotspot; // Currently active hotspot
- CRectTracker m_rectTracker; // Hotspot CRectTracker
- BOOL m_bEdit; // Edit mode
- PDIB m_pHotspotDib;
- PDIB m_pAlteredDib;
-
- private:
- void DrawHotspots( CDC* pDC );
- void SetCurrentHotspot( CHotspot* pHotspot );
- BOOL GetHotspotRect( RECT* pRect, CHotspot* pHotspot = NULL );
- BOOL SetHotspotRect( RECT* pRect, CHotspot* pHotspot = NULL );
- CHotspot* PtInHotspot( CPoint point );
- void Alter( PDIB pDib );
-
- protected: // create from serialization only
- CSVViewerView();
- DECLARE_DYNCREATE(CSVViewerView)
-
- virtual ISurround* GetISurround();
-
- //{{AFX_MSG(CSVViewerView)
- afx_msg void OnLButtonDown( UINT nFlags, CPoint point );
- afx_msg void OnLButtonUp( UINT nFlags, CPoint point );
- afx_msg void OnRButtonDown( UINT nFlags, CPoint point );
- afx_msg void OnRButtonUp( UINT nFlags, CPoint point );
- afx_msg void OnMouseMove( UINT nFlags, CPoint point );
- afx_msg void OnLButtonDblClk( UINT nFlags, CPoint point );
- afx_msg void OnEditHotspot();
- afx_msg void OnDeleteHotspot();
- afx_msg void OnModeEdit();
- afx_msg void OnUpdateCurrentHotspot( CCmdUI* pCmdUI );
- afx_msg void CSVViewerView::OnUpdateModeEdit( CCmdUI* pCmdUI );
- afx_msg void CSVViewerView::OnUpdateModeRun( CCmdUI* pCmdUI );
- afx_msg void OnUpdateSave(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- public:
- virtual ~CSVViewerView();
-
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSVViewerView)
- public:
- virtual void OnDraw( CDC* pDC ); // overridden to draw this view
- protected:
- //}}AFX_VIRTUAL
- };
-
-
- /////////////////////////////////////////////////////////////////////////////
-
-