GraphHaveData.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- // GraphHaveData.h: interface for the CGraphHaveData class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_GRAPHHAVEDATA_H__14FF77F5_32BF_4F7B_8F77_C247CF74D250__INCLUDED_)
- #define AFX_GRAPHHAVEDATA_H__14FF77F5_32BF_4F7B_8F77_C247CF74D250__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CGraphHaveData
- {
- public:
- CGraphHaveData();
- virtual ~CGraphHaveData();
- BOOL Create(CRect rc, CWnd* pParent);
- void SetData(const vector<bool>& vData);
- void SetData(const vector<long>& vData);
- void SetSize (CRect rc);
- void Draw(CDC& dc, CPoint ptOffset = CPoint(0, 0));
- private:
- void OnSizeChange();
- vector<long> m_vData;
- vector<long> m_vShowData;
- long m_lPenWidth;
- CRect m_rc;
- CWnd* m_pParent;
- };
- #endif // !defined(AFX_GRAPHHAVEDATA_H__14FF77F5_32BF_4F7B_8F77_C247CF74D250__INCLUDED_)