亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? example18-2.htm

?? Visual C++面向對象程序設計教程(配套習題資源)
?? HTM
字號:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>例18-2</title>
</head>

<body>

<blockquote>
  <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.5pt;mso-bidi-font-size:
10.0pt;font-family:&quot;Times New Roman&quot;;mso-fareast-font-family:宋體;mso-font-kerning:
10.5pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:
AR-SA">&nbsp;&nbsp;&nbsp;&nbsp; <img src="exampl6.jpg" v:shapes="_x0000_i1025" width="384" height="284"></span></p>
  <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><span style="font-size: 10.5pt; mso-bidi-font-size: 10.0pt; font-family: Times New Roman; mso-fareast-font-family: 宋體; mso-font-kerning: 10.5pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  </span><font face="黑體" size="2"><font LANG="ZH-CN">圖</font>18-4 <font LANG="ZH-CN">輸出圖形</font></font></p>
  <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
  <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">void 
  CGraphView::OnDraw(CDC* pDC)</font></p>
  <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">{</font></p>
  <blockquote>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">CGraphDoc* 
    pDoc = GetDocument( );</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">ASSERT_VALID(pDoc);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">// 
    TODO: add draw code for native data here</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">/* 
    <font LANG="ZH-CN">使用畫筆</font></font><font SIZE="1"></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"></font><font LANG="ZH-CN" size="2">第一步:創建一支新畫筆</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">CPen 
    pen(PS_SOLID, 1, RGB(255,0,0));</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">CPen 
    pen(PS_DASHDOT, 1, RGB(255,0,0));</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">第二步:選擇新畫筆到設備環境中,同時保存舊畫筆</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">CPen 
    * pOldPen = pDC-&gt;SelectObject(&amp;pen); */</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">/* 
    <font LANG="ZH-CN">使用畫刷</font></font><font SIZE="1"></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"></font><font LANG="ZH-CN" size="2">第一步:創建一支新畫刷</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">CBrush 
    brush(RGB(255,0,0)); //<font LANG="ZH-CN">創建實體畫刷</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">CBrush 
    brush(HS_CROSS, RGB(255,0,0)); //<font LANG="ZH-CN">創建陰影模式畫刷</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">第二步:選擇新畫刷到設備環境中,同時保存舊畫刷</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">CBrush 
    * pOldBrush = pDC-&gt;SelectObject(&amp;brush); */</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">// 
    <font LANG="ZH-CN">常用的繪圖函數</font> //</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">繪制一個彩色點</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;TextOut(20, 
    20, &quot;<font LANG="ZH-CN">點</font>&quot;);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;SetPixel(100, 
    40, RGB(255,0,0));</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">繪制直線</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;TextOut(320, 
    20,&quot;<font LANG="ZH-CN">線段</font>&quot;);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;MoveTo(400, 
    40);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;LineTo(500, 
    40);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">繪制折線</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;TextOut(20, 
    170, &quot;<font LANG="ZH-CN">折線</font>&quot;);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">POINT 
    polyline[4]={{240,240},{80,120},{240,120},{80,240}};</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;Polyline(polyline,4);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">繪制矩形</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;TextOut(320, 
    170, &quot;<font LANG="ZH-CN">矩形</font>&quot;);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;Rectangle(390, 
    110, 600, 230);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">繪制橢圓</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;TextOut(20, 
    320, &quot;<font LANG="ZH-CN">橢圓</font>&quot;);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;Ellipse(80, 
    260, 280, 380);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">繪制多邊形</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;TextOut(320, 
    320, &quot;<font LANG="ZH-CN">多邊形</font>&quot;);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">POINT 
    polygon[3]={{380,330},{530,260},{500,360}};</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">pDC-&gt;Polygon(polygon,3);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">第三步:恢復設備環境的舊畫筆,以便釋放新畫筆</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">// 
    pDC-&gt;SelectObject(pOldPen);</font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//<font LANG="ZH-CN">第三步:恢復設備環境的舊畫刷,以便釋放新畫刷</font></font></p>
    <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">// 
    pDC-&gt;SelectObject(pOldBrush);</font></p>
  </blockquote>
  <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">}</font></p>
  <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
  <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.5pt;mso-bidi-font-size:
