资源描述:
《vc数据图形(包括直方图及饼图等等)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、protected://{{AFX_MSG(CMainFrame)afx_msgintOnCreate(LPCREATESTRUCTlpCreateStruct);afx_msgvoidOnMenuInPut();afx_msgvoidOnMenuCreat();afx_msgvoidOnMenuPrint();afx_msgvoidOnMenuCurve();afx_msgvoidOnMenuHistogram();afx_msgvoidOnMenuCake();afx_msgvoidOnCor
2、lo();afx_msgvoidOnMenuBig();afx_msgvoidOnMenuSmall();afx_msgvoidOnMenuClose();afx_msgvoidOnMenuOpen();afx_msgvoidOnMenuQuxian();afx_msgvoidOnMENUpie();afx_msgvoidOnMenuZhuzhuang();//}}AFX_MSGDECLARE_MESSAGE_MAP()};//MainFrm.cpp:implementationoftheCMai
3、nFrameclass//#include"stdafx.h"#include"GraphDraw.h"#include"MainFrm.h"#include"iostream.h"#include"fstream.h"#include"string.h"#include"dlg.h"#include"GraphDrawView.h"#include"GraphDrawdoc.h"externCGraphDrawApptheApp;#ifdef_DEBUG#definenewDEBUG_NEW#u
4、ndefTHIS_FILEstaticcharTHIS_FILE[]=__FILE__;#endif#include"GraphDrawdoc.h"externCGraphDrawApptheApp;///////////////////////////////////////////////////////////////////////////////CMainFrameIMPLEMENT_DYNCREATE(CMainFrame,CFrameWnd)BEGIN_MESSAGE_MAP(CMa
5、inFrame,CFrameWnd)//{{AFX_MSG_MAP(CMainFrame)ON_WM_CREATE()ON_COMMAND(ID_MENU_IN,OnMenuInPut)ON_COMMAND(ID_MENU_CREAT,OnMenuCreat)ON_COMMAND(ID_MENU_PRINT,OnMenuPrint)ON_COMMAND(ID_MENU_CURVE,OnMenuCurve)ON_COMMAND(ID_MENU_HISTOGRAM,OnMenuHistogram)ON
6、_COMMAND(ID_MENU_CAKE,OnMenuCake)ON_COMMAND(ID_CORLO,OnCorlo)ON_COMMAND(ID_MENU_BIG,OnMenuBig)ON_COMMAND(ID_MENU_SMALL,OnMenuSmall)ON_COMMAND(ID_MENU_CLOSE,OnMenuClose)ON_COMMAND(ID_MENU_OPEN,OnMenuOpen)ON_COMMAND(ID_MENU_QUXIAN,OnMenuQuxian)ON_COMMAN
7、D(ID_MENU_pie,OnMENUpie)ON_COMMAND(ID_MENU_ZHUZHUANG,OnMenuZhuzhuang)//}}AFX_MSG_MAPEND_MESSAGE_MAP()staticUINTindicators[]={ID_SEPARATOR,//statuslineindicatorID_INDICATOR_CAPS,ID_INDICATOR_NUM,ID_INDICATOR_SCRL,};/////////////////////////////////////
8、//////////////////////////////////////////CMainFrameconstruction/destructionCMainFrame::CMainFrame(){//TODO:addmemberinitializationcodehere}CMainFrame::~CMainFrame(){}intCMainFrame::OnCreate(LPCREATESTRUCTlpCreateStruct){if(CFrameWnd::OnCreate