文件名称:读文件,绘图
文件大小:15.24MB
文件格式:RAR
更新时间:2016-02-08 10:07:39
读文件,绘图
读文件,绘图 CPaintTestDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here CPen pen(0,2,RGB(0,0,0)); pDC->SetMapMode(MM_LOMETRIC); pDC->SelectObject(&pen;); CRect rect; GetClientRect(▭); pDC->DPtoLP(▭); CSize org(200,-rect.bottom-800); pDC->LPtoDP(&org;); pDC->SetViewportOrg(org.cx,org.cy); pDC->MoveTo(-100,0); pDC->LineTo(rect.right*3/4,0); pDC->MoveTo(rect.right*3/4,0); pDC->LineTo(rect.right*3/4-50,10); pDC->MoveTo(rect.right*3/4,0); pDC->LineTo(rect.right*3/4-50,-10); pDC->TextOut(rect.right*3/4,0,L"X");//绘制x轴以及标注 pDC->MoveTo(0,-700); pDC->LineTo(0,-rect.bottom-900); pDC->MoveTo(-10,-rect.bottom-940); pDC->LineTo(0,-rect.bottom-900); pDC->MoveTo(10,-rect.bottom-940); pDC->LineTo(0,-rect.bottom-900); pDC->TextOut(-60,-rect.bottom-900,L"Y");//绘制y轴及标注
【文件预览】:
PaintTest
----PaintTest.vcproj(9KB)
----PaintTest.cpp(4KB)
----StdAfx.cpp(211B)
----resource.h(1KB)
----PaintTestView.h(2KB)
----PaintTest.rc(13KB)
----DlgOpenFile.cpp(2KB)
----DlgOpenFile.h(1KB)
----PaintTestView.cpp(5KB)
----PaintTest.vcproj.maaiminpc.maaimin.user(1KB)
----PaintTest.dsw(526B)
----PaintTest.opt(52KB)
----PaintTest.aps(31KB)
----PaintTest.dsp(5KB)
----MainFrm.h(2KB)
----PaintTest.plg(1KB)
----PaintTest.h(1KB)
----PaintTest.vcproj.zjb-PC.zjb.user(1KB)
----Debug()
--------PaintTestView.obj(68KB)
--------DlgOpenFile.obj(27KB)
--------PaintTest.sbr(0B)
--------vc60.pdb(444KB)
--------PaintTest.exe.intermediate.manifest(861B)
--------MainFrm.sbr(0B)
--------vc60.idb(257KB)
--------vc90.idb(987KB)
--------BuildLog.htm(13KB)
--------PaintTestDoc.sbr(0B)
--------PaintTest.pdb(3.77MB)
--------DlgOpenFile.sbr(0B)
--------PaintTest.exe.embed.manifest(920B)
--------mt.dep(65B)
--------PaintTestView.sbr(0B)
--------PaintTestDoc.obj(21KB)
--------PaintTest.exe(117KB)
--------MainFrm.obj(34KB)
--------vc90.pdb(2.06MB)
--------StdAfx.obj(454KB)
--------PaintTest.res(9KB)
--------PaintTest.obj(34KB)
--------PaintTest.exe.embed.manifest.res(984B)
--------PaintTest.pch(27.25MB)
--------StdAfx.sbr(3.2MB)
--------PaintTest.ilk(1.42MB)
--------PaintTest.bsc(7.29MB)
----ReadMe.txt(4KB)
----StdAfx.h(1KB)
----PaintTest.suo(33KB)
----Paint.h(614B)
----MainFrm.cpp(3KB)
----PaintTest.sln(883B)
----Paint.cpp(3KB)
----PaintTestDoc.h(1KB)
----PaintTestDoc.cpp(2KB)
----res()
--------PaintTest.rc2(401B)
--------PaintTest.ico(1KB)
--------PaintTestDoc.ico(1KB)
--------Toolbar.bmp(1KB)
--------cursor1.cur(326B)
----PaintTest.clw(3KB)
----PaintTest.ncb(17.44MB)