MSChart+VS2010


1.MSChart在VS2010下的使用方法及所需组件。 2.MSChart的DEMO。实现的效果有标题文字及字体的设定、背景色的设定、线状图颜色及格式的设定(demo中为折线处星型标记)、柱状图颜色及数据设定、饼状图颜色及数据的设定。
资源截图
代码片段和文件信息
// Demo.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “Demo.h“

#include “MainFrm.h“
#include “DemoDoc.h“
#include “DemoView.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDemoApp

BEGIN_MESSAGE_MAP(CDemoApp CWinApp)
//{{AFX_MSG_MAP(CDemoApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDemoApp construction

CDemoApp::CDemoApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CDemoApp object

CDemoApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CDemoApp initialization

BOOL CDemoApp::InitInstance()
{
AfxEnableControlContainer();

// 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

// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));

LoadStdProfileSettings();  // Load standard INI file options (including MRU)

// Register the application‘s document templates.  Document templates
//  serve as the connection between documents frame windows and views.

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CDemoDoc)
RUNTIME_CLASS(CMainframe)       // main SDI frame window
RUNTIME_CLASS(CDemoView));
AddDocTemplate(pDocTemplate);

// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;

// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();

return TRUE;
}


/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About


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

     文件      45102  2012-03-27 17:53  MSChart+VS2010DemomschartDebugcl.command.1.tlog

     文件      73330  2012-03-27 17:53  MSChart+VS2010DemomschartDebugCL.read.1.tlog

     文件      32436  2012-03-27 17:53  MSChart+VS2010DemomschartDebugCL.write.1.tlog

     文件     235520  2012-03-27 17:53  MSChart+VS2010DemomschartDebugDemo.exe

     文件        667  2012-03-27 17:37  MSChart+VS2010DemomschartDebugDemo.exe.embed.manifest

     文件        732  2012-03-27 17:37  MSChart+VS2010DemomschartDebugDemo.exe.embed.manifest.res

     文件        381  2012-03-27 17:53  MSChart+VS2010DemomschartDebugDemo.exe.intermediate.manifest

     文件    1760756  2012-03-27 17:53  MSChart+VS2010DemomschartDebugDemo.ilk

     文件         95  2012-03-27 17:53  MSChart+VS2010DemomschartDebugDemo.lastbuildstate

     文件       4301  2012-03-27 17:53  MSChart+VS2010DemomschartDebugDemo.log

     文件      40655  2012-03-27 17:36  MSChart+VS2010DemomschartDebugDemo.obj

     文件   20381696  2012-03-27 17:36  MSChart+VS2010DemomschartDebugDemo.pch

     文件    4697088  2012-03-27 17:53  MSChart+VS2010DemomschartDebugDemo.pdb

     文件       6436  2012-03-27 17:36  MSChart+VS2010DemomschartDebugDemo.res

     文件      51569  2012-03-27 17:36  MSChart+VS2010DemomschartDebugDemoDoc.obj

     文件     104562  2012-03-27 17:53  MSChart+VS2010DemomschartDebugDemoView.obj

     文件        204  2012-03-27 17:36  MSChart+VS2010DemomschartDebugDemo_manifest.rc

     文件      15855  2012-03-27 17:36  MSChart+VS2010DemomschartDebugfont.obj

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink-cvtres.read.1.tlog

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink-cvtres.write.1.tlog

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.1524-cvtres.read.1.tlog

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.1524-cvtres.write.1.tlog

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.1524.read.1.tlog

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.1524.write.1.tlog

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.6636-cvtres.read.1.tlog

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.6636-cvtres.write.1.tlog

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.6636.read.1.tlog

     文件          2  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.6636.write.1.tlog

     文件      11912  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.command.1.tlog

     文件      21258  2012-03-27 17:53  MSChart+VS2010DemomschartDebuglink.read.1.tlog

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)