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

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

?? ch01.htm

?? 24小時精通VC
?? HTM
?? 第 1 頁 / 共 3 頁
字號:
</UL><P>After answering a few questions using AppWizard, you can compile and run the firstversion of your application in a few minutes.<H3><FONT COLOR="#000077"><B>Building Windows Applications with AppWizard</B></FONT></H3><P>In general, the following steps are used to build a program using AppWizard:<DL>	<DD>1. Create a program skeleton using AppWizard.<BR>	<BR>	2. Create any additional resources used by the program.<BR>	<BR>	3. Add any additional classes and message-handling functions using ClassWizard.<BR>	<BR>	4. Add the functionality required by your program. You actually have to write some	code yourself for this part.<BR>	<BR>	5. Compile and test your program, using the Visual C++ integrated debugger if needed.</DL><P>To start AppWizard and create your first Windows program, follow these steps:<DL>	<DD>1. Select New from the File menu. The New dialog box is displayed.<BR>	<BR>	2. Select the Projects tab. A list of project types will be displayed.<BR>	<BR>	3. To create an MFC-based project, select MFC AppWizard(exe) as the project type.<BR>	<BR>	4. Specify HelloMFC as the project name in the Project name box; a default location	for your project will automatically be entered in the Location box (see Figure 1.6).</DL><P><A NAME="06"></A><A HREF="06.htm"><B>Figure 1.6.</B> </A><BR><I>The New Projects dialog box for the HelloMFC project.</I><DL>	<DD>5. Make sure the Create New Workspace radio button is selected, and click OK	to create the project.<BR>	<BR>	6. The first MFC AppWizard screen asks for a project type, as shown in Figure 1.7.	MFC AppWizard works similarly to the Developer Studio Setup Wizard, enabling you	to move forward and backward using the Next and Back buttons. Select the radio button	labeled Single Document and then click the Next button.</DL><P><A NAME="07"></A><A HREF="07.htm"><B>Figure 1.7.</B> </A><I><BR>The first AppWizard screen for HelloMFC.</I><DL>	<DD>7. Move through all six MFC AppWizard screens. Each screen enables you to change	a different option about the HelloMFC project. Although this example won't use any	optional features, feel free to experiment with the options offered by MFC AppWizard.<BR>	<BR>	8. The last MFC AppWizard screen presents a list of classes that is generated for	the project. Click the button labeled Finish. MFC AppWizard displays a summary of	the project, listing the classes and features you selected, as shown in Figure 1.8.</DL><P><A NAME="08"></A><A HREF="08.htm"><B>Figure 1.8.</B></A> <I><BR>The New Project Information dialog box for the Hello project.</I><DL>	<DD>9. Click the OK button to start generating files required for the HelloMFC project.</DL><H3><FONT COLOR="#000077"><B>Exploring the HelloMFC AppWizard Project</B></FONT></H3><P>After you create the HelloMFC project using MFC AppWizard, the Project Workspacewindow opens. The Project Workspace window contains four tabs, each used to showa different view of the current project:<UL>	<LI>The <I>ClassView</I> tab displays information about the C++ classes used in the	HelloMFC project.<BR>	<BR>		<LI>The <I>ResourceView</I> tab displays information about the resources, such as	bitmaps and dialog boxes, used in the HelloMFC project.<BR>	<BR>		<LI>The <I>FileView</I> tab displays information about the files used for the HelloMFC	project.<BR>	<BR>		<LI>The final view is the <I>InfoView</I>, which is used for online help information.</UL><H3><FONT COLOR="#000077"><B>Handling Output Using MFC</B></FONT></H3><P>The HelloMFC project already contains a function that handles output. It's called<TT>OnDraw</TT>, and it can be found in the <TT>CHelloMFCView</TT> class. When yourproject is created by AppWizard, the <TT>OnDraw</TT> function really doesn't do muchuseful work--it's up to you to supply a version of this function that does somethingmeaningful.</P><P>To edit the <TT>CHelloMFCView</TT> class, follow these steps:<DL>	<DD>1. Click the ClassView tab in the Project Workspace window. A list of the classes	used in the HelloMFC application will be displayed. Note that all the class names	begin with the letter C. This is a Microsoft naming convention--all of Microsoft's	classes begin with C.<BR>	<BR>	2. Expand the <TT>CHelloMFCView</TT> node of the tree control. A list of functions	that are used in the <TT>CHelloMFCView</TT> class will be displayed.<BR>	<BR>	3. Double-click the function named <TT>OnDraw</TT>. The editor will open to the <TT>OnDraw</TT>	member function. Edit the <TT>CHelloMFCView::OnDraw</TT> function so that it looks	like the function in Listing 1.2. You will need to remove a comment and two existing	lines of code that were in the function already.</DL><H4><FONT COLOR="#000077">TYPE: Listing 1.2. The OnDraw function used for HelloMFC.</FONT></H4><PRE><FONT COLOR="#0066FF"><TT>void CHelloMFCView::OnDraw(CDC* pDC)</TT><TT>{</TT><TT>    pDC-&gt;TextOut(50,50,&quot;Hello MFC!&quot;, 10);</TT><TT>}</TT></FONT></PRE><P>Compile the HelloMFC project by selecting Build|Build HelloMFC.exe from the mainmenu (or press F7). The build window displays the progress of the build, which shouldlook something like the following:</P><PRE><FONT COLOR="#0066FF"><TT>Compiling resources...</TT><TT>Compiling...</TT><TT>StdAfx.cpp</TT><TT>Compiling...</TT><TT>HelloMFCDoc.cpp</TT><TT>HelloMFC.cpp</TT><TT>MainFrm.cpp</TT><TT>HelloMFCView.cpp</TT><TT>Generating Code...</TT><TT>Linking...</TT><TT>HelloMFC.exe - 0 error(s), 0 warning(s)</TT></FONT></PRE><P>Congratulations; you have created a simple Windows program! To execute the HelloMFCproject, select Execute from the Build menu or press F5 on the keyboard. The mostcommon way to launch a project from Developer Studio is to use the debugger. To startthe debugger, click the Go button on the toolbar or press F5 on the keyboard.</P><P>Figure 1.9 shows an example of the HelloMFC application running under Windows95.</P><P><A NAME="09"></A><A HREF="09.htm"><B>Figure 1.9.</B></A> <I><BR>The HelloMFC program.</I></P><P>One unusual aspect of the HelloMFC application is that the message is in a fixedlocation. If the window is resized, the text doesn't move. This is because the callto <TT>DrawText</TT> needs a fixed location for the message string in the first twoparameters:</P><PRE><FONT COLOR="#0066FF"><TT>pDC-&gt;TextOut(50,50,&quot;Hello MFC!&quot;, 10);</TT></FONT></PRE><P>The third parameter is the actual message to be displayed, and the last parameteris the number of characters in the message.</P><P>In the next hour, you will learn how to display the message in the center of themain window.<H2><FONT COLOR="#000077"><B>Summary</B></FONT></H2><P>In this chapter, you were introduced to Developer Studio and Visual C++, as wellas the main tools and wizards included in Developer Studio and the MFC class library.</P><P>You also created two small programs using Visual C++: a console-mode applicationthat displayed &quot;Hello World!&quot; and a Windows application that was builtwith AppWizard.<H2><FONT COLOR="#000077"><B>Q&amp;A</B></FONT></H2><DL>	<DD><B>Q If I know C, how much effort is needed to learn C++?</B><BR>	<BR>	<B>A</B> C++ is very close to C in a number of ways. Almost every legal C program	is also a legal C++ program. C++ introduces the idea of classes, which are discussed	in Hour 3. A C++ compiler also has a different standard library than a C compiler.	As you will see, Visual C++ makes it very easy to develop Windows programs using	C++, even if you have no experience in C or C++.<BR>	<BR>	<B>Q Can I replace the Developer Studio editor with my own favorite editor?</B><BR>	<BR>	<B>A</B> No, but you can use your favorite editor to edit files, then use Developer	Studio to build those files into a final executable. You will lose many of the integrated	benefits of the integrated editor if you do this, however. You can change the Developer	Studio editor to emulate Brief and Epsilon editors if you prefer their keyboard mappings.</DL><H2><FONT COLOR="#000077"><B>Workshop</B></FONT></H2><P>The Workshop is designed to help you anticipate possible questions, review whatyou've learned, and begin thinking ahead to putting your knowledge into practice.The answers to the quiz are in Appendix B, &quot;Quiz Answers.&quot;<H3><FONT COLOR="#000077"><B>Quiz</B></FONT></H3><DL>	<DD>1. What is a library?<BR>	<BR>	2. How do you build a project using Developer Studio?<BR>	<BR>	3. What is a wizard?<BR>	<BR>	4. What are the three most commonly used wizards?<BR>	<BR>	5. How do you invoke context-sensitive help inside the editor?<BR>	<BR>	6. What are the four tab views inside the Project Workspace window?<BR>	<BR>	7. What MFC function is used to display output?<BR>	<BR>	8. What keyboard function is used to start the build process in Developer Studio?<BR>	<BR>	9. What keyboard editor command is used for Undo?<BR>	<BR>	10. What is the difference between Undo and Redo?</DL><H3><FONT COLOR="#000077"><B>Exercises</B></FONT></H3><DL>	<DD>1. Change the Hello World console-mode program to display your name.<BR>	<BR>	2. The first two parameters in the <TT>TextOut</TT> function call are the position	coordinates for the text message. Experiment with the HelloMFC application, and change	the position of the output message.<FONT COLOR="#000077"></FONT></DL><CENTER><P><HR><A HREF="../fm/fm.htm"><IMG SRC="../button/previous.gif" WIDTH="128" HEIGHT="28"ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../ch02/ch02.htm"><IMGSRC="../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><BR><BR><BR><IMG SRC="../button/corp.gif" WIDTH="284" HEIGHT="45" ALIGN="BOTTOM" ALT="Macmillan Computer Publishing USA"BORDER="0"></P><P>&#169; <A HREF="../copy.htm">Copyright</A>, Macmillan Computer Publishing. Allrights reserved.</CENTER></BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品美女一区二区| 国产精品久久久久久一区二区三区| 成人18视频在线播放| 国产在线精品一区二区夜色| 免费看黄色91| 久久国产精品72免费观看| 久久精品国产精品亚洲精品| 免费在线观看日韩欧美| 久久99精品久久久久久久久久久久| 奇米精品一区二区三区四区| 精品一区二区三区免费毛片爱| 精彩视频一区二区三区| 国产精品1区二区.| 播五月开心婷婷综合| 日本韩国欧美一区二区三区| 欧美精品高清视频| 日韩欧美视频一区| 日本一区二区不卡视频| 亚洲乱码精品一二三四区日韩在线| 亚洲精品一二三| 午夜精品久久久久久久久久久| 美腿丝袜亚洲色图| 夫妻av一区二区| 欧美视频一区二区三区在线观看| 69av一区二区三区| 国产日本一区二区| 亚洲bdsm女犯bdsm网站| 国产一区高清在线| 91久久精品一区二区二区| 欧美一区二区在线免费播放| 久久综合999| 亚洲一区二区三区美女| 精品在线播放免费| 色哟哟一区二区| 亚洲精品一区二区三区蜜桃下载 | 欧美性生活久久| 欧美一区二区免费观在线| 久久久久久免费毛片精品| 玉足女爽爽91| 国产一区二区三区在线观看免费视频 | 卡一卡二国产精品 | 国产乱对白刺激视频不卡| 色视频一区二区| 久久亚洲二区三区| 亚洲午夜久久久久久久久久久| 狠狠v欧美v日韩v亚洲ⅴ| 欧美日韩综合色| 国产精品高潮呻吟| 韩国欧美一区二区| 欧美人体做爰大胆视频| 国产精品国产三级国产普通话99| 久久精品国产精品亚洲综合| 欧美日韩中文字幕一区| 日韩理论在线观看| 高清不卡在线观看| 精品伦理精品一区| 蜜臀av一区二区在线免费观看| 色妞www精品视频| 中文字幕精品在线不卡| 国内精品久久久久影院薰衣草| 欧美人与性动xxxx| 亚洲成人av在线电影| 色综合久久天天| 最新不卡av在线| 99re这里只有精品视频首页| 久久久久久久综合色一本| 久久精品久久精品| 日韩一卡二卡三卡四卡| 天天影视网天天综合色在线播放| 色婷婷综合激情| 自拍偷拍国产精品| av不卡免费在线观看| 国产精品素人视频| 波多野结衣欧美| 国产精品二三区| av电影在线观看完整版一区二区| 亚洲国产高清aⅴ视频| 成人综合激情网| 国产精品入口麻豆原神| 成人sese在线| 亚洲免费观看高清完整版在线观看 | 欧美成人免费网站| 紧缚捆绑精品一区二区| 欧美精品一区视频| 国产高清不卡一区| 成人免费一区二区三区在线观看| 成人蜜臀av电影| 亚洲柠檬福利资源导航| 欧美日韩在线精品一区二区三区激情| 亚洲女人小视频在线观看| 在线观看欧美精品| 午夜精品久久久久久不卡8050| 欧美一卡2卡3卡4卡| 国产在线国偷精品产拍免费yy| 国产日韩欧美高清在线| 色香蕉成人二区免费| 亚洲1区2区3区视频| 日韩欧美一二区| 不卡在线视频中文字幕| 一区二区三区在线播| 欧美理论电影在线| 国产成人鲁色资源国产91色综| 国产精品视频在线看| 在线视频欧美精品| 激情综合网激情| 亚洲欧美日韩久久精品| 日韩欧美中文一区| 成人精品一区二区三区四区| 亚洲一区二区三区视频在线| 精品美女被调教视频大全网站| 成人激情文学综合网| 日韩影视精彩在线| 国产精品久久久久久久久免费相片 | 免费成人小视频| 国产精品天天看| 欧美一区二区视频网站| 福利91精品一区二区三区| 五月开心婷婷久久| 亚洲视频一区二区在线观看| 欧美精品在线观看一区二区| 国产乱码字幕精品高清av| 亚洲国产精品一区二区尤物区| 久久在线观看免费| 欧美色精品在线视频| 国产成人超碰人人澡人人澡| 亚洲.国产.中文慕字在线| 国产精品每日更新在线播放网址 | 欧美韩国日本一区| 日韩三级视频在线看| 欧美性大战久久久久久久蜜臀| 国产成人午夜精品影院观看视频| 首页国产丝袜综合| 亚洲一区二区三区四区在线免费观看 | 欧美成人精品3d动漫h| 在线精品亚洲一区二区不卡| 大胆亚洲人体视频| 国产在线精品不卡| 久久国产麻豆精品| 日韩精品一卡二卡三卡四卡无卡| 亚洲欧美另类综合偷拍| 亚洲国产岛国毛片在线| 久久久久久久久久看片| 欧美成人在线直播| 在线观看91av| 666欧美在线视频| 欧美视频在线不卡| 在线国产亚洲欧美| 91极品美女在线| 97精品国产97久久久久久久久久久久| 国产精品原创巨作av| 国产一区啦啦啦在线观看| 极品少妇一区二区三区精品视频 | 五月激情丁香一区二区三区| 一区二区视频在线| 一区二区视频在线| 亚洲韩国一区二区三区| 亚洲二区在线视频| 日本一不卡视频| 老司机免费视频一区二区三区| 免费日韩伦理电影| 精品一区二区三区在线观看国产| 久草中文综合在线| 黄一区二区三区| 成人影视亚洲图片在线| 97久久久精品综合88久久| 欧美在线视频全部完| 在线成人免费观看| 精品国产1区二区| 国产农村妇女精品| 亚洲品质自拍视频网站| 亚洲高清免费一级二级三级| 肉丝袜脚交视频一区二区| 久久99这里只有精品| 国产福利一区二区| 色哟哟国产精品| 精品国产一区二区精华| 国产女同性恋一区二区| 亚洲激情五月婷婷| 美洲天堂一区二卡三卡四卡视频| 国产尤物一区二区| 色八戒一区二区三区| 日韩精品自拍偷拍| 亚洲天堂a在线| 美女脱光内衣内裤视频久久网站| 国产精品一区二区免费不卡| 一本一道久久a久久精品| 911精品国产一区二区在线| 久久久国产综合精品女国产盗摄| 亚洲日本护士毛茸茸| 精品一区二区在线免费观看| 93久久精品日日躁夜夜躁欧美| 欧美精品色综合| 国产精品久久久久7777按摩 | 国内外成人在线| 色婷婷综合五月| 日本一区二区三区免费乱视频| 亚洲国产三级在线| www.日韩大片| 久久综合色婷婷| 日韩精品视频网|