[统计分析] MFC深入浅出--从MFC设计到MFC

[复制链接]
发表于 2022-9-26 16:30:12
现在盛行的Windows下的编程言语实在不少,所以在BBS上常常有人会问:我应当使用啥编程言语呢?其间,有一个大家认可的答案:真实的程序员使用VisualC++。确实,VisualC++是一个功能强悍、灵敏、方便的编程工具,可以终结别的编程言语所无法终结的命令,可以让程序员方便地实现自己的设计,纵情的发挥自己地创造性。VisualC++的强悍无比的功能除了得益于C++的特性以外,更首要的是它具有系统完整、机制灵敏、功能丰厚的MFC类库。所以,要讲VisualC++,有必要讲MFC类库。MFC的类库可以分两个层次,首要是实现MFC编程结构系统的中心MFC类库,然后是建立在中心MFC类库基础之上的扩展类库,例如,支持COM的类库,实现网络功能的类库,等等。随着VisualC++的不断升级,MFC类库的功能越来越丰厚,越来越强悍,可是,MFC中心类库是相对安稳的,格外是从VisualC++4.2开始到现在的VisualC++6.0。本书的中心即是浅显易懂地解析MFC类库,分析如何使用MFC类库以及MFC类库的内部实现,掀开MFC杂乱、艰深的面纱,让读者对MFC有一个全面、透彻、明晰的理解。关于MFC的中心实现,首要有以下几个方面。首要,MFC选用C++的面向目标的特征封装了Windows的目标和Win32函数,必定程度上隐蔽了底层Win32的杂乱性。其次,MFC选用消息映射的方法来管理Windows消息和事情,隐藏了Windows窗口的窗口进程,简化了消息管理的杂乱性和烦琐性。还有,MFC提供了一个以文档-视为中心的编程模式,并实现了以文档-视为中心的编程结构,简化了数据管理的进程。而且,MFC提出了模块状况、线程状况、模块线程状况来支持多线程的编程设计和DLL的编程。本书分别从使用MFC的观点和MFC内部设计及实现的观点评论了上述内容,分析了MFC中心的设计和实现;然后,在此基础上,进一步评论了MFC对一些常用类的实现。相关章节的内容如下:第一章,MFC概述。第二章,解说MFC对Win32API和Windows目标的封装,评论各类MFC目标的使用,分析MFC目标和Windows目标的联系。第三章,评论CObject的特性及其实现,包括动态类信息、动态创建、序列化的实现等内容。第四章,评论MFC的消息映射机制,分析MFC对各类消息的管理,例如对Windows消息、控制告诉消息、命令消息、状况更新消息、反射消息的管理等;并提醒了MFC通过消息映射手法实现C++虚拟函数机制的原理。第五章和第六章,分析MFC编程结构启动和关闭一个使用程序的进程,提醒MFC结构的内情,分析以文档模板为中心创建基于文档-视的使用程序的进程,展示MFC结构管理消息和调用虚拟函数的机遇和位置。第七、八、九章,介绍MFC的动态链接库、进程、线程等概念,以及MFC动态链接库的种类和使用,评论MFC下多线程编程的问题。而且进一步论述MFC的中心概念之一:状况(模块状况、线程状况、模块线程状况),提醒MFC对多线程的支持机制,MFC实现规则DLL和扩展DLL的内情。第十章,论述MFC下的调试手法。第十一章,评论CFile类,首要分析了CFile的使用和它对Win32文件函数的封装。第十二章,评论模式和无模式对话框,分析MFC如何设计和实现这两种对话框的功能,分析CDialog和CFormView为实现相关功能而设计的虚拟函数、消息管理函数等。第十三章,评论MFC工具栏和状况栏的设计及其实现,分析MFC是如何以CControlBar为基础,派生出CStatusBar、CToolBar、CDialogBar等子类,实现MFC工具栏和状况栏规范管理。第十四章,评论MFC的Socket类。第一章到第十章介绍了MFC的中心概念以及实现。在此基础上,第十一章到第十四章评论了MFC一些常用类的实现。本书的内容对MFC的初学者(最好对VisualC++和Windows有所理解)和提升者都是很有帮助的。假如您是一个初学者,可以读第一至第六章。首要意图是建立对MFC的全面理解,理解MFC结构是如何支持程序员编程的。假如有读不清理的当地,可以越过,直接阅览相关分析的定论。格外是第五章和第六章,可以要点阅览,理解MFC是如何来管理相关消息、调用相关虚拟函数的。然后,还可以读第十章,第十一至第十四章。格外第十二章,可以要点阅览,它是MFC从CWnd或许CView派生出特定的类实现特定功能的比如,可以帮助您进一步理解MFC,而且学习如何设计和实现一个特定的类。假如您对MFC有必定的掌握,可以进一步阅览第八和第九章,理解MFC管理DLL和线程的知识。关于第一至第六章、第十至第十四章,应当把要点放在MFC的设计和实现的分析上。这样,可以深入您对MFC和Windows编程的理解与掌握。假如您可以较熟练地使用MFC,建议您进一步阅览第九章,而且对一切相关章节的设计和实现分析作要点阅览,这样,不只可以帮助您深入的理解和掌握MFC,而且,从MFC的相关内部设计和实现上,必定可以提升您的程序设计和编写能力。
MFC浅显易懂--从MFC设计到MFC+编程(李久进).chm

