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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ch08.htm

?? /// //Visual C++ 6.0 21天自學(xué)教程
?? HTM
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>

<HEAD>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">

<!--

function popUp(pPage) {
 var fullURL = document.location;
 var textURL = fullURL.toString();
 var URLlen = textURL.length;
 var lenMinusPage = textURL.lastIndexOf("/");
 lenMinusPage += 1;
 var fullPath = textURL.substring(0,lenMinusPage);
 popUpWin = window.open('','popWin','resizable=yes,scrollbars=no,width=525,height=394');
 figDoc= popUpWin.document;
 zhtm= '<HTML><HEAD><TITLE>' + pPage + '</TITLE>';
 zhtm += '</head>';
 zhtm += '<BODY bgcolor="#FFFFFF">
<!-- Spidersoft WebZIP Ad Banner Insert -->
<TABLE width=100% border="0" cellpadding="0" cellspacing="0">
<TR>
<TD>
<ILAYER id=ad1 visibility=hidden height=60></ILAYER>
<NOLAYER>
<IFRAME SRC="http://www.spidersoft.com/ads/bwz468_60.htm" width="100%" height="60" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></IFRAME>
</NOLAYER>
</TD>
</TR>
</TABLE>
<!-- End of Spidersoft WebZIP Ad Banner Insert-->
';
 zhtm += '<IMG SRC="' + fullPath + pPage + '">';
 zhtm += '<P><B>' + pPage + '</B>';
 zhtm += '
<layer src="http://www.spidersoft.com/ads/bwz468_60.htm" visibility=hidden id=a1 width=600 onload="moveToAbsolute(ad1.pageX,ad1.pageY); a1.clip.height=60;visibility='show';"></layer>
</BODY></HTML>';
 window.popUpWin.document.write(zhtm);
 window.popUpWin.document.close();
 // Johnny Jackson 4/28/98
 }

//-->
                                                                
</SCRIPT>
<link rel="stylesheet" href="../../../../includes/stylesheets/ebooks.css">

	<META NAME="GENERATOR" Content="Symantec Visual Page Mac 1.1.1">
	<TITLE>Teach Yourself Visual C++ 6 in 21 Days -- Ch 8 -- Adding Flash--Incorporating Graphics, Drawing, and Bitmaps</TITLE>
</HEAD>

<BODY TEXT="#000000" BGCOLOR="#FFFFFF">

<H1 ALIGN="CENTER"><IMG SRC="../button/sams.gif" WIDTH="171" HEIGHT="66" ALIGN="BOTTOM"
BORDER="0"><BR>
Teach Yourself Visual C++ 6 in 21 Days</H1>
<CENTER>
<P><A HREF="../ch07/ch07.htm"><IMG SRC="../button/previous.gif" WIDTH="128" HEIGHT="28"
ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../ch09/ch09.htm"><IMG
SRC="../button/next.gif" WIDTH="128" HEIGHT="28" ALIGN="BOTTOM" ALT="Next chapter"
BORDER="0"></A><A HREF="../index.htm"><IMG SRC="../button/contents.gif" WIDTH="128"
HEIGHT="28" ALIGN="BOTTOM" ALT="Contents" BORDER="0"></A> 
<HR>

</CENTER>
<H1 ALIGN="CENTER">- 8 -<BR>
Adding Flash--Incorporating Graphics, Drawing, and Bitmaps</H1>
<H1></H1>

<UL>
	<LI><A HREF="#Heading1">Understanding the Graphics Device Interface</A>
	<UL>
		<LI><A HREF="#Heading2">Device Contexts</A>
		<LI><A HREF="#Heading3">Mapping Modes and Coordinate Systems</A>
	</UL>
	<LI><A HREF="#Heading4">Creating a Graphics Application</A>
	<UL>
		<LI><A HREF="#Heading5">Generating the Application Shell</A>
		<LI><A HREF="#Heading7">Adding the Graphics Capabilities</A>
	</UL>
	<LI><A HREF="#Heading9">Summary</A>
	<LI><A HREF="#Heading10">Q&amp;A</A>
	<LI><A HREF="#Heading11">Workshop</A>
	<UL>
		<LI><A HREF="#Heading12">Quiz</A>
		<LI><A HREF="#Heading13">Exercises</A>
	</UL>
