资源描述:
《vc6中调用 proessentials v5图表组件实现科学图表绘制论文》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、VC6中调用ProEssentialsv5图表组件实现科学图表绘制论文1ProEssentialsv5简介:ProEssentialsv5是应用于s、AINTITLE,"ExampleData");PEszset(m_hPE,PEP_szSUBTITLE,"");//nosubtitlePEszset(m_hPE,PEP_szYAXISLABEL,"UnitsSold");PEszset(m_hPE,PEP_szXAXISLABEL,"Month");PEnset(m_hPE,PEP_bFOCALRECT,FALSE);PEnset(m_hPE,PEP_bPREP
2、AREIMAGES,TRUE);PEnset(m_hPE,PEP_bCACHEBMP,TRUE);PEnset(m_hPE,PEP_nPLOTTINGMETHOD,PEGPM_POINTSPLUSSPLINE);PEnset(m_hPE,PEP_nGRIDLINECONTROL,PEGLC_NONE);PEnset(m_hPE,PEP_nALLOING,PEAZ_HORZANDVERT);PEnset(m_hPE,PEP_nZOOMSTYLE,PEZS_RO2_NOT);//子集的标识PEvsetcell(m_hPE,PEP_szaSUBSETLABELS,0,"
3、Texas");PEvsetcell(m_hPE,PEP_szaSUBSETLABELS,1,"Florida");PEvsetcell(m_hPE,PEP_szaSUBSETLABELS,2,"PLEPOINTLEGEND,TRUE);PEnset(m_hPE,PEP_bSIMPLELINELEGEND,TRUE);PEnset(m_hPE,PEP_nLEGENDSTYLE,PELS_1_LINE);PEnset(m_hPE,PEP_nMULTIAXISSTYLE,PEMAS_SEPARATE_AXES);//设置其他属性//PEnset(m_hPE,PEP_b
4、BITMAPGRADIENTMODE,TRUE);PEnset(m_hPE,PEP_nQUICKSTYLE,PEQS_MEDIUM_NO_BORDER);PEnset(m_hPE,PEP_nGRADIENTBARS,8);PEnset(m_hPE,PEP_nTEXTSHADOAINTITLEBOLD,TRUE);PEnset(m_hPE,PEP_bSUBTITLEBOLD,TRUE);PEnset(m_hPE,PEP_bLABELBOLD,TRUE);PEnset(m_hPE,PEP_bLINESHADO,TRUE);}}voidCPEViepleSGraph()
5、;//创建游标//PEnset(m_hPE,PEP_nCURSORMODE,PECM_DATACROSS);//可以方便的查看数据点//PEnset(m_hPE,PEP_bMARKDATAPOINTS,TRUE);//可以点击数据点来移动游标//PEnset(m_hPE,PEP_bMOUSECURSORCONTROL,TRUE);PEnset(m_hPE,PEP_bALLOPTTRACKING,TRUE);PEnset(m_hPE,PEP_nCURSORPROMPTSTYLE,PECPS_XYVALUES);PEnset(m_hPE,PEP_nCURSORPROM
6、PTLOCATION,PECPL_TOP_RIGHT);//取消放大功能PEnset(m_hPE,PEP_nALLOING,PEAZ_NONE);//其他可能的游标模式如下://PECM_NOCURSOR=0//PECM_POINT=1//PECM_DATACROSS=2//PECM_DATASQUARE=3//PECM_FLOATINGY=4//PECM_FLOATINGXY=5//注意:必须重新初始化elseif((m_nLastSelection==105)(HI_hPE,PEP_nCURSORPOINT);PEvgetcellEx(m_hPE,PEP_fa
7、XDATA,nSubset,nPoint,xvalue);PEvgetcellEx(m_hPE,PEP_faYDATA,nSubset,nPoint,yvalue);sprintf(buffer,"Cursorat%d,%d=(%.2f,%.2f)",nSubset,nPoint,xvalue,yvalue);CWnd*pParent=GetParent()-GetParent();if(pParent){pParent-SetWindoainWnd();if(pParent){pParent-SetWindoOVE");returnTRUE;}}以上代码在Win
8、2000,