(There are a lot of programming languages ??under Windows, so people often ask on BBS: What programming language should I use? Among them, there is a recognized answer: real programmers use VisualC  . Indeed, VisualC   is a powerful, sensitive and convenient programming tool, which can terminate commands that other programming languages ??cannot terminate, allowing programmers to easily implement their own designs and indulge their creativity. The powerful functions of VisualC   benefit from the characteristics of C  , and more importantly, it has the MFC class library with complete system, sensitive mechanism and rich functions. Therefore, to talk about VisualC  , it is necessary to talk about the MFC class library. The class library of MFC can be divided into two levels, the first is the central MFC class library that realizes the MFC programming structure system, and then the extended class library built on the basis of the central MFC class library, for example, the class library that supports COM and realizes network functions class library, etc. With the continuous upgrading of VisualC  , the functions of the MFC class library are more and more rich and powerful. However, the MFC central class library is relatively stable, especially from VisualC  4.2 to the present VisualC  6.0. The center of this book is to analyze the MFC class library in an easy-to-understand manner, analyze how to use the MFC class library and the internal implementation of the MFC class library, lift the messy and difficult veil of MFC, and let readers have a comprehensive, thorough and clear understanding of MFC. understand. Regarding the central realization of MFC, there are mainly the following aspects. First of all, MFC uses the object-oriented features of C   to encapsulate Windows objects and Win32 functions, which hides the complexity of the underlying Win32 to a certain extent. Secondly, MFC chooses the method of message mapping to manage Windows messages and events, which hides the window process of Windows windows and simplifies the clutter and tediousness of message management. Also, MFC provides a document-centric programming model, and implements a document-centric programming structure, which simplifies the process of data management. Moreover, MFC proposes module status, thread status and module thread status to support multi-threaded programming and DLL programming. This book commented on the above content from the viewpoint of using MFC and the viewpoint of internal design and implementation of MFC, and analyzed the design and implementation of MFC center; The contents of the relevant chapters are as follows:Chapter 1, MFC overview. The second chapter explains MFC's encapsulation of Win32API and Windows objects, reviews the use of various MFC objects, and analyzes the relationship between MFC objects and Windows objects. The third chapter, comment on the characteristics and implementation of CObject, including dynamic class information, dynamic creation, the realization of serialization and so on. The fourth chapter reviews the message mapping mechanism of MFC, analyzes the management of various messages in MFC, such as the management of Windows messages, control notification messages, command messages, status update messages, reflection messages, etc.; and reminds MFC to use message mapping techniques Implement the principle of C   virtual function mechanism. Chapters 5 and 6, analyze the MFC programming structure to start and close a process of using a program, remind the inside story of the MFC structure, analyze the process of creating a document-view-based user program centered on the document template, and show the MFC structure management message and Opportunities and places to call virtual functions. The seventh, eighth and ninth chapters introduce the concepts of MFC's dynamic link library, process, thread, etc., as well as the types and use of MFC dynamic link library, and comment on the problems of multi-thread programming under MFC. And further discuss one of the central concepts of MFC: status (module status, thread status, module thread status), reminding MFC to support multithreading mechanism, MFC realizes the inside story of regular DLL and extended DLL. The tenth chapter discusses the debugging method under MFC. Chapter 11, commenting on the CFile class, firstly analyzes the use of CFile and its encapsulation of Win32 file functions. The twelfth chapter, commenting on modal and modeless dialog boxes, analyzes how MFC designs and implements the functions of these two dialog boxes, and analyzes the virtual functions and message management functions designed by CDialog and CFormView to realize related functions. The thirteenth chapter, reviews the design and implementation of MFC toolbar and status bar, analyzes how MFC derives CStatusBar, CToolBar, CDialogBar and other subclasses based on CControlBar, and realizes the standard management of MFC toolbar and status bar. Chapter 14, reviews MFC's Socket class. The first chapter to the tenth chapter introduced the central concept and realization of MFC. On this basis, chapters 11 to 14 comment on the realization of some common classes in MFC. The content of this book is very helpful to the abecedarian of MFC (preferably have some understanding to VisualC   and Windows) and those who raise. If you are a beginner, you can read Chapters 1-6. The primary intent is to develop a comprehensive understanding of MFC and how the MFC structure supports programmer programming. If there is a place that cannot be cleaned up, you can skip it and directly read the conclusion of the relevant analysis. Especially Chapters 5 and 6)

[下载]16301263685.rar




上一篇:Think In Java(第3版 中文)
下一篇:Linux C 函数手册(中文版)

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表