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

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

?? ch13.htm

?? 21天學會VC的英文版
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
buttons, as shown in Figure 13.2.</P><P><A HREF="javascript:popUp('13fig02tif.gif')"><B>FIGURE 13.2.</B></A><B> </B><I>Thewindow designer for an SDI appli-cation.</I></P><P><I></I><H4>Designing Your Application Window</H4><P>After you create an SDI or MDI application where the view class is based on theCFormView class, you need to design your application view. Designing the view ismuch like designing the window layout for a dialog window, but you don't need toworry about including any buttons to close the window while either saving or cancelingthe work done by the user. With an SDI or MDI application, the functionality to saveand exit the window is traditionally located on the application menus or on the toolbar.As a result, you need to include only the controls for the function that your applicationwindow will perform.</P><BLOCKQUOTE>	<P><HR><STRONG>NOTE:</STRONG> If you are building dialog-style applications, the AppWizard doesn't	provide any serialization code in your application shell. If you need to serialize	a dialog-style application, you'll need to add all this code yourself.<HR></BLOCKQUOTE><P>For the sample application that you are building today, lay out controls on thewindow canvas as shown in Figure 13.3 using the control properties listed in Table13.1.</P><P><A HREF="javascript:popUp('13fig03tif.gif')"><B>FIGURE 13.3.</B></A><B> </B><I>Thesample application window layout.</I></P><P><I></I><H4>TABLE 13.1. CONTROL PROPERTY SETTINGS.</H4><P><TABLE BORDER="1">	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"><I>Object</I></TD>		<TD ALIGN="LEFT"><I>Property</I></TD>		<TD ALIGN="LEFT"><I>Setting</I></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<H4>Static Text		</TD>		<TD ALIGN="LEFT">			<H4>ID		</TD>		<TD ALIGN="LEFT">			<H4>IDC_STATIC		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;Name:		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Edit Box		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_ENAME		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Static Text		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_STATIC		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;Age		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Edit Box		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_EAGE		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Static Text		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_STATIC		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">Marital Status:		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Radio Button		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_RSINGLE		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;Single		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Group		</TD>		<TD ALIGN="LEFT">Checked		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Radio Button		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_RMARRIED		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;Married		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Radio Button		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_RDIVORCED		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;Divorced		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Radio Button		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_RWIDOW		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;Widowed		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Check Box		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_CBEMPLOYED		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;Employed		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Button		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_BFIRST		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;First		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Button		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_BPREV		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;Previous		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Button		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_BNEXT		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">Nex&amp;t		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Button		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_BLAST		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">&amp;Last		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">Static Text		</TD>		<TD ALIGN="LEFT">ID		</TD>		<TD ALIGN="LEFT">IDC_SPOSITION		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">			<P>		</TD>		<TD ALIGN="LEFT">Caption		</TD>		<TD ALIGN="LEFT">Record 0 of 0		</TD>	</TR></TABLE></P><P>When you were developing dialog-style applications or windows, you attached variablesto the controls on the window in the dialog class. However, with an SDI or MDI application,which class do you create the variables in? Because the UpdateData function is amember of the CWnd class, and the view class is descended from the CWnd class, althoughthe document is not, then the view class is the most logical place to add the variablesthat you will attach to the controls you placed on the window.</P><P>To attach variables to the controls in your sample application, open the ClassWizard and add variables to the controls, specifying that the place to add them isthe view class (in this case, CSerializeView). For the sample application, add thevariables in Table 13.2 to the controls specified.</P><P><H4>TABLE 13.2. CONTROL VARIABLES.</H4><P><TABLE BORDER="1">	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"><I>Object</I></TD>		<TD ALIGN="LEFT"><I>Name</I></TD>		<TD ALIGN="LEFT"><I>Category</I></TD>		<TD ALIGN="LEFT"><I>Type</I></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">IDC_CBEMPLOYED		</TD>		<TD ALIGN="LEFT">m_bEmployed		</TD>		<TD ALIGN="LEFT">Value		</TD>		<TD ALIGN="LEFT">BOOL		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">IDC_EAGE		</TD>		<TD ALIGN="LEFT">m_iAge		</TD>		<TD ALIGN="LEFT">Value		</TD>		<TD ALIGN="LEFT">int		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">IDC_ENAME		</TD>		<TD ALIGN="LEFT">m_sName		</TD>		<TD ALIGN="LEFT">Value		</TD>		<TD ALIGN="LEFT">CString		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">IDC_RSINGLE		</TD>		<TD ALIGN="LEFT">m_iMaritalStatus		</TD>		<TD ALIGN="LEFT">Value		</TD>		<TD ALIGN="LEFT">int		</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">IDC_SPOSITION		</TD>		<TD ALIGN="LEFT">m_sPosition		</TD>		<TD ALIGN="LEFT">Value		</TD>		<TD ALIGN="LEFT">CString		</TD>	</TR></TABLE></P><P>If you examine the source code for the view class, you will notice that thereis no OnDraw function. If you are using the CFormView ancestor class for your SDIor MDI application, you don't need to worry about the OnDraw function. Instead, youtreat the view class very much as you would the dialog class in a dialog window ordialog-style application. The primary difference is that the data that you need touse to populate the controls on the window are not in the view class, but in thedocument class. As a result, you need to build the interaction between these twoclasses to pass the data for the controls back and forth.</P><P><H3><A NAME="Heading8"></A>Creating a Serializable Class</H3><P>When you create a form-based application, it is assumed that your applicationwill hold multiple records in the form and that the user will be able to scroll throughthe records to make changes. The user will be able to add additional records or evenremove records from the record set. The challenge at this point in building thisapplication is how you represent this set of records, supporting all the necessaryfunctionality.</P><P>One approach is to create a class that would encapsulate each record, and thenhold these records in an array, much as you did with the drawing application thatyou created and enhanced over the past few days. This class would need to descendfrom the CObject class and would need to contain variables for all the control variablesthat you added to the view class, along with methods to read and write all of thesevariables. Along with adding the methods to set and read all of the variables, youneed to make the class serializable by adding the Serialize function to the class,as well as the two macros that complete the serialization of the class.</P><P><H4>Creating the Basic Class</H4><P>As you may remember from Day 10, when you want to create a new class, you canselect the project in the Class View tab of the workspace pane, right-click the mousebutton, and select New Class from the context menu. This opens the New Class dialog.</P><P>In the New Class dialog, you specify the type of class, whether it's an MFC class,and generic class, or a form class. To create a class that can contain one record'sdata, you most likely want to create a generic class. You'll learn more about howto determine which of these types of classes to create on Day 16, &quot;Creating

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品久久99精品久久| 欧美私模裸体表演在线观看| 国产目拍亚洲精品99久久精品| 91婷婷韩国欧美一区二区| 麻豆成人91精品二区三区| 亚洲第一狼人社区| 亚洲一区二区三区四区在线观看| 亚洲丝袜另类动漫二区| 国产偷国产偷精品高清尤物| 中文字幕va一区二区三区| 亚洲欧洲成人av每日更新| 亚洲日本成人在线观看| 国产乱理伦片在线观看夜一区| 国产精品66部| 日韩精品一区二区三区中文不卡| 欧美精品一区二区久久久 | 亚洲人妖av一区二区| 26uuu色噜噜精品一区二区| 久久影视一区二区| 久久99久久精品欧美| 狠狠色综合日日| 97超碰欧美中文字幕| 欧洲在线/亚洲| 欧美一区日韩一区| 精品国产青草久久久久福利| 日本亚洲三级在线| 国产二区国产一区在线观看| 91视频www| 亚洲视频免费观看| 91丨九色丨国产丨porny| 亚洲国产激情av| 成人黄色在线视频| 欧美日韩高清在线| 国产亚洲成年网址在线观看| 狠狠色丁香久久婷婷综合丁香| 91精品国产综合久久精品| 婷婷综合五月天| 成人综合婷婷国产精品久久 | 中文字幕不卡在线观看| 国产 欧美在线| 在线电影院国产精品| 中文字幕av在线一区二区三区| 国产激情一区二区三区四区| 国产日韩欧美a| 成人黄色一级视频| 一区二区三区欧美亚洲| 国产不卡视频一区| 国产精品国产三级国产普通话99 | 欧美亚洲综合久久| 天堂av在线一区| av动漫一区二区| 欧美mv和日韩mv的网站| 亚洲高清视频中文字幕| 波多野结衣在线一区| 亚洲欧美区自拍先锋| 欧美日韩国产综合一区二区| 另类小说图片综合网| 中文av一区二区| 九九视频精品免费| 国产精品三级在线观看| 欧美三级视频在线观看| 亚洲欧美日韩国产另类专区| 欧美群妇大交群的观看方式| 久久97超碰色| 亚洲乱码中文字幕| 色综合久久久久网| 国产欧美精品日韩区二区麻豆天美| 99riav一区二区三区| 日韩电影在线免费观看| 亚洲国产精品成人综合色在线婷婷| 欧美在线小视频| 国产麻豆精品久久一二三| 久久奇米777| 国产精品白丝jk黑袜喷水| 一二三四区精品视频| 久久毛片高清国产| 欧美区一区二区三区| 国产成人精品亚洲777人妖| 午夜精品久久久久久久99水蜜桃| 久久丝袜美腿综合| 5566中文字幕一区二区电影| 爽爽淫人综合网网站| 中文乱码免费一区二区| 精品久久久久久无| 欧美裸体bbwbbwbbw| 99久久婷婷国产综合精品电影 | 成人欧美一区二区三区1314| 精品国产三级电影在线观看| 在线免费精品视频| 99精品国产99久久久久久白柏| 国产一区二区成人久久免费影院| 午夜激情久久久| 亚洲精品综合在线| 中文乱码免费一区二区| 久久九九久久九九| 精品久久人人做人人爰| 51精品秘密在线观看| 欧美午夜影院一区| 日本精品一区二区三区高清| 三级不卡在线观看| 亚洲色图视频免费播放| 中文字幕av不卡| 国产欧美一区二区三区鸳鸯浴| 精品三级av在线| 日韩一级片在线观看| 国产成人午夜精品影院观看视频 | 狠狠色综合日日| 久久97超碰国产精品超碰| 青青草伊人久久| 欧美国产1区2区| 国产精品色在线观看| 国产色产综合色产在线视频 | 亚洲欧美一区二区久久| 亚洲同性同志一二三专区| 最新热久久免费视频| 中文字幕亚洲一区二区va在线| 中国av一区二区三区| 国产欧美精品一区二区色综合朱莉| 2023国产一二三区日本精品2022| 精品粉嫩aⅴ一区二区三区四区| 精品久久久久久综合日本欧美| 精品国产精品网麻豆系列| 精品国产伦一区二区三区观看体验 | 亚洲国产另类av| 五月天激情综合| 日韩二区三区四区| 韩国女主播成人在线观看| 国产一区二区三区视频在线播放| 国产成人精品综合在线观看| 成人黄色网址在线观看| 色美美综合视频| 欧美久久婷婷综合色| 日韩欧美一级片| 国产日产欧美一区| 一区二区三区四区在线| 日韩高清电影一区| 国产精品综合在线视频| 色欧美乱欧美15图片| 日韩三级视频在线看| 中文无字幕一区二区三区| 亚洲综合色视频| 精品一区二区免费看| 99热在这里有精品免费| 欧美日韩国产综合草草| 久久久无码精品亚洲日韩按摩| 亚洲情趣在线观看| 欧美网站一区二区| 91麻豆精品国产91久久久| 亚洲黄色在线视频| 国产三区在线成人av| 亚洲综合视频在线| 国产乱码字幕精品高清av| 色婷婷av一区| 久久影院午夜论| 亚洲一二三区不卡| 高清视频一区二区| 欧美肥大bbwbbw高潮| 国产精品久久久久久久久晋中 | 91女厕偷拍女厕偷拍高清| 日韩午夜av电影| 亚洲精品美国一| 韩国精品免费视频| 欧美日韩国产在线观看| 国产精品白丝在线| 国产在线精品一区二区夜色| 在线观看精品一区| 国产精品国产馆在线真实露脸| 琪琪一区二区三区| 欧美性videosxxxxx| 国产精品毛片久久久久久久| 久久精品国产99| 欧美视频一区二区三区在线观看| 国产亚洲成年网址在线观看| 免费人成黄页网站在线一区二区| 91精品福利在线| 中文字幕日韩欧美一区二区三区| 国产一区二区三区电影在线观看| 国产一区二区三区久久久| 91精品国产91久久久久久最新毛片| 一区二区三国产精华液| av成人老司机| 国产精品久久久久影院亚瑟| 国产一区二区精品在线观看| 日韩午夜在线观看视频| 日韩电影在线免费观看| 777午夜精品免费视频| 亚洲一区二区三区免费视频| 色综合天天综合在线视频| 国产 日韩 欧美大片| 亚洲精品一区二区三区四区高清 | 成人丝袜高跟foot| 久久嫩草精品久久久精品| 久久精品国产亚洲高清剧情介绍 | 九九**精品视频免费播放| 4438x亚洲最大成人网| 午夜欧美2019年伦理| 欧美人妇做爰xxxⅹ性高电影| 亚洲观看高清完整版在线观看| 91成人看片片| 午夜国产不卡在线观看视频|