91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 9.73MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2023-10-05
  • 語言: C/C++
  • 標簽: c++??wince??基礎學習??

資源簡介

C++ 曲線圖 雙緩沖繪圖 區(qū)域圖 柱形圖 內(nèi)存圖片的保存 共同學習,資源共享 學習總結 取之于網(wǎng)絡付之于網(wǎng)絡

資源截圖

代碼片段和文件信息

#include?“StdAfx.h“
#include?“ChartDraw.h“
#include?“math.h“
#include?


CListDataListChart;

CChartDraw::CChartDraw(void)
{
m_nIndexN?=?NULL;
m_nIndex?=?NULL;

m_nGapLeft =?50;//曲線圖的四方距離
m_nGapRight =?10;
m_nGapTop =?20;
m_nGapBottom =?30;
m_nGradWidth =?10;

nTicks?=?10;
nSubTicks?=?5;//溫度計刻度標記

m_nLTop ?=?10;
m_nLBottom ?=?30;

}

CChartDraw::~CChartDraw(void)
{
if(&memBitmap)
{
memBitmap.Deleteobject();
}

if(memDC.GetSafeHdc())
{
memDC.DeleteDC();
}
}

void?CChartDraw::InitChart(CRect?rect)
{
m_BackGroundColor?=?RGB(000);
m_BorderColor ??=?RGB(255225255);
m_GradColor ??=?RGB(255255255);
m_FormColor???????=?RGB(129129129);//RGB(64224208);//RGB(1288080);
m_TXTColor ??=?RGB(255255255);

m_nLeftRight ??=?5;
m_nPolyTail ??=?20;

m_nMarkLenS ??=?10;
m_nMarkLenM ??=?20;


m_ChartData.m_MaxLimit?=?90.00;
m_ChartData.m_MinLimit?=?0;
m_ChartData.m_HightLimit?=?45.00;
m_ChartData.m_LowLimit =?15.00;

m_ChartData.m_ChHAColor?=?RGB(15500);
m_ChartData.m_ChLAColor?=?RGB(01550);
m_ChartData.m_ChColor???=?RGB(00155);


m_DrawScreenRect?=?CRect(rect);

m_DrawMemRect.top??=?0;
m_DrawMemRect.left?=?0;
m_DrawMemRect.right?=?m_DrawScreenRect.Width();
m_DrawMemRect.bottom?=?m_DrawScreenRect.Height();

m_SlideRect.top =?m_DrawMemRect.top?+?m_nLTop;
m_SlideRect.left =?m_DrawMemRect.left?+?(m_DrawMemRect.Width()*2)/5;
m_SlideRect.right =?m_DrawMemRect.right?-?(m_DrawMemRect.Width()*2)/5;
m_SlideRect.bottom =?m_DrawMemRect.bottom?-?m_nLBottom;

m_nRadiusframe?=?m_SlideRect.Width()/8;

m_pbSolideCenter?=?m_SlideRect.CenterPoint();
m_pbSolideCenter.y?+= m_SlideRect.Height()/2?-?m_nRadiusframe*2;

m_ptSolideCenter?=?m_SlideRect.CenterPoint();
m_ptSolideCenter.y?-= m_SlideRect.Height()/2?-?m_nRadiusframe*2;

int nTmpWHarea;
nTmpWHarea?=?rect.Width()*?rect.Height();
//四個窗口
if(nTmpWHarea?<=?10000?&&?nTmpWHarea?>?5000)//800*600
{
m_nHeight?=?-3;
m_nHeight0?=?-10;
}
else?if(nTmpWHarea?<=?20000?&&?nTmpWHarea?>?10000)//800*600
{
m_nHeight?=?-2;
m_nHeight0?=?-8;
}
else?if(nTmpWHarea?<=?40000?&&?nTmpWHarea?>?20000)//800*600
{
m_nHeight?=?-1;
m_nHeight0?=?-6;
}
else?if(nTmpWHarea?<=?60000?&&?nTmpWHarea?>?40000)//800*600
{
m_nHeight?=?-1;
m_nHeight0?=?-4;
}
else?if(nTmpWHarea?<=?80000?&&?nTmpWHarea?>?60000)//800*600
{
m_nHeight?=?-1;
m_nHeight0?=?-2;
}
else?if(nTmpWHarea?<=?120000?&&?nTmpWHarea?>?80000)//800*600
{
m_nHeight?=?0;
m_nHeight0?=?m_nHeight;
}
else?if(nTmpWHarea?<=?80000?&&?nTmpWHarea?>?120000)
{
m_nHeight?=?1;
m_nHeight0?=?m_nHeight;
}
else?if(nTmpWHarea?<=?160000?&&?nTmpWHarea?>?120000)//1024*?768
{
m_nHeight?=?4;
m_nHeight0?=?m_nHeight;
}
else?if(nTmpWHarea?<=?200000?&&?nTmpWHarea?>?160000)//1024*?768
{
m_nHeight?=?6;
m_nHeight0?=?m_nHeight;
}
else?if(nTmpWHarea

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????41462??2012-04-15?20:46??MyDrawChart1\ChartDraw.cpp

?????文件???????3904??2012-04-15?20:46??MyDrawChart1\ChartDraw.h

?????文件???????6352??2012-04-15?20:52??MyDrawChart1\Debug\BuildLog.htm

?????文件?????203996??2012-04-15?20:49??MyDrawChart1\Debug\ChartDraw.obj

?????文件??????20735??2012-04-15?20:49??MyDrawChart1\Debug\Live.obj

?????文件?????????67??2012-04-15?20:52??MyDrawChart1\Debug\mt.dep

?????文件????2912256??2012-04-15?20:52??MyDrawChart1\Debug\MyDrawChart.exe

?????文件????????146??2012-04-15?20:49??MyDrawChart1\Debug\MyDrawChart.exe.embed.manifest

?????文件????????212??2012-04-15?20:49??MyDrawChart1\Debug\MyDrawChart.exe.embed.manifest.res

?????文件????????145??2012-04-15?20:52??MyDrawChart1\Debug\MyDrawChart.exe.intermediate.manifest

?????文件????5691124??2012-04-15?20:52??MyDrawChart1\Debug\MyDrawChart.ilk

?????文件??????22822??2012-04-15?20:49??MyDrawChart1\Debug\MyDrawChart.obj

?????文件???13434880??2012-04-15?20:49??MyDrawChart1\Debug\MyDrawChart.pch

?????文件???10890240??2012-04-15?20:52??MyDrawChart1\Debug\MyDrawChart.pdb

?????文件??????37196??2012-04-15?20:52??MyDrawChart1\Debug\MyDrawChart.res

?????文件?????103757??2012-04-15?20:50??MyDrawChart1\Debug\MyDrawChartDlg.obj

?????文件?????333750??2012-04-15?20:49??MyDrawChart1\Debug\stdafx.obj

?????文件?????707584??2012-04-15?20:50??MyDrawChart1\Debug\vc80.idb

?????文件?????700416??2012-04-15?20:50??MyDrawChart1\Debug\vc80.pdb

?????文件????????682??2012-04-13?18:07??MyDrawChart1\Live.cpp

?????文件????????392??2012-04-13?18:07??MyDrawChart1\Live.h

?????文件??????60072??2012-04-15?20:52??MyDrawChart1\MyDrawChart.aps

?????文件???????2149??2012-04-13?09:38??MyDrawChart1\MyDrawChart.cpp

?????文件????????534??2012-04-13?09:38??MyDrawChart1\MyDrawChart.h

?????文件???10087424??2012-04-15?20:52??MyDrawChart1\MyDrawChart.ncb

?????文件???????6757??2012-04-15?20:52??MyDrawChart1\MyDrawChart.rc

?????文件????????886??2012-04-13?09:38??MyDrawChart1\MyDrawChart.sln

????..A..H.?????31744??2012-04-15?20:52??MyDrawChart1\MyDrawChart.suo

?????文件???????5777??2012-04-13?18:05??MyDrawChart1\MyDrawChart.vcproj

?????文件???????1427??2012-04-13?18:08??MyDrawChart1\MyDrawChart.vcproj.KJ-5193AC24A30B.admin.user

............此處省略15個文件信息

評論

共有 條評論