MFC.Windows程序设计.第二版(英文版).pdf

所需积分/C币:18 2018-11-15 16:16:13 15.04MB PDF

MFC Windows程序设计 (第二版)完整的英文版 pdf文件格式 !
········.······ 2.1 The mfc List Classes 318 5.2.2. Creating Type-Safe List Classes with Clist 322 5.3.1. The MFC Map Classes 5.3.2 How Maps work 326 5.3.3 Optimizing lookup efficienc 328 5.3.4. Creating Type-Safe Map Classes with CMap 。。春D鲁·音。非自。。。。D。非非音a非。自自。非非非非a。 Opening, Closing, and Creating Files.……… 336 6. 1. 2. Reading and writing.. 339 Cfile derivatives 6.1. 4. Enumerating files and folders. 番省自音音。非番香自·音音当自。音香番自也当 6.2. 1. Serialization basics 347 6. 2. Writing Serializable Classes 349 6.2.3. Versioning Serializable Classes: Versionable Schemas 351 6.2 4. How Serialization Works 6.2.5. Serializing OBjects 360 ·中中中中中 7.1.1 The 367 7.1.2. Th 7.1.3 Th 382 7.1.4. The Font view applicati 7.1.6 Th Clas 411 7.1.7. e Class 416 7.2.1 Numeric Edit Control 418 7. 2.2. Owner-Draw List b 7.2.3 Graphical Push buttons 7.2.4. Customizing a Control,s colors 431 7.2.5 Message reflection 439 8. 1. 1. The Dialog Box template 444 8. 1. 2. The CDialog Class... 1452 8. 1.3. Creating a Modal Dialog boz 8.I.4. Dialog Data Exchange and Dialog Data Validation.. 458 8 Interacting with the Controls in a Dialog 466 The Dlg Demo l Applicalion 中“· 8.2. 1. The DIgDemo2 Applicati 480 8.3. 1. Processing Keyboard Messages 507 8.3.2. Preprocessing WM COMMAND Messages .... 509 Modifying the Common Dialogs.……… 8.5.2 The Phones application 533 Function revisited 9.1.2. The Document Object.…… 9.1.3. The view Object 9.1. 4. The Frame Window Object... 564 9.1.5. Dynamic Object Creation. 564 9. 1.6. More on the SDI Document Template 566 9. 1.7. Registering Document Types with the Operating System Shell ..........568 9. 1.8. Command routing 9.1.9. Prede fined Command IDs and Command handlers 72 9.2.1. The sdisquares application.…… 9.2.2. Sdisquares Step by Step 595 鲁。非非非看看自音非音。自D鲁音非非音看看·音音音。非非音 10.1.1 Basics 600 Operations 605 0. 1.3. Optimizing Scrolling Performance 605 10.1.4. The ScrollDemo Application .607 10. 1.5. Converting an Ordinary View into a Scroll View .615 非香省。音非自鲁非鲁非自·也。即鲁。,。自告 鲁鲁。非。。。。自鲁非音香 10.2.1 Operations .616 Overridables.… 618 10.23. Utilizing dhtml in Based applications 620 10.3. 1. Initializing a Tree View 627 10.3. 2. Tree View Member Functions and notifications 630 10.3.3. The DriveTree application 632 10.4. 1. Initializing a List viev 645 10.4.2. Changing the Presentation Style 648 0. 4.3. Sorting in a List view …649 10.4.4. Hit- Testing in a ListⅤiew.… .650 10.4.5. The win Dir application 鲁非DD鲁。。。●鲁看。●D鲁。。春。非非垂香 Synchronizing Multiple views of a Document 11.1.2. The Mdisquares Application 675 11. 1.3. Supporting Multiple document Types 694 11. 1. 4. Alternatives to mDi …695 鲁春春看a。DD鲁非 11. 2.1. Dynamic Splitter windows 698 11. 2. The Sketch Application 700 11. 2.4. The Wanderer Application 719 11. 2.5. Custom Command routing 749 11. 2.6. Three-Way Splitt 751 11. 2.7. Dynamic Splitter Windows with Multiple view Types.......753 12. 1.1. Creating and Initializing a Toolbar..... 756 12.1.2. 12.1.3. Controlling a Toolbar's Visibility............ 766 12. 4. Keeping Toolbar Buttons in Sync with Your Application. .............768 12. 5. Adding ToolTips and Flyby Text .770 12. 1.6. Adding Non- Push-Button Controls to a Toolbar 12.1.7. Updating Non-Push-Button Controls 12. 1.8. Making Toolbar Settings Persistent 12. 1.9. Toolbar Support in App Wizard 777 1 1. Creating and Initializing a Status Bar .. .779 12.2.2. Providing Context-Sensitive Help for Menu Items 12.2.3. Creating Custom Status Bar Panes 783 12. 2.4. Status Bar Support in App wizard …786 123.1. The main Toolbar 807 12.3.2. The Style bar 808 12.33. More about 电音音。音音音。音。自·音音非鲁。非音音自·· 13. 1. The Windows print architecture 13. 1. 2. The MfC Print Architecture 13. 1.3. Print Previewing. 834 13.2.1. Black-and-White print previews 841 13.3.1. A Unique Approach to Serialization .856 着自。曲DD。。鲁。。。是。。春鲁。音。非a。自。曲DD。非。香自。 13.4.1. Using the Print Dialogs Selection Button 13. 4.2. Assume Nothing-And Test Thoroughly 13.4.3. Adding Default Pagination Support 中中*t 861 13. 4.4. Enumerating Pr rinter 14. 1.1. Setting a Timer: Method 1 14.1. 2. Responding to WM TIMER Messages 869 14. 1.3. Setting a Timer: Method 2 14.1.4. Stopping a Ti 14.2. 1. Processing Timer Messages.... 885 14.2. 2. Getting the Current Time: The Class 14.2.3. Using the MM ISOTROPIC Mapping Mode 888 14.2.5. Implementing Client-Area Drag 14.2.6. Using the System Menu as a Context Menu 14.2.7. Topmost Windows....... 14.2.8. Making Configuration Settings Persistent 14.29 Controlling the Window Size: The WM GETMINMAXINFO Messag o uU bo 14.3.1. USing 14.3. 2. Idle Processing VS Multithreading 909 命…·命命命命中·命命命命命命命 15.1.1. How Windows Uses Color .912 5. 2. Logical Palettes and the CPalette Class 914 15. 1.3. Creating a logical Palette 915 15. 1.4. Realizing a Logical Palette .......... 919 15.1.5. Drawing with Palette Colors 920 15.1.6. The WM QUERYNEWPALETTE and WM PALETTECHANGED Msg 15. 1.7. Determining Whether a Logical Palette Is Needed...... .924 15.1.8. The Palette Demo Application 926 15. 9. Palette Animation 932 15.1.10.Th Funct 937 15.2.1. DDBs and the 938 15.2.2. Blitting bitmaps to Screens and Other Devices 940 15.2.3. Bitmap re 943 15. 2. 4. DIBs and DIB Sections ∴4945 15.2.5. Blits, Raster Operations, and Color Mapping..... 947 15.2.6. The Bitmap Demo Application 950 15.2.7. Writing a bMP File viewer 965 15.2.8. More on the Function 15.3. 1. Regions and the Class 983 15.3. 2. The Region Demo Application 988 16.1.1. Creating a Common Control 97 16.1. 2. Processing Notifications: The WM NOTIFY Message 1000 16.2. 1. Slider Controls …1004 16.2. 2. Spin Button Controls 1009 16.2.3. ToolTip Controls.... 1013 1 6.2.4. The GridDemo Application 0l8 16.3. 1. Image Lists .. …1029 16.3. 2. ComboBoxEx Controls 1032 16.3.3. The PathList application 1036 16.4. 1. Progress Controls 1046 16.4.2. Animation Controls 1048 16.51. IP Address Controls 1050 16.5.3. Month Calendar C 105 16.5.4. Date-Time Picker Controls 1057 17.1. 1. Creating a Worker Threa 17. 1.2. Creating a UI Thread.. 1066 17.1.3. Suspending and resuming threads. .........................................1067 17. 4. Putting Threads to Sleep 17. 1.5. Terminating a Thread...... 1069 17. 1.6. Autodeleting C Win Threads .l070 17. 1.7. Terminating Another Thread 1072 17.1.8. Threads Processes. and Priorities ………1075 17.1.9. USing C Run-Time Functions in Multithreaded Applications...1080 17.. Calling MFC Member Functions Across Thread Boundaries. ........1081 17.1. 11. Your First Multithreaded Application ∴…1085 17.2.1. Critical sections 17.2.2. Mutexes 1096 17.2.3.E 17.2.4. Semaphores l102 17.2.5.The l104 7.2.6. Writing Thread-Safe Classes l107 17. 2.7. The Image Edit Application l109 17.3.1.Me 17.3.2. Launching Other Processes... 17.3.3. File Change notifications 1136 18. 1. 1. Instantiating a Com Object 1142 18. 1.2. Object Lifetimes 1 44 18.1.3. Acquiring Interface Pointers 1145 18.1. 4. COM Servers 1146 18.1.5. Location Transparency.………… 1148 18.1.6. Object Linking and Embedding 1149 1817. Active documents 1152 18.1.8.A 18.2. 1. Multiple inheritance l155 18. 2. 2. Nested class 157 18.2.3. MFC and Nested Classes 16l 18.2.4. How MfC Implements iunknown 1163 18.2.5. Interface Maps.... 18.2.6. MFC and Aggregation.…… 1166 18.2.7. MFC and Class factories 1169 18. 2.8. Putting it all in perspective 19. 1. Clipboard Formats 1176 19. 1. 2. Private Clipboard Formats 1181 Providing data in Multiple f 19.1.5. Delayed Rendering 1185 19.1.6. Building a reusable Clipboard Class 1189 19.2.1 LE Clipboard Basics 1190 19.2. 2. MFC, Global Memory, and the OLE Clipboard 1196 19.2.3. Using Alternative Storage Media 1198 19.2.4. Treating the OLE Clipboard as a 1200 19.2. 5. Multiple formats and multiple storage media 1202 19.2.6. Checking data availabili 1203 19.2.7. Delayed Rendering with 19.2.8. in review 1208 19.3.1. Anatomy of a Drop Source 1211 19.3.2. Anatomy ofa Drop Target.…… 1215 19.3.3. MFC Support for Ole Drag-and-Drop.…………….…1218 19.3.4. Drop target scrolling… 19. 4.1. The afxolelnit Function 1245 20.1.1. IDispatch: The root of all automation...…..….….…,.1250 20.1. 2. Automation Data Types 1252 20. 1.3. Late Binding vs. Early Binding 1259 20.14. Dual Interfaces 1260 20.1.5. Type Libraries.…… ,1261 ··· 20.2. 1. MFC, IDispatch, and Dispatch Maps....... .1264 20.2.2. Writing an automation Server 1266 20.2.3 utonation hierarchies 1274 20.2. 4. A More Complex Automation Server 1276 。自。曲DD鲁。非。·音。自。。。Dp。音非非番鲁。。。自D鲁。。鲁非 20.3. 1. The Pie Client Application .1303 20.3. 2. Connecting to a Running Automation Server...... 1316 mming Windows With mFC Like many of my colleagues in this industry, I learned Windows programming from Charles petzold's a classic programming text that is the bible to an entire generation of Windows programmers When I set out to become an MFC programmer in 1994, I went shopping for an MFC equivalent to After searching in vain for such a book and spending a year learning MfC the old-fashioned way, I decided to write one myself. It's the book you hold in your hands. And it's the book i would like to have had when I was learning to program Windows the MfC way MFC, as you probably already know, is microsoft's C+t class library for Windows programming isnt a book about c++ rather it's a book about writing 32-bit Windows applications in C++ using MFC rather than the windows api as the chief means of accessing the operating system's essential features and services. It was written with two kinds of people in mind Windows API programmers who want to learn MFC Programmers who have never before programmed Windows Whichever camp you fall into, I assume that you know the C++ programming language already and are comfortable with basic C++ idioms such as derived classes and virtual functions If these assumptions are true, you're ready to begin climbing the hill that is MFC programming Even veteran Windows programmers frequently find mfC code confusing the first time they see it, in part because of the presence of code created by the mfc code-generating wizards in Visual C++ and in part because of the countless lines of code hidden away in mfC classes such as an That's why this book takes a rather unusual approach to teaching MFC. It begins by having you write MFC code by hand(without the wizards) and by utilizing mfc 1.0-Style application architecturesthat is, applications that use neither documents nor views. Only after you've mastered the fundamentals and become acquainted with basic mFC classes such as d and do i introduce the wizards and Programming windows With mfc teach you how to take advantage of MFCs document/view architecture. Along the way, you build a understanding from the ground up of the message-oriented nature of windows and of key components of Windows itself, such as the Graphics Device Interface(GDI). I believe that this approach makes learning MfC not only less intimidating, but also more enjoyable. I think that you ll agree once you've worked your way through the book and can look back on the learning experience from the standpoint of a knowledgeable windows programmer. is divided into four parts Part i introduces the core tenets of mfc and windows programming, beginning with a simple"Hello, MFc application and introducing, one by one, menus, controls, dialog boxes, and other application building blocks. Part II builds on the foundation laid in part i with a detailed look at the document/view architecture. In particular, Chapters 9, 10, and 11 reveal much of the"magic"behind documents and views and explain not only how to write basic document/view applications but also how to implement some not so basic features such as split-window views of a document and print previews. Part IlI covers some of the more advanced features of Windows and MfC--features such as color palettes, bitmap handling, and multiple threads of execution. In Part Iv, you'll learn how mfc wraps its arms around Com, ole, and ActiveX and how to write COM-enabled applications and software components. By the time you're finished with Chapter 21, you'll be well versed in the art of 32-bit Windows programming using MFC. And you'll have prodigious amounts of sample code to draw from when it's time to strike out on your own and write your first great Windows application Those of you who read the first edition of this book will notice two rather obvious changes in the second edition. First, this edition contains seven new chapters. One is devoted to the MFC view classes: another covers the mfc collection classes one introduces mfc file i o and serialization mechanisms: and our cover the relationship between MfC and com. mfc is not the general-purpose COM framework that the Active Template Library(atl)is, but MFC makes certain types of

...展开详情

评论 下载该资源后可以进行评论 2

xunzou2501 比较全面,喜欢。
2019-06-10
回复
listm8 字体清晰,原版,可以没有封面,带书签,制作的人非常用心
2019-02-23
回复
img
tychb

关注 私信 TA的资源

上传资源赚积分,得勋章
最新资源