</UL>

<P>
<HR SIZE="4">
<BR>
You've probably noticed that a large number of applications use graphics and display
images. This adds a certain level of flash and polish to the application. With some
applications, graphics are an integral part of their functionality. Having a good
understanding of what's involved in adding these capabilities to your applications
is a key part of programming for the Windows platform. You've already learned how
you can draw lines and how you can string a series of these lines together to make
a continuous drawing. Today, you're going to go beyond that capacity and learn how
you can add more advanced graphics capabilities to your applications. Today, you
will learn</P>

<P>

<UL>
	<LI>How Windows uses a device context to translate drawing instructions into graphics
	output.
	<P>
	<LI>How you can determine the level of control you have over the graphics output
	through different mapping modes.
	<P>
	<LI>How Windows uses pens and brushes to draw different portions of the graphics
	image.
	<P>
	<LI>How you can load and display bitmaps dynamically.
</UL>

<H2><A NAME="Heading1"></A>Understanding the Graphics Device Interface</H2>
<P>The Windows operating system provides you with a couple of levels of abstraction
for creating and using graphics in your applications. During the days of DOS programming,
you needed to exercise a great deal of control over the graphics hardware to draw
any kind of images in an application. This control required an extensive knowledge
and understanding of the various types of graphics cards that users might have in
their computers, along with their options for monitors and resolutions. There were
a few graphics libraries that you could buy for your applications, but overall, it
was fairly strenuous programming to add this capability to your applications.</P>
<P>With Windows, Microsoft has made the job much easier. First, Microsoft provides
you with a virtual graphics device for all of your Windows applications. This virtual
device doesn't change with the hardware but remains the same for all possible graphics
hardware that the user might have. This consistency provides you with the ability
to create whatever kind of graphics you want in your applications because you know
that the task of converting them to something that the hardware understands isn't
your problem.</P>
<P>
<H3><A NAME="Heading2"></A>Device Contexts</H3>
<P>Before you can create any graphics, you must have the device context in which
the graphics will be displayed. The device context contains information about the
system, the application, and the window in which you are drawing any graphics. The
operating system uses the device context to learn in which context a graphic is being
drawn, how much of the area is visible, and where on the screen it is currently located.</P>
<P>When you draw graphics, you always draw them in the context of an application
window. At any time, this window may be full view, minimized, partly hidden, or completely
hidden. This status is not your concern because you draw your graphics on the window
using its device context. Windows keeps track of each device context and uses it
to determine how much and what part of the graphics you draw to actually display
for the user. In essence, the device context you use to display your graphics is
the visual context of the window in which you draw them.</P>
<P>The device context uses two resources to perform most of its drawing and graphics
functions. These two resources are pens and brushes. Much like their real-world counterparts,
pens and brushes perform similar yet different tasks. The device context uses pens
to draw lines and shapes, whereas brushes paint areas of the screen. It's the same
idea as working on paper when you use a pen to draw an outline of an image and then
pick up a paintbrush to fill in the color between the lines.</P>
<P>
<H4>The Device Context Class</H4>
<P>In Visual C++, the MFC device context class (CDC) provides numerous drawing functions
for drawing circles, squares, lines, curves, and so on. All these functions are part
of the device context class because they all use the device context information to
draw on your application windows.</P>
<P>You create a device context class instance with a pointer to the window class
that you want to associate with the device context. This allows the device context
class to place all of the code associated with allocating and freeing a device context
in the class constructor and destructors.</P>


<BLOCKQUOTE>
	<P>
