home *** CD-ROM | disk | FTP | other *** search
- // $$VAL:BaseViewHeader$$ : interface of the $$VAL:BaseViewClass$$ class
- //
- // This class provides a means for working with a Picture (bitmap)
- // view. This is a limited implementation in that all repaints
- // are full screen repaints. Palette changes are handled correctly.
- // This view class is intended to work with the CPictureDoc document
- // class.
- /////////////////////////////////////////////////////////////////////////////
-
- #ifndef $$VAL:BaseViewWrapper$$
- #define $$VAL:BaseViewWrapper$$
-
- $$IF:DocClassHeader$$
- #include "$$VAL:DocClassHeader$$"
- $$ENDIF$$
-
- class $$VAL:BaseViewClass$$ : public CScrollView
- {
- protected: // create from serialization only
- $$VAL:BaseViewClass$$();
- DECLARE_DYNCREATE(CPictureView)
-
- // Attributes
- public:
- $$VAL:DocClass$$* GetDocument();
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL($$VAL:BaseViewClass$$)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual void OnInitialUpdate();
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnUpdate(CScrollView* pSender, LPARAM lHint, CObject* pHint);
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~$$VAL:BaseViewClass$$();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
-
- // Generated message map functions
- protected:
- //{{AFX_MSG($$VAL:BaseViewClass$$)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- afx_msg BOOL OnQueryNewPalette();
- afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
- DECLARE_MESSAGE_MAP()
- };
-
- #ifndef _DEBUG // debug version in $$VAL:BaseViewCpp$$
- inline $$VAL:DocClass$$* $$VAL:BaseViewClass$$::GetDocument()
- { return ($$VAL:DocClass$$*)m_pDocument; }
- #endif
-
- #endif // $$VAL:BaseViewWrapper$$
-
- /////////////////////////////////////////////////////////////////////////////
-