10.0pt;font-family:&quot;Times New Roman&quot;;mso-fareast-font-family:宋體;mso-font-kerning:
10.5pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:
AR-SA"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"
 o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
 stroked="f">
 <v:stroke joinstyle="miter"/>
 <v:formulas>
  <v:f eqn="if lineDrawn pixelLineWidth 0"/>
  <v:f eqn="sum @0 1 0"/>
  <v:f eqn="sum 0 0 @1"/>
  <v:f eqn="prod @2 1 2"/>
  <v:f eqn="prod @3 21600 pixelWidth"/>
  <v:f eqn="prod @3 21600 pixelHeight"/>
  <v:f eqn="sum @0 0 1"/>
  <v:f eqn="prod @6 1 2"/>
  <v:f eqn="prod @7 21600 pixelWidth"/>
  <v:f eqn="sum @8 21600 0"/>
  <v:f eqn="prod @7 21600 pixelHeight"/>
  <v:f eqn="sum @10 21600 0"/>
 </v:formulas>
 <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
 <o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:4in;
 height:213pt'>
 <v:imagedata src="file:///C:/DOCUME~1/y/LOCALS~1/Temp/msoclip1/01/clip_image001.png"
  o:title=""/>
</v:shape><![endif]-->
  </span></p>
  <p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font face="黑體" size="2"><font LANG="ZH-CN">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  </font></font></p>
</blockquote>

</body>