<HR>
<STRONG>NOTE:</STRONG> Device context objects, as well as all of the various drawing objects,
	are classified as resources in the Windows operating system. The operating system
	has only a limited amount of these resources. Although the total number of resources
	is large in recent versions of Windows, it is still possible to run out of resources
	if an application allocates them and doesn't free them correctly. This loss is known
	as a resource leak, and much like a memory leak, it can eventually lock up a user's
	system. As a result, it's advisable to create these resources in the functions where
	they will be used and then delete them as soon as you are finished with them.<BR>
	Following this advised approach to using device contexts and their drawing resources,
	you use them almost exclusively as local variables within a single function. The
	only real exception is when the device context object is created by Windows and passed
	into the event-processing function as an argument. 
<HR>


</BLOCKQUOTE>

<H4>The Pen Class</H4>
<P>You have already seen how you can use the pen class, CPen, to specify the color
and width for drawing lines onscreen. CPen is the primary resource tool for drawing
any kind of line onscreen. When you create an instance of the CPen class, you can
specify the line type, color, and thickness. After you create a pen, you can select
it as the current drawing tool for the device context so that it is used for all
of your drawing commands to the device context. To create a new pen, and then select
it as the current drawing pen, you use the following code:</P>
<P>
<PRE>// Create the device context
CDC dc(this);
// Create the pen
CPen lPen(PS_SOLID, 1, RGB(0, 0, 0));
// Select the pen as the current drawing pen
dc.SelectObject(&amp;lPen);
</PRE>
<P>You can use a number of different pen styles. These pen styles all draw different
patterns when drawing lines. Figure 8.1 shows the basic styles that can be used in
your applications with any color.</P>
<P><A HREF="javascript

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本久道久久综合中文字幕| 97se亚洲国产综合在线| 国产精品久久久久久久岛一牛影视| 日本久久一区二区| 国产精品伊人色| 亚洲妇熟xx妇色黄| 中文字幕在线观看不卡视频| 日韩欧美一卡二卡| 色呦呦日韩精品| 国产成人免费视频网站高清观看视频 | 成人永久看片免费视频天堂| 亚洲香肠在线观看| 亚洲欧美区自拍先锋| 国产女人aaa级久久久级| 欧美日韩高清不卡| 日本道精品一区二区三区| 国产大陆精品国产| 精品一二三四在线| 日韩av一级电影| 亚洲一级在线观看| 亚洲综合一区二区精品导航| 国产精品久久777777| 久久免费看少妇高潮| 欧美电影免费观看高清完整版在线 | 亚洲精品ww久久久久久p站| 中文字幕第一区| 精品91自产拍在线观看一区| 宅男在线国产精品| 欧美天堂一区二区三区| 91官网在线观看| 91首页免费视频| av激情综合网| 99精品国产视频| 成人av动漫在线| eeuss鲁片一区二区三区在线看| 国产成人免费视频| 成人网在线播放| 99精品久久只有精品| 91视频一区二区| 99精品久久免费看蜜臀剧情介绍| eeuss鲁一区二区三区| www.欧美日韩| 91香蕉视频mp4| 欧美专区亚洲专区| 欧美裸体一区二区三区| 欧美精品一卡二卡| 91精品国产福利| 精品国产一区二区三区忘忧草| 日韩午夜在线观看视频| 精品剧情v国产在线观看在线| 欧美精品一区二区三区蜜臀| 久久久亚洲综合| 欧美经典三级视频一区二区三区| 国产日韩亚洲欧美综合| 日本一区二区免费在线| 国产精品久久99| 亚洲午夜在线电影| 日本欧美一区二区三区| 韩日精品视频一区| av一区二区不卡| 欧美日精品一区视频| 欧美一区二区免费| 久久女同互慰一区二区三区| 国产精品理伦片| 亚洲综合在线第一页| 青青草国产精品亚洲专区无| 韩国视频一区二区| 97aⅴ精品视频一二三区| 欧美日韩高清在线| 国产欧美视频在线观看| 亚洲乱码国产乱码精品精小说| 亚洲va在线va天堂| 国产在线精品免费av| 91老师国产黑色丝袜在线| 欧美精品日日鲁夜夜添| 国产亚洲欧洲一区高清在线观看| 亚洲色大成网站www久久九九| 天天综合色天天综合| 国产精品一区免费视频| 色国产综合视频| 久久久国际精品| 亚洲一本大道在线| 国产福利一区二区三区视频在线 | 欧美一区二区三区四区在线观看| 26uuu亚洲| 亚洲午夜国产一区99re久久| 久久精品二区亚洲w码| 91影视在线播放| 日韩三级精品电影久久久| 国产精品久久久久一区| 日本午夜一区二区| zzijzzij亚洲日本少妇熟睡| 欧美不卡123| 亚洲电影一级黄| 不卡电影一区二区三区| 日韩一区二区三区av| 亚洲品质自拍视频网站| 久草中文综合在线| 欧美色精品在线视频| 亚洲国产精品高清| 麻豆精品在线观看| 欧亚洲嫩模精品一区三区| 欧美极品美女视频| 久久国产精品72免费观看| 欧美在线观看视频一区二区| 日本一区二区三区在线观看| 蜜臀精品一区二区三区在线观看| 日本久久电影网| 国产精品入口麻豆原神| 经典三级一区二区| 欧美精品九九99久久| 亚洲一区二区三区在线播放| www.久久久久久久久| 久久久久国产精品免费免费搜索| 日韩精品电影一区亚洲| 在线观看日韩电影| 一区二区三区四区高清精品免费观看| 国产美女娇喘av呻吟久久| 欧美一区二区三区四区高清| 亚洲一级片在线观看| 色婷婷国产精品| 国产精品美女一区二区三区| 国产毛片一区二区| 久久久久久97三级| 国产剧情一区在线| 久久久久97国产精华液好用吗| 老司机精品视频在线| 日韩三级免费观看| 精久久久久久久久久久| 精品国产在天天线2019| 精品在线视频一区| 精品久久久久香蕉网| 精品伊人久久久久7777人| 日韩欧美久久一区| 日本va欧美va精品发布| 欧美一区国产二区| 另类小说图片综合网| 久久人人爽爽爽人久久久| 国产福利91精品| 国产精品久久久久久久蜜臀| 99久久久精品| 一区二区高清视频在线观看| 在线日韩一区二区| 婷婷成人综合网| 欧美精品一区视频| 不卡欧美aaaaa| 一区二区在线看| 欧美日韩国产在线观看| 美女一区二区三区| 久久精品欧美一区二区三区不卡| 国产经典欧美精品| 亚洲视频免费在线| 欧美日韩在线不卡| 美国欧美日韩国产在线播放| www国产亚洲精品久久麻豆| 国产91在线观看| 亚洲精品久久嫩草网站秘色| 欧美日韩国产美女| 国内精品写真在线观看| 国产精品久久久爽爽爽麻豆色哟哟| 色综合久久中文综合久久97| 天天av天天翘天天综合网 | 欧美一区二区三区四区久久 | 欧美日韩综合在线免费观看| 麻豆国产精品官网| 欧美国产激情一区二区三区蜜月| 99视频精品全部免费在线| 亚洲mv在线观看| 26uuu亚洲综合色欧美| 色综合久久久久综合体| 日本午夜一本久久久综合| 国产亚洲精品久| 欧美日韩精品一区二区三区蜜桃| 理论电影国产精品| 亚洲色欲色欲www| 91精品国产综合久久蜜臀| 国产精品18久久久久久vr| 亚洲黄网站在线观看| 精品国产乱码久久久久久久久| 波多野结衣的一区二区三区| 视频一区视频二区中文| 国产精品视频一二三| 欧美福利视频一区| 成人免费高清视频| 亚洲成av人片一区二区| 国产色产综合产在线视频| 欧美在线播放高清精品| 国产精品一区二区三区四区| 亚洲成人一区在线| 国产精品午夜在线| 日韩一级完整毛片| 日本乱码高清不卡字幕| 高清国产一区二区三区| 免费高清成人在线| 亚洲一区影音先锋| 国产拍揄自揄精品视频麻豆| 欧美一级片免费看| 色婷婷av一区二区三区大白胸 | 亚洲欧美日韩中文字幕一区二区三区 | 久久久五月婷婷|