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

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

?? apf.htm

?? /// //Visual C++ 6.0 21天自學教程
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
</PRE><P>When this code is run, the resulting rectangle rcDst will hold the coordinates(50,220)-(150,26).</P><P><A HREF="javascript:popUp('33fig02.gif')"><B>FIGURE F.2.</B></A><B> </B><I>Theeffects of a subtraction operation on two partially overlapping rectangles.</I></P><P>You can increase or decrease the size of a rectangle using InflateRect() and DeflateRect().These both have several forms that accept various types of parameters, as shown inTable F.6.</P><P><H4>TABLE F.6.&nbsp;&nbsp;PARAMETER FORMS FOR InflateRect AND DeflateRect.</H4><P><TABLE BORDER="1">	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"><I>Parameters</I></TD>		<TD ALIGN="LEFT"><I>Description</I></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">(int x, int y)</TD>		<TD ALIGN="LEFT">Inflate or deflate the left and right sides by the x value and the top and bottom			sides by the y value.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">(SIZE size)</TD>		<TD ALIGN="LEFT">Inflate or deflate the left and right sides by size.cx and the top and bottom sides			by size.cy.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">(LPCRECT lpRect)</TD>		<TD ALIGN="LEFT">Inflate each side by the corresponding left, top, right, and bottom values from lpRect.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">(int l, int t, int r, int b)</TD>		<TD ALIGN="LEFT">Inflate each side by the corresponding left, top, right, and bottom values.</TD>	</TR></TABLE></P><P>For example, the following code inflates rcOne and deflates rcTwo:</P><P><PRE>CRect rcOne(10,10,100,100);CRect rcTwo(50,50,150,200);rcOne.InflateRect(5,5);rcTwo.DeflateRect(10,20,30,40);</PRE><P>After these lines have run, rcOne will be set to the coordinates (5,5)-(105,105)and rcTwo will be set to the coordinates (60,70)-(120,160).</P><P>You can perform hit-testing by determining whether a specified point (perhapsfrom a mouse click) lies within the bounds of a rectangle by calling PtInRect() andpassing the point to be tested. If the point does lie within the rectangle, a TRUEvalue is returned; otherwise a FALSE value is returned.</P><P>In the following lines, the Hit! - ptTest1 message is displayed because ptTest1does lie within the rcTestArea test area, whereas ptTest2 doesn't, so PtInRect()returns TRUE for ptTest1 and FALSE for ptTest2:</P><P><PRE>CRect rcTestArea(10,20,440,450);CPoint ptTest1(200,200), ptTest2(500,500);if (rcTestArea .PtInRect(ptTest1))   &Acirc;AfxMessageBox(&quot;Hit! - ptTest1&quot;);if (rcTestArea .PtInRect(ptTest2)) </PRE><H3><A NAME="Heading9"></A>&Acirc;AfxMessageBox(&quot;Hit! - ptTest2&quot;);</H3><P>There are also several operator overloads for use with CRect objects, as shownin Table F.7.</P><P><H4>TABLE F.7.&nbsp;OPERATOR OVERLOADS USED WITH CRect.</H4><P><TABLE BORDER="1">	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"><I>Operator</I></TD>		<TD ALIGN="LEFT"><I>Description</I></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">=</TD>		<TD ALIGN="LEFT">Copies all the coordinates from the right rectangle operand to the left rectangle,			like an ordinary numeric assignment.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">+</TD>		<TD ALIGN="LEFT">Either displaces a rectangle position if a CPoint or CSize object is added to a rectangle			or inflates the coordinates with their corresponding counterparts if a CRect object			is added.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">-</TD>		<TD ALIGN="LEFT">Same as +, except that the coordinates are displaced in a negative direction or deflated			if a CRect is used.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">+=</TD>		<TD ALIGN="LEFT">Same overall effect as + but affects only the current rectangle.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">-=</TD>		<TD ALIGN="LEFT">Same overall effect as - but affects only the current rectangle.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">&amp;</TD>		<TD ALIGN="LEFT">Creates an intersection rectangle from the two rectangle operands.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">|</TD>		<TD ALIGN="LEFT">Creates a union rectangle from the two rectangle operands.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">&amp;=</TD>		<TD ALIGN="LEFT">Same overall effect as &amp; but affects only the current rectangle.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">|=</TD>		<TD ALIGN="LEFT">Same overall effect as | but affects only the current rectangle.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">==</TD>		<TD ALIGN="LEFT">Returns TRUE if the rectangles are identical, otherwise FALSE.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">!=</TD>		<TD ALIGN="LEFT">Returns FALSE if the rectangles are identical; otherwise returns TRUE.</TD>	</TR></TABLE></P><P>The following lines show some of the CRect operator overloads being used to manipulatethe rcStart rectangle:</P><P><PRE>CRect rcStart(10,10,100,100);rcStart = rcStart + CPoint(5,5);rcStart -= CSize(5,5);rcStart    += CRect(1,2,3,4);if (rcStart == CRect(9,8,103,104)) AfxMessageBox(&quot;TRUE&quot;);</PRE><P>The final condition returns TRUE, thus displaying the message box because thefinal coordinates are (9,8)-(103,104).</P><BLOCKQUOTE>	<P><HR><B>USING THE </B>NormalizeRect()<B> FUNCTION</B></P>	<P>Sometimes you might perform an operation that makes the top-left point hold values	greater than the bottom-right point. If this is so, the width or height might be	negative, causing other functions to fail. If you suspect this might happen, you	can call the NormalizeRect() function to correct the coordinates so that the top-left	coordinates have lower values than the bottom-right coordinates. <HR></BLOCKQUOTE><H3><A NAME="Heading10"></A>Using the CSize Class</H3><P>The CSize class encapsulates the SIZE structure and provides several constructorsand operator overloads that manipulate the internal cx and cy values that definea size. The various constructors you can use to create an instance of a CSize objectare shown in Table F.8.</P><P><H4>TABLE F.8.&nbsp;&nbsp;CONSTRUCTOR TYPES FOR THE CSize CLASS.</H4><P><TABLE BORDER="1">	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"><I>Constructor Definition</I></TD>		<TD ALIGN="LEFT"><I>Description</I></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CSize()</TD>		<TD ALIGN="LEFT">Creates an uninitialized CSize object.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CSize(SIZE sizeInit)</TD>		<TD ALIGN="LEFT">Copies the cx and cy values from another CSize object or SIZE structure.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CSize(initCX, initCY)</TD>		<TD ALIGN="LEFT">Initializes the object with initCX for the horizontal size and initCY for the vertical			size.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CSize(POINT ptInit)</TD>		<TD ALIGN="LEFT">Initializes the object with the x and y values from a CPoint object or POINT structure.</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CSize(DWORD dwSize)</TD>		<TD ALIGN="LEFT">Sets the cx value to the low-word (bottom 16 bits) of dwSize and the cy value to			the high-word (to 16 bits) of dwSize.</TD>	</TR></TABLE></P><P>You can manipulate the cx and cy members directly like this:</P><P><PRE>CSize tstSize(10,10);tstSize.cx = tstSize.cy * 2;</PRE><P>The only functions that the CSize class offers are operator overloads, as shownin Table F.9.</P><P><H4>TABLE F.9.&nbsp;&nbsp;OPERATOR OVERLOADS USED WITH CSize.</H4><P><TABLE BORDER="1" WIDTH="100%">	<TR>		<TD WIDTH="21%"><I>Operator</I></TD>		<TD WIDTH="79%"><I>Description</I></TD>	</TR>	<TR>		<TD WIDTH="21%">+</TD>		<TD WIDTH="79%">Add two size objects</TD>	</TR>	<TR>		<TD WIDTH="21%">-</TD>		<TD WIDTH="79%">Subtract one size object from another</TD>	</TR>	<TR>		<TD WIDTH="21%" HEIGHT="13">+=</TD>		<TD WIDTH="79%" HEIGHT="13">Add a SIZE object</TD>	</TR>	<TR>		<TD WIDTH="21%">-=</TD>		<TD WIDTH="79%">Subtract a SIZE object</TD>	</TR>	<TR>		<TD WIDTH="21%">==</TD>		<TD WIDTH="79%">Determine whether the two sizes are the same and return TRUE if identical</TD>	</TR>	<TR>		<TD WIDTH="21%">!=</TD>		<TD WIDTH="79%">Determine whether the two sizes are different and return TRUE if different</TD>	</TR></TABLE></P><P>These can be used just like normal arithmetic operators and affect both the cxand cy members, as shown in the following lines that manipulate the contents of tstSize:</P><P><PRE>CSize tstSize(10,15);tstSize += tstSize + tstSize - CSize(1,2);if (tstSize == CSize(29,43)) AfxMessageBox(&quot;TRUE&quot;);</PRE><P>When run, this code will display the TRUE message box message because tstSizeends up as the size 29&yen;43.</P><P><H2><A NAME="Heading11"></A>Using the Time-Handling Classes</H2><P>The capability to store dates and times is a common requirement for many applications.You will probably also need to calculate elapsed times and time spans between storeddate and time values and be able to format those into user-readable text strings.</P><P>MFC provides four classes to handle all the aspects of date and time manipulationand storage. Originally, there were just two classes; CTime and CTimeSpan, whichare based on the UNIX time_t (4 byte long value) system (the number of elapsed secondssince 1970). However, granularity of only one second and a limited range of datesbetween 1970 and 2038 proved too restrictive for many applications. Hence, two newreplacement classes, COleDateTime and COleDateTimeSpan, are now also supplied andshould be used in preference to CTime and CTimeSpan in newer applications.</P><P>COleDateTime is based on an underlying DATE structure (which is actually justa double value). This greater capacity of storage type lets COleDateTime cover arange of dates between January 1, 100, and December 31, 9999, and down to an approximateresolution of 1 millisecond. The difference between two COleDateTime values can berepresented and manipulated by the COleDateTimeSpan object.</P><P>Because of the similarity between the CTime class and the newer COleDateTime class,the following sections just describe COleDateTime, although many of the functionsare identical in the CTime versions.</P><BLOCKQUOTE>	<P><HR><B>USING </B>CTime<B> WITH DATABASES</B></P>	<P>You might find it convenient to use CTime when using ODBC-based databases because	the RFX recordset transfer macros know only how to handle CTime objects directly	and don't know how to handle COleDateTime objects without conversion. If you use	DAO databases, COleDateTime can be used directly. <HR></BLOCKQUOTE><H3><A NAME="Heading12"></A>Using the COleDateTime Class</H3><P>COleDateTime is connected with OLE in that it can be used in conjunction withthe VARIANT structure, often used in OLE automation. Because of the wide range ofdate and time storage systems, especially in OLE environments, COleDateTime mustbe capable of converting between all these various types. This support is reflectedin its many constructor forms, as shown in Table F.10.</P><P><H4>TABLE F.10.&nbsp;&nbsp;CONSTRUCTOR TYPES USED WITH COleDateTime.</H4><P><TABLE BORDER="1">	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"><I>Constructor Definition</I></TD>		<TD ALIGN="LEFT"><I>Description</I></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">COleDateTime()</TD>		<TD ALIGN="LEFT">Creates an uninitialized COleDateTime object</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">COleDateTime(const COleDateTime&amp; datesrc)</TD>		<TD ALIGN="LEFT">Copies the values from another COleDateTime object</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">COleDateTime(int nYear, int nMonth, int nDay, int nHour, int nMinute, int nSecond)</TD>		<TD ALIGN="LEFT">Initializes the date and time from the values passed</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">COleDateTime(const VARIANT&amp; varSrc)</TD>		<TD ALIGN="LEFT">Converts a date time from a VARIANT structure</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">COleDateTime(DATE dtSrc)</TD>		<TD ALIGN="LEFT">Copies a date time from a DATE structure</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">COleDateTime(time_t timeSrc)</TD>		<TD ALIGN="LEFT">Copies a date time from a UNIX-style time_t structure</TD>	</TR>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品日韩一| 午夜天堂影视香蕉久久| 久久久久久一二三区| 日韩一区二区三区电影| 4438成人网| 日韩三级在线免费观看| 日韩免费高清视频| 久久天天做天天爱综合色| 久久在线观看免费| 久久久久99精品一区| 久久久久久久久伊人| 国产欧美日韩在线| 国产精品无码永久免费888| 国产精品毛片a∨一区二区三区| 欧美国产1区2区| 自拍偷拍国产精品| 免费观看91视频大全| 欧美一区二区播放| 欧美成人a视频| 26uuu精品一区二区三区四区在线| 欧美电影免费提供在线观看| 日韩av在线播放中文字幕| 日本人妖一区二区| 精彩视频一区二区| 成人黄色av网站在线| 99精品桃花视频在线观看| 91麻豆蜜桃一区二区三区| 欧美日韩国产大片| 日韩一区二区三区免费观看| 国产日韩成人精品| 亚洲精品国产精品乱码不99 | 国产精品少妇自拍| 亚洲少妇30p| 午夜电影网亚洲视频| 久久99精品一区二区三区 | 亚洲综合清纯丝袜自拍| 国产精品毛片久久久久久| 一区二区三区在线看| 人人狠狠综合久久亚洲| 国产剧情一区二区三区| 91原创在线视频| 欧美精品第一页| 久久久噜噜噜久久人人看| 成人av在线播放网站| 五月天一区二区三区| 亚洲午夜久久久久久久久久久| 久久99精品视频| 99久久久国产精品免费蜜臀| 欧美一区欧美二区| 国产精品福利一区二区| 亚洲大片精品永久免费| 国产成人综合视频| 欧美日韩你懂的| 久久综合九色综合欧美亚洲| 一区二区三区 在线观看视频 | 欧美亚洲国产怡红院影院| 精品日韩一区二区三区免费视频| 亚洲三级在线看| 国内成人免费视频| 在线国产亚洲欧美| 国产欧美日韩综合精品一区二区 | 欧美性大战久久久| 国产无人区一区二区三区| 婷婷中文字幕一区三区| fc2成人免费人成在线观看播放| 欧美一区二区在线看| 国产精品的网站| 国模无码大尺度一区二区三区| 欧美亚洲综合另类| **欧美大码日韩| 国产乱码精品一区二区三区av| 欧美日韩一区二区在线视频| 中文字幕不卡在线| 久久99国产精品麻豆| 国产精品美女久久久久久久网站| 日本午夜精品一区二区三区电影| 色综合天天综合色综合av| 久久精品人人做人人爽97| 日本一道高清亚洲日美韩| 欧美亚洲国产一区二区三区va | 国产伦精品一区二区三区免费迷 | 欧美夫妻性生活| 亚洲欧美日韩国产综合| 福利电影一区二区| 久久久精品国产免大香伊| 奇米一区二区三区| 67194成人在线观看| 亚洲综合一二三区| 在线观看日韩国产| 中文字幕欧美一区| 粉嫩av一区二区三区在线播放 | 亚洲影院在线观看| 成人福利视频网站| 国产精品免费aⅴ片在线观看| 国产精品一区二区三区网站| 欧美精品一区视频| 国内精品自线一区二区三区视频| 欧美一区二区大片| 天天影视色香欲综合网老头| 在线精品亚洲一区二区不卡| 夜夜嗨av一区二区三区网页| 91欧美一区二区| 最近日韩中文字幕| 99久久久久久99| 亚洲美女视频在线| 欧美视频第二页| 亚洲午夜精品网| 欧美视频你懂的| 日韩不卡一二三区| 日韩欧美国产一区在线观看| 久久99精品久久久久婷婷| 26uuu另类欧美亚洲曰本| 国产精品亚洲综合一区在线观看| 久久这里只有精品6| 丁香桃色午夜亚洲一区二区三区| 国产精品天美传媒| 99精品黄色片免费大全| 樱花影视一区二区| 欧美日韩性生活| 美女爽到高潮91| 精品sm在线观看| 成+人+亚洲+综合天堂| 亚洲人成影院在线观看| 欧美性大战久久久久久久| 日韩电影一二三区| 精品国产91乱码一区二区三区 | 欧美日韩激情一区二区| 蜜桃视频在线观看一区二区| 久久久不卡影院| av影院午夜一区| 亚洲午夜av在线| 日韩精品一区二区三区swag| 成人午夜视频在线| 亚洲国产日韩精品| 欧美大片一区二区| 成人性生交大片免费看在线播放| 亚洲乱码国产乱码精品精的特点 | 欧美日韩国产综合久久| 韩国视频一区二区| 亚洲欧洲日韩综合一区二区| 欧美日韩精品欧美日韩精品 | 欧美日韩三级在线| 国产在线一区二区| 亚洲欧洲综合另类| 日韩一区二区三| 99re这里都是精品| 美女任你摸久久 | 国产99久久精品| 亚洲一区二区三区四区在线免费观看 | 91美女视频网站| 调教+趴+乳夹+国产+精品| 欧美国产一区在线| 欧美色涩在线第一页| 九九精品一区二区| 亚洲视频在线一区| 日韩精品影音先锋| 91国产视频在线观看| 激情图区综合网| 一区二区三区高清| 久久久精品中文字幕麻豆发布| 色94色欧美sute亚洲线路二| 麻豆91小视频| 亚洲一区在线播放| 国产精品乱子久久久久| 欧美一区永久视频免费观看| www.久久精品| 免费精品视频最新在线| 亚洲女女做受ⅹxx高潮| 久久综合久色欧美综合狠狠| 精品视频一区二区三区免费| 国产mv日韩mv欧美| 久久精品国产免费看久久精品| 亚洲欧美一区二区不卡| 久久综合狠狠综合久久综合88| 欧美日韩久久久一区| 97精品超碰一区二区三区| 国产一区二区三区免费观看| 午夜精品久久久久久久99樱桃| 国产精品久久久一区麻豆最新章节| 欧美精品在线观看一区二区| 色999日韩国产欧美一区二区| 国产a级毛片一区| 国产在线精品视频| 免费成人在线视频观看| 午夜欧美视频在线观看| 亚洲午夜精品一区二区三区他趣| 中文字幕一区二区三区精华液| 久久久av毛片精品| 日韩精品中文字幕一区| 欧美一区二区精品在线| 欧美三级三级三级爽爽爽| 99久久精品国产一区| 高清久久久久久| 国产露脸91国语对白| 精品一区二区三区在线播放 | 99re成人精品视频| 成人亚洲一区二区一| 国产精品影音先锋| 久久精品免费观看| 另类的小说在线视频另类成人小视频在线 |