文件名称:MyBarChartTest
- 所属分类:
- 2D图形编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2014-04-18
- 文件大小:
- 133kb
- 下载次数:
- 0次
- 提 供 者:
- 胡**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
基于MFC工程柱状图 柱状图类(CMyBarChart)的两个文件(MyBarChart cpp MyBarChart h)不依赖于具体的工程 将文件添加至自己的工程即可运行
控件内柱子所在位置 大小 可根据控件大小自适应调整大小及位置
每根柱子高度为相邻柱子之间间隙 设控件总宽度为W 柱子个数为N 那么间隙宽度 X W 3 N + 1 柱子高度为 Y 2 X 2 W 3 N + 1
使用步骤:
1 申明对象 CMyBarChart m conBarChart
2 创建控件 m conBarChart Create CRect 10 10 400 400 this 1000 " Barchart Test"
3 添加 删除数据 m conBarChart AddData 1 234 “AAA” RGB 0 0 0 true m conBarChart DelLastData
4 刷新柱状图 m conBarChart Refresh ">基于MFC工程柱状图 柱状图类(CMyBarChart)的两个文件(MyBarChart cpp MyBarChart h)不依赖于具体的工程 将文件添加至自己的工程即可运行 -Histogram Histogram-based MFC project category (CMyBarChart) the two files (MyBarChart cpp MyBarChart h) does not depend on a specific project to add files to your project to run
Location within the control column size can be adjusted according to the size and location of the adaptive control size
The height of each pillar was a gap is provided between adjacent pillars controls overall width W is N then the column number of the gap width XW 3 N+ 1 pillar height of Y 2 X 2 W 3 N+ 1
Use these steps:
A declaration object CMyBarChart m conBarChart
2 Create controls m conBarChart Create CRect 10 10 400 400 this 1000 "Barchart Test"
3 add and delete data m conBarChart AddData 1 234 "AAA" RGB 0 0 0 true m conBarChart DelLastData
4 Refresh histogram m conBarChart Refresh "> histogram histogram-based MFC project category (CMyBarChart) the two files (MyBarChart cpp MyBarChart h) does not depend on a specific project to add files to your project
控件内柱子所在位置 大小 可根据控件大小自适应调整大小及位置
每根柱子高度为相邻柱子之间间隙 设控件总宽度为W 柱子个数为N 那么间隙宽度 X W 3 N + 1 柱子高度为 Y 2 X 2 W 3 N + 1
使用步骤:
1 申明对象 CMyBarChart m conBarChart
2 创建控件 m conBarChart Create CRect 10 10 400 400 this 1000 " Barchart Test"
3 添加 删除数据 m conBarChart AddData 1 234 “AAA” RGB 0 0 0 true m conBarChart DelLastData
4 刷新柱状图 m conBarChart Refresh ">基于MFC工程柱状图 柱状图类(CMyBarChart)的两个文件(MyBarChart cpp MyBarChart h)不依赖于具体的工程 将文件添加至自己的工程即可运行 -Histogram Histogram-based MFC project category (CMyBarChart) the two files (MyBarChart cpp MyBarChart h) does not depend on a specific project to add files to your project to run
Location within the control column size can be adjusted according to the size and location of the adaptive control size
The height of each pillar was a gap is provided between adjacent pillars controls overall width W is N then the column number of the gap width XW 3 N+ 1 pillar height of Y 2 X 2 W 3 N+ 1
Use these steps:
A declaration object CMyBarChart m conBarChart
2 Create controls m conBarChart Create CRect 10 10 400 400 this 1000 "Barchart Test"
3 add and delete data m conBarChart AddData 1 234 "AAA" RGB 0 0 0 true m conBarChart DelLastData
4 Refresh histogram m conBarChart Refresh "> histogram histogram-based MFC project category (CMyBarChart) the two files (MyBarChart cpp MyBarChart h) does not depend on a specific project to add files to your project
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MyBarChartTest\MyBarChartTest\MyBarChart.cpp
..............\..............\MyBarChart.h
..............\..............\MyBarChartTest.aps
..............\..............\MyBarChartTest.cpp
..............\..............\MyBarChartTest.h
..............\..............\MyBarChartTest.rc
..............\..............\MyBarChartTest.vcxproj
..............\..............\MyBarChartTest.vcxproj.filters
..............\..............\MyBarChartTest.vcxproj.user
..............\..............\MyBarChartTestDlg.cpp
..............\..............\MyBarChartTestDlg.h
..............\..............\ReadMe.txt
..............\..............\res\MyBarChartTest.ico
..............\..............\...\MyBarChartTest.rc2
..............\..............\Resource.h
..............\..............\stdafx.cpp
..............\..............\stdafx.h
..............\..............\targetver.h
..............\MyBarChartTest.sln
..............\MyBarChartTest.suo
..............\..............\res
..............\MyBarChartTest
MyBarChartTest