资源简介
使用GDI+绘制的柱状图,可以学习使用,也可以直接使用,带数据显示。数据从文件读取,具体看代码。

代码片段和文件信息
// BandChart.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “BandChart.h“
#include “BandChartDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBandChartApp
BEGIN_MESSAGE_MAP(CBandChartApp CWinApp)
//{{AFX_MSG_MAP(CBandChartApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBandChartApp construction
CBandChartApp::CBandChartApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CBandChartApp object
CBandChartApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CBandChartApp initialization
BOOL CBandChartApp::InitInstance()
{
AfxEnableControlContainer();
GdiplusStartup(&m_pGdiToken&m_gdiplusStartupInputNULL);
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CBandChartDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
int CBandChartApp::ExitInstance()
{
// TODO: Add your specialized code here and/or call the base class
GdiplusShutdown(m_pGdiToken);
return CWinApp::ExitInstance();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 116276 2011-08-04 15:37 BandChart.aps
文件 1518 2011-08-04 11:27 BandChart.h
文件 1446 2011-08-04 13:50 BandChartDlg.h
文件 1936 2010-08-26 16:11 GDIOperation.h
文件 2564 2011-08-04 15:14 MyVertBandChart.h
文件 957 2011-08-04 15:37 resource.h
文件 1184 2011-08-04 11:26 StdAfx.h
文件 2345 2011-08-04 11:21 BandChart.cpp
文件 5519 2011-08-04 15:37 BandChartDlg.cpp
文件 9564 2011-08-04 11:41 GDIOperation.cpp
文件 8558 2011-08-04 15:45 MyVertBandChart.cpp
文件 211 2011-08-04 10:58 StdAfx.cpp
文件 1159 2011-08-04 15:17 BandChart.clw
文件 252 2011-08-04 16:09 BandChart.plg
文件 50176 2011-08-04 18:00 BandChart.ncb
文件 52736 2011-08-04 18:00 BandChart.opt
文件 5043 2011-08-04 18:00 BandChart.dsp
文件 543 2011-08-04 10:58 BandChart.dsw
文件 5731 2011-08-04 15:37 BandChart.rc
文件 1503232 2000-10-24 23:12 gdiplus.dll
文件 4206 2011-08-04 14:14 IMG\Band-1.png
文件 4330 2011-08-04 14:38 IMG\Band-2.png
文件 2811 2011-08-04 14:41 IMG\BANDICON-1.png
文件 8096 2011-08-04 14:40 IMG\BANDLOGO-1.png
文件 2806 2011-08-04 15:18 IMG\横线-1.png
文件 2801 2011-08-04 15:18 IMG\竖线-1.png
文件 60947 2011-08-04 15:18 IMG\背景-1.png
文件 4877 2011-08-03 11:17 IMG\背景-2.png
文件 1078 2011-08-04 10:58 res\BandChart.ico
文件 401 2011-08-04 10:58 res\BandChart.rc2
............此处省略8个文件信息
- 上一篇:币乎 白皮书
- 下一篇:机械原理计算机辅助设计_曲柄滑块机构
相关资源
- VisualStudioUninstaller vs卸载工具
- 组态王驱动开发包3.0.0.7(中文)
- 多窗口后台鼠标连点器
- 使用选择性重传协议实现UDP可靠通信
- 基于MFC扩展CListCtrl子项显示图片并叠
- 黑白棋(带简单AI)
- VC 获得文件属性 获取文件的创建时
- 读者写者问题(读者优先,写者优先
- MFC程序-碰撞的小球
- 用VC 编写的仿QQ聊天室程序源代码
-
Cme
taFileDC的使用示例 - ado数据库MFC图书管理系统vs2010
- mfc单文档窗体画线与写字
- 外点法程序
- 外罚函数程序
- qt-电子点菜系统
- [免费]MFC制作目录树
- 推箱子及人工智能寻路C 源代码
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- MUSIC算法c 实现
- C 餐厅叫号系统(QT平)
- 国际象棋c 完整版
-
ob
jectARX给Auto CAD加工具条 - MFC读三维模型obj文件
- 画图程序MFC/VC/VC CRectTracker 串行化
- MFC网络编程实例
- c 课程设计 职工信息管理系统
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
评论
共有 条评论