</html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲视频中文字幕| 天天免费综合色| 欧美精品 日韩| 国产精品一区二区不卡| 亚欧色一区w666天堂| 国产精品亲子伦对白| 欧美乱妇15p| 99re66热这里只有精品3直播| 热久久免费视频| 亚洲欧美日韩国产另类专区| 久久久久久久久99精品| 日韩一区二区不卡| 一本一道波多野结衣一区二区| 555夜色666亚洲国产免| 粉嫩aⅴ一区二区三区四区 | 亚洲一卡二卡三卡四卡无卡久久| 日韩久久久精品| 欧美日韩精品系列| 色婷婷一区二区三区四区| 丁香婷婷综合色啪| 国产一二精品视频| 麻豆精品一区二区三区| 日韩精品高清不卡| 亚洲在线观看免费| 一区二区三区小说| 亚洲欧洲国产专区| 中文字幕va一区二区三区| 久久综合丝袜日本网| 精品对白一区国产伦| 日韩亚洲欧美高清| 欧美一区二区三区免费观看视频| 欧美系列日韩一区| 欧美在线不卡视频| 91国产免费观看| 91网址在线看| 色婷婷一区二区| 91成人免费电影| 色狠狠av一区二区三区| 色婷婷精品久久二区二区蜜臀av| 色综合婷婷久久| 色婷婷av一区| 欧美午夜精品久久久久久孕妇| 99精品国产热久久91蜜凸| 99视频精品全部免费在线| 成人免费观看av| 99在线精品观看| 一本在线高清不卡dvd| 在线日韩一区二区| 日本久久一区二区三区| 欧美在线啊v一区| 欧美一区二区三区在线观看| 欧美一卡二卡在线| 精品日韩一区二区三区| 久久久久久亚洲综合影院红桃| 亚洲精品一区二区三区四区高清 | 一区二区三区日韩在线观看| 亚洲精品视频一区| 午夜久久久影院| 男男gaygay亚洲| 国产一区二区在线观看视频| 国产精品一二三四区| 成人精品免费网站| 色女孩综合影院| 91精品国产一区二区三区| 久久综合色之久久综合| 国产女人18水真多18精品一级做| 亚洲视频在线观看一区| 视频一区视频二区在线观看| 国产一区啦啦啦在线观看| 成人av电影在线观看| 在线免费观看一区| 精品少妇一区二区三区在线播放 | 午夜激情一区二区三区| 国产又粗又猛又爽又黄91精品| 风流少妇一区二区| 亚洲精品一二三四区| 视频一区欧美精品| 成人免费va视频| 欧美网站一区二区| 国产性色一区二区| 亚洲永久精品大片| 国产乱一区二区| 欧美午夜宅男影院| 久久九九99视频| 午夜精品福利一区二区三区av | 欧美亚洲综合在线| 国产亚洲女人久久久久毛片| 亚洲综合免费观看高清完整版| 久久99国产精品成人| 91丨九色丨黑人外教| 精品精品国产高清一毛片一天堂| 亚洲色欲色欲www| 国产一区三区三区| 欧美高清性hdvideosex| 国产精品久久久久久久午夜片 | 国产精品的网站| 国内成人精品2018免费看| 色伊人久久综合中文字幕| 久久一区二区三区四区| 亚洲一区二区免费视频| 成人动漫视频在线| 精品国产亚洲在线| 午夜私人影院久久久久| av在线播放不卡| 韩国女主播成人在线| 欧美怡红院视频| 欧美国产精品劲爆| 久久国内精品视频| 7777精品伊人久久久大香线蕉经典版下载 | 一区二区视频免费在线观看| 国产剧情在线观看一区二区| 欧美日高清视频| 一区二区三区中文字幕精品精品| 风流少妇一区二区| 亚洲精品一区二区三区精华液| 日精品一区二区| 欧美日韩国产片| 亚洲最新在线观看| 色婷婷综合久久久| 亚洲三级在线观看| av一区二区不卡| 国产精品久久久久7777按摩| 国产精品一级在线| 久久精品人人做人人综合| 精东粉嫩av免费一区二区三区| 91精品欧美一区二区三区综合在 | 亚洲1区2区3区视频| 欧美三区在线视频| 一区二区三区四区乱视频| 99视频在线精品| 国产精品国产三级国产有无不卡 | 色综合久久99| 亚洲另类中文字| 日本高清无吗v一区| 亚洲精品欧美二区三区中文字幕| 不卡的av电影| 国产精品嫩草久久久久| 成人免费不卡视频| 中文字幕一区二区不卡| 99久久久无码国产精品| 中文字幕一区二区三区在线观看| eeuss国产一区二区三区| 国产精品久久久久久久久晋中| av资源网一区| 亚洲综合色丁香婷婷六月图片| 欧美视频一区二区三区在线观看| 亚洲一线二线三线视频| 91麻豆精品国产91久久久资源速度| 日本色综合中文字幕| xfplay精品久久| eeuss鲁片一区二区三区在线观看| 亚洲欧洲日产国产综合网| 色婷婷精品大在线视频| 一卡二卡三卡日韩欧美| 欧美理论电影在线| 久久爱www久久做| 亚洲国产精品ⅴa在线观看| 国产日韩欧美电影| aaa亚洲精品一二三区| 一区二区三区四区在线免费观看| 欧美女孩性生活视频| 久久av老司机精品网站导航| 欧美国产1区2区| 日本伦理一区二区| 裸体健美xxxx欧美裸体表演| 国产欧美精品一区二区色综合朱莉| 99精品视频一区| 亚洲6080在线| 中文字幕欧美区| 欧美伦理电影网| 国产成人av电影在线播放| 亚洲国产欧美日韩另类综合 | 伊人色综合久久天天| 欧美欧美午夜aⅴ在线观看| 国产一区二区免费看| 亚洲日本成人在线观看| 日韩一区二区三区四区| 成人午夜电影久久影院| 一区二区在线观看视频| 精品成人a区在线观看| 一本一道久久a久久精品| 免费观看成人av| ●精品国产综合乱码久久久久| 欧美日韩在线播放一区| 国产精品影视在线| 亚洲成av人**亚洲成av**| 日本一区二区动态图| 欧美精品久久一区二区三区| 成人av午夜影院| 欧美aaa在线| 亚洲精品菠萝久久久久久久| 精品国产一区二区三区四区四 | 美女网站一区二区| 日韩美女视频一区二区| 亚洲精品在线免费观看视频| 在线精品视频免费播放| 国产成人午夜电影网| 日本伊人精品一区二区三区观看方式| 国产精品成人免费| 久久久影视传媒|