• 大小: 0.27M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-28
  • 语言: C/C++
  • 标签: c  

资源简介


柱状图绘制模块封装为类,可直接使用,文件为:BarGraph.h、BarGraph.cpp、BarGraphLegend.h、BarGraphLegend.cpp、BarGraphSeries.h、BarGraphSeries.cpp。使用方法见demo。 demo基于vs2008,类本身兼容其他版本vs

资源截图

代码片段和文件信息

#include “StdAfx.h“
#include “BarGraph.h“

CBarGraph::CBarGraph(void)
{
m_iTickSpace = 10;
m_iYApexPoint = 0;
m_iXApexPoint = 0;
m_iYAxisHeight = 0;
m_iXAxisWidth = 0;
m_iTickRange = 100;
m_iSeriesSize = 0;
m_iLegendSize = 0;
m_iLegendWidth = 0;
m_iXAxisLabelLength = 0;

m_strAxisYLabel.Empty();
m_strAxisXLabel.Empty();
m_strGraphtitle.Empty();

m_pGraphSeries = NULL;

m_crBKColor = RGB(255 255 255);

m_crDataColor[0] = RGB(02550); // green
m_crDataColor[1] = RGB(00255); // blue
m_crDataColor[2] = RGB(25500); // red
m_crDataColor[3] = RGB(2552550); // yellow
m_crDataColor[4] = RGB(25515351); // orange
m_crDataColor[5] = RGB(25551153); // hot pink
m_crDataColor[6] = RGB(1530204); // purple
m_crDataColor[7] = RGB(0255255); // cyan
m_crDataColor[8] = RGB(000); // black
m_crDataColor[9] = RGB(255255255); // white

}

CBarGraph::~CBarGraph(void)
{
if (NULL != m_pGraphSeri

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      10049  2012-11-23 09:45  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph.cpp

     文件       1405  2012-11-23 09:45  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph.h

     文件        775  2012-11-22 10:10  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraphLegend.cpp

     文件        432  2012-11-22 17:17  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraphLegend.h

     文件        663  2012-11-21 10:07  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraphSeries.cpp

     文件        461  2012-11-21 10:07  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraphSeries.h

     文件     578032  2012-11-23 15:46  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph_DlgDemo.aps

     文件       1777  2012-11-21 09:43  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph_DlgDemo.cpp

     文件        501  2012-11-21 09:43  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph_DlgDemo.h

     文件       5739  2012-11-23 15:46  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph_DlgDemo.rc

     文件       6066  2012-11-23 15:14  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph_DlgDemo.vcproj

     文件       1411  2012-11-26 14:25  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph_DlgDemo.vcproj.HVTEAM.zhut.user

     文件       6729  2012-11-26 14:22  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph_DlgDemoDlg.cpp

     文件        823  2012-11-23 15:46  BarGraph_DlgDemo\BarGraph_DlgDemo\BarGraph_DlgDemoDlg.h

     文件       3053  2012-11-21 09:43  BarGraph_DlgDemo\BarGraph_DlgDemo\ReadMe.txt

    .......     21630  2003-07-24 09:52  BarGraph_DlgDemo\BarGraph_DlgDemo\res\BarGraph_DlgDemo.ico

     文件        372  2012-11-21 09:43  BarGraph_DlgDemo\BarGraph_DlgDemo\res\BarGraph_DlgDemo.rc2

    ..A.SH.      7168  2012-11-23 17:35  BarGraph_DlgDemo\BarGraph_DlgDemo\res\Thumbs.db

     文件        871  2012-11-23 15:46  BarGraph_DlgDemo\BarGraph_DlgDemo\resource.h

     文件        147  2012-11-21 09:43  BarGraph_DlgDemo\BarGraph_DlgDemo\stdafx.cpp

     文件       1796  2012-11-21 09:43  BarGraph_DlgDemo\BarGraph_DlgDemo\stdafx.h

     文件       1030  2012-11-21 09:43  BarGraph_DlgDemo\BarGraph_DlgDemo\targetver.h

     文件        914  2012-11-21 09:43  BarGraph_DlgDemo\BarGraph_DlgDemo.sln

    ..A..H.     41984  2012-11-26 14:25  BarGraph_DlgDemo\BarGraph_DlgDemo.suo

     目录          0  2012-11-26 14:29  BarGraph_DlgDemo\BarGraph_DlgDemo\res

     目录          0  2012-11-26 14:28  BarGraph_DlgDemo\BarGraph_DlgDemo

     目录          0  2012-11-26 14:29  BarGraph_DlgDemo

----------- ---------  ---------- -----  ----

               693828                    27



............此处省略0个文件信息

评论

共有 条评论