Introduction - If you have any usage issues, please Google them yourself
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