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

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

?? apf.htm

?? 21天學會VC的英文版
?? 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一区二区三区免费野_久草精品视频
jvid福利写真一区二区三区| 欧美三级日韩三级| 91成人在线精品| 欧美不卡123| 亚洲欧美激情在线| 欧美日韩国产欧美日美国产精品| 日韩色在线观看| 久久久.com| 有坂深雪av一区二区精品| 久久精品国产久精国产| 91蜜桃在线观看| 精品国产髙清在线看国产毛片| 亚洲欧美日韩系列| 国产精品18久久久久久久网站| 在线观看国产日韩| 欧美激情中文字幕一区二区| 婷婷综合久久一区二区三区| 北岛玲一区二区三区四区| 日韩一区二区三区四区 | 国产一区二区三区四区在线观看| 97精品国产97久久久久久久久久久久| 日韩一区二区免费在线观看| 亚洲午夜在线观看视频在线| fc2成人免费人成在线观看播放| 精品国精品自拍自在线| 美女视频一区二区三区| 欧美视频完全免费看| 亚洲日本欧美天堂| 成人视屏免费看| 中文一区在线播放| 国产91精品精华液一区二区三区| 久久综合一区二区| 久久激情综合网| 欧美成人乱码一区二区三区| 日韩av成人高清| 欧美精品成人一区二区三区四区| 亚洲图片欧美色图| 欧美精品一二三四| 免费成人在线播放| 精品av综合导航| 国产资源在线一区| 欧美国产日韩精品免费观看| 成人精品国产福利| 亚洲欧美电影一区二区| 99国产精品久久久久久久久久久| 亚洲视频一区二区在线| 欧洲精品中文字幕| 五月激情丁香一区二区三区| 欧美一级高清片在线观看| 美女在线视频一区| 久久久国产综合精品女国产盗摄| 国产大陆亚洲精品国产| 中文字幕一区二区在线播放| 一本到三区不卡视频| 亚洲国产精品嫩草影院| 欧美精品乱码久久久久久| 免费视频最近日韩| 久久久精品蜜桃| 91麻豆免费看片| 日本在线不卡视频| 久久蜜臀精品av| 91蝌蚪porny| 日韩电影免费在线看| 国产亚洲一区二区三区四区| 色噜噜夜夜夜综合网| 日韩和欧美一区二区三区| 久久综合久久综合九色| 99视频超级精品| 免费成人av在线| 国产精品久久久久国产精品日日| 欧美日韩国产大片| 国产盗摄女厕一区二区三区| 亚洲高清视频在线| 国产欧美日韩另类视频免费观看| 欧洲另类一二三四区| 国产裸体歌舞团一区二区| 亚洲欧美日韩国产综合在线| 精品美女被调教视频大全网站| 99精品黄色片免费大全| 国产自产高清不卡| 亚洲夂夂婷婷色拍ww47| 欧美国产国产综合| 欧美一区二区三区播放老司机| 成人性色生活片| 蜜桃久久久久久久| 一区二区三区精密机械公司| 国产欧美综合在线观看第十页| 欧美在线制服丝袜| 成人小视频在线观看| 蜜桃久久久久久| 亚洲成av人片观看| 亚洲丝袜精品丝袜在线| 久久久午夜精品| 欧美一卡二卡在线| 欧美日韩精品一区二区天天拍小说| 国产1区2区3区精品美女| 免费成人性网站| 亚洲香肠在线观看| 亚洲视频一区二区在线| 日本一区二区三区在线观看| 精品国产凹凸成av人网站| 欧美久久免费观看| 欧美三级在线视频| 在线免费不卡视频| 日本韩国视频一区二区| 成人午夜激情影院| 国产电影精品久久禁18| 国产福利不卡视频| 国产精品一区专区| 国产二区国产一区在线观看| 蜜桃精品视频在线| 日本怡春院一区二区| 午夜欧美视频在线观看| 亚洲高清免费视频| 亚洲成人动漫在线免费观看| 亚洲线精品一区二区三区八戒| 一区二区三区四区蜜桃| 亚洲欧美激情小说另类| 亚洲综合一二三区| 亚洲国产成人av好男人在线观看| 亚洲一区二区中文在线| 偷拍一区二区三区| 免费的国产精品| 久久国产精品第一页| 精油按摩中文字幕久久| 老司机午夜精品99久久| 韩国一区二区三区| 国产ts人妖一区二区| 丁香六月综合激情| 91影视在线播放| 日本高清不卡aⅴ免费网站| 欧美猛男超大videosgay| 欧美精品在欧美一区二区少妇| 欧美一区二区国产| 欧美变态tickle挠乳网站| 国产欧美一二三区| 亚洲乱码国产乱码精品精的特点| 午夜精品久久久久久久蜜桃app| 青娱乐精品视频| 国产精品亚洲一区二区三区在线 | 懂色av中文一区二区三区| 丁香啪啪综合成人亚洲小说| 91视视频在线观看入口直接观看www| 色一情一伦一子一伦一区| 51精品视频一区二区三区| 久久天堂av综合合色蜜桃网| 亚洲欧美色图小说| 久久精品久久99精品久久| 风流少妇一区二区| 精品视频在线视频| 精品日本一线二线三线不卡| 亚洲三级在线免费观看| 日本一不卡视频| 不卡av在线免费观看| 欧美夫妻性生活| 国产精品私人自拍| 水蜜桃久久夜色精品一区的特点| 国产精品资源网站| 欧美在线看片a免费观看| 精品成人在线观看| 一区二区三区小说| 国产麻豆日韩欧美久久| 欧美偷拍一区二区| 日本一区二区综合亚洲| 午夜国产精品一区| 成年人国产精品| 精品久久久久久久久久久久包黑料 | 日韩精品视频网站| 成人毛片在线观看| 日韩一级成人av| 亚洲色图欧美在线| 精品一区二区三区免费观看| 欧美性做爰猛烈叫床潮| 中文字幕高清一区| 久久99精品一区二区三区| 欧美中文字幕一二三区视频| 欧美国产日本视频| 激情五月激情综合网| 欧美乱妇一区二区三区不卡视频| 中文字幕在线不卡视频| 国产精品亚洲一区二区三区妖精| 欧美精品精品一区| 亚洲一区二区三区影院| gogo大胆日本视频一区| 26uuu亚洲| 黄页视频在线91| 日韩视频123| 蜜桃av一区二区在线观看| 在线精品国精品国产尤物884a| 国产精品色婷婷| 高清不卡在线观看| 精品嫩草影院久久| 麻豆国产精品777777在线| 3atv一区二区三区| 亚洲国产日韩在线一区模特 | 欧美午夜精品免费| 亚洲精品高清视频在线观看| 成人av在线播放网址| 欧美高清一级片在线观看| 成人性生交大片免费看视频在线|