CachedScrollView.h
资源名称:08.zip [点击查看]
上传用户:ynjin1970
上传日期:2014-10-13
资源大小:6438k
文件大小:2k
源码类别:
中间件编程
开发平台:
Visual C++
- #if !defined(AFX_CACHEDSCROLLVIEW_H__E4A869C6_123A_4D16_9D9C_2B4C0EDEE257__INCLUDED_)
- #define AFX_CACHEDSCROLLVIEW_H__E4A869C6_123A_4D16_9D9C_2B4C0EDEE257__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // CachedScrollView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CCachedScrollView view
- class CCachedScrollView : public CScrollView
- {
- DECLARE_DYNCREATE(CCachedScrollView)
- protected:
- CCachedScrollView();
- public:
- BOOL CacheValid;
- CRect CacheRect;
- void SetCacheSize(SIZE sz) {
- if (CacheRect.IsRectNull())
- CacheRect=CRect(CPoint(0,0),sz);
- }
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCachedScrollView)
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual void OnInitialUpdate(); // first time after construct
- //}}AFX_VIRTUAL
- private:
- CBitmap CacheBitmap;
- protected:
- virtual ~CCachedScrollView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- //{{AFX_MSG(CCachedScrollView)
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CACHEDSCROLLVIEW_H__E4A869C6_123A_4D16_9D9C_2B4C0EDEE257__INCLUDED_)