⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 right15-1.htm

📁 Visual C++面向对象程序设计教程(配套习题资源)
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>第 15 章</title>
<base target="rbottom">
<style>
<!--
.右标题   { font-size: 10pt; color: #000080; text-indent: 0; margin: 0 }
.右内容   { font-size: 10pt; text-align: left; text-indent: 0; line-height: 100%; margin: 
               0 }
-->
</style>
</head>

<body>

<p style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p style="line-height: 100%; margin-top: 0; margin-bottom: 0"><span style="position: absolute; left: 4; top: -8"><img border="0" src="1.gif" width="63" height="70"></span></p>
<p style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p style="line-height: 100%; text-indent: 0; margin: 0" class="右标题" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                                                        
&nbsp;&nbsp;&nbsp; <span style="background-color: #CCFF99">第 15 章</span><span style="background-color: #CCFF99">&nbsp;                                              
</span>&gt;<span style="background-color: #CCFF99"> 第 1 节 </span>&gt;<span style="background-color: #CCFF99">  
 15.1 MFC概述</span></p>                  
<hr color="#008000" size="1">

<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2"><font LANG="ZH-CN">微软基础类库(</font>MFC<font LANG="ZH-CN">,</font>Microsoft   
Foundation Class<font LANG="ZH-CN">)是微软为</font>Windows<font LANG="ZH-CN">程序员提供的一个面向对象的</font>Windows<font LANG="ZH-CN">编程接口,它大大简化了</font>Windows<font LANG="ZH-CN">编程工作。</font>MFC<font LANG="ZH-CN">库充分利用了</font>Microsoft<font LANG="ZH-CN">开发人员多年开发</font>Windows<font LANG="ZH-CN">程序的经验,并可以将这些经验融入到用户自己开发的应用程序中去。</font></font></p>  
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2"><font LANG="ZH-CN">使用</font>MFC<font LANG="ZH-CN">类库的好处是:首先,</font>MFC<font LANG="ZH-CN">提供了一个标准化的结构,这样开发人员可从一个比较高的起点编程,故节省了大量的时间;其次,它提供了大量的代码,指导用户编程时实现某些技术和功能。</font></font></p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<font SIZE="3">
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"></font><font size="2"><font LANG="ZH-CN">对用户来说,用</font>MFC<font LANG="ZH-CN">开发的最终应用程序具有标准的、熟悉的</font>Windows<font LANG="ZH-CN">界面,这样的应用程序易学易用;另外,新的应用程序还能立即支持所有标准</font>Windows<font LANG="ZH-CN">特性,而且是用普通的、明确定义的形式。</font></font></p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<font SIZE="3">
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"></font><font size="2"><font LANG="ZH-CN">为了更好的理解</font>MFC<font LANG="ZH-CN">,我们有必要了解一下</font>MFC<font LANG="ZH-CN">的历史:</font></font></p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font lang="ZH-CN" size="2">(1)</font><font size="2">AFX(Application   
Framework,<font LANG="ZH-CN">应用程序框架</font>)小组:</font><font size="2">至今</font><font size="2">MFC仍<font LANG="ZH-CN">延用了许多</font>AFX<font LANG="ZH-CN">类库的宏,因此我们经常会看到以</font>AFX<font LANG="ZH-CN">开头的宏。</font></font></p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font lang="ZH-CN" size="2">(2)</font><font size="2">MFC<font LANG="ZH-CN">小组:</font></font></p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<font lang="ZH-CN" size="2"> 
</font><font size="2"><font LANG="ZH-CN">MFC1.0</font></font><font size="2"><font LANG="ZH-CN"> 
提供了对</font>Windows API<font LANG="ZH-CN">简单的抽象和封装</font></font></p>  
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;   
<font lang="ZH-CN" size="2">MFC2.0</font><font size="2"><font LANG="ZH-CN"> 
增加了文档</font>/<font LANG="ZH-CN">视结构框架、</font>OLE1.0<font LANG="ZH-CN">类、消息映射和公用对话框类等</font></font><font LANG="ZH-CN" size="2">,并增加了工具条、对话条、分割视窗的支持</font></p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<font lang="ZH-CN" size="2"> 
MFC2.5 </font><font size="2"><font LANG="ZH-CN">引入了</font>OLE 2.0<font LANG="ZH-CN">和</font>ODBC<font LANG="ZH-CN">类,是最后的官方的</font>16<font LANG="ZH-CN">位发行版</font></font></p>  
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<font lang="ZH-CN" size="2"> 
MFC2.51/52 </font><font size="2"><font LANG="ZH-CN">纠正了</font>MFC2.5<font LANG="ZH-CN">中的一些错误,增加了标签式对话框、</font>WinSock<font LANG="ZH-CN">和</font>MAPI<font LANG="ZH-CN">支持</font></font></p>  
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<font lang="ZH-CN" size="2"> 
MFC3.1 </font><font size="2"><font LANG="ZH-CN">引入了</font>Windows95<font LANG="ZH-CN">公共控件,包括动画、热键、图象列表、工具条提示等</font></font></p>  
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<font size="2"> 
</font><font size="2">MFC4.0 </font><font size="2"><font LANG="ZH-CN">更好的支持多线程以及</font>Windows   
95<font LANG="ZH-CN">的其他一些特性</font></font></p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<font size="2"> 
MFC4.1 </font><font size="2"><font LANG="ZH-CN">支持</font>Win32,<font LANG="ZH-CN">增加了</font>Internet<font LANG="ZH-CN">特性</font></font></p>  
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<font lang="ZH-CN" size="2"> 
MFC4.2 </font><font size="2"><font LANG="ZH-CN">增加了</font>ISAPI<font LANG="ZH-CN">和</font>OCX<font LANG="ZH-CN">容器支持</font></font></p>  
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<font lang="ZH-CN" size="2">&nbsp;</font></p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<font lang="ZH-CN" size="2"> 
</font><font LANG="ZH-CN" size="2"><font FACE="??ì?,SimSun" LANG="ZH-CN">与</font>VC++6.0<font FACE="??ì?,SimSun" LANG="ZH-CN">配套的</font>MFC<font FACE="??ì?,SimSun" LANG="ZH-CN">版本是</font>MFC6.0</font></p>
<p style="line-height: 100%; text-indent: 0; margin: 0" class="右标题" align="left"> </p>

<hr size="1" color="#008000">
<p style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>            

<p style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp; <span style="position: absolute; left: 32; top: 503"><a href="right14-4.htm" target="_self"><img border="0" src="rightd1.gif" width="113" height="70"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                                 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="position: absolute; left: 506; top: 505"><a href="right15-2.htm" target="_self"><img border="0" src="rightd2.gif" width="124" height="63"></a></span></p>                   

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -