Uh-oh, it looks like your Internet Explorer is out of date.

For a better shopping experience, please upgrade now.

MFC Programming in C++ with the Standard Template Libraries / Edition 1

MFC Programming in C++ with the Standard Template Libraries / Edition 1

by III Murray William H., Chris H. Pappas, Chris H. Pappas

ISBN-10: 013016111X

ISBN-13: 9780130161116

Pub. Date: 06/13/2000

Publisher: Pearson Education

  • Your hands-on guide to using the C++ Standard Template Libraries with MFC!
  • Microsoft's STL implementation: The big picture-and the nitty-gritty.
  • Essential MFC and Windows object-oriented development techniques-step-by-step.
  • All the code from this book is available via FTP
  • Combines expertise in MFC and STL to create


  • Your hands-on guide to using the C++ Standard Template Libraries with MFC!
  • Microsoft's STL implementation: The big picture-and the nitty-gritty.
  • Essential MFC and Windows object-oriented development techniques-step-by-step.
  • All the code from this book is available via FTP
  • Combines expertise in MFC and STL to create efficient code
  • Assumes a C++ background

Join veteran authors Murray and Pappas in MFC Programming in C++ With the Standard Template Libraries, which clearly illustrates how to combine two new and crucial areas of C++ programming

the Standard Template Library and the MFC library.

Each library is presented as a stand-alone concept, and each subtopic is tirelessly examined with numerous programming examples. You'll learn key terms and definitions, plus how to build simple applications with both the STL and MFC.

In the third section you'll find the real power of this book. Murray and Pappas skillfully integrate the earlier sections and teach you how to build MFC Windows applications using the STL. You'll find practical examples of how the power of the STL can be brought into the MFC Windows programming environment. These examples are powerful, concise, and on the cutting edge of contemporary C++ programming.

Product Details

Pearson Education
Publication date:
Prentice Hall Microsoft Technology Series
Product dimensions:
7.04(w) x 9.24(h) x 1.28(d)

Table of Contents

1. Before Jumping into MFC with STL Programming.
From BASIC, to Object-Oriented Programming, now STL-WHY? Not All PCs are Alike. C++ Is Not For Children. STL, An Alternative to Data Structures-Really? STL-A First Look. Who Invented STL? Is STL Only For Experienced Programmers? STL-The "Big Picture". STL Standardization Breeds Industry Acceptance. The Three Components of STL. What Is a Container? What Is an Adapter? What Are Algorithms? What Is an Iterator? Are There Any More STL Components? The Complete STL Package. Historic C, ANSI C, C++, ANSI C++-HELP! Data Structures-A Review. Static vs Dynamic. Typed Pointers. Void Pointers. Hungarian Notation. Overloading Functions. Function Pointers. Objects Using the C++ Struct Keyword. A Structure as a Primitive Class. The Syntax and Rules for C++ Classes. A Simple C++ Class. Objects Using the C++ class Keyword. Class Features. Classes within Classes. Object Initialization and Destruction. Member Function Overloading. What Is the C++ friend Keyword? The Hidden this Pointer. Overloading Operators. Class Inheritance. I Thought Templates Were Just for C++! Templates out of Structures. The Template Keyword. Template Syntax. Template Functions! Template Classes. Why STL Is Better Than Templates. Summary.

2. Understanding the Difference Between the Standard C++ Library and STL.
What's New in the Latest ANSI/ISO C++ Standard? An Introduction to Namespaces. Coding Namespaces. The using Statement. The Selective using Statement. Renaming Namespaces. static File Scope vs Unnamed Namespaces. Updated ANSI/ISO C++ Casting Operations. Dynamic Casting. Static Casting. C-type Cast. Constant Cast. What is RTTI? The ANSI/ISO C++ Standard Library. A Lookat the Libraries. Practice With the ANSI/ISO C++ Standard Library. Designing A Template. The Class Template. The Function Template. Implementing Class Templates. Class Template Parameters. Default Template Parameters. The Standard Template Library. Components of STL. Standard Template Library Rules. Standard Template Library Function Objects. Function Objects. Function Adapters. Pointer-to-Function Adapters. Standard Template Library Algorithms. ANSI/ISO C++ Standard Library Language Support. A Look at <cstddef>. Architecture-specific Headers: <limits>,. <climits>, and <cfloat>. Catching Exceptions. Additional ANSI/ISO C++ Standard Library Headers. Summary.

3. STL <utility>, <functional>, <algorithm>, and <iterator> Templates.
From iostream.h to <iostream>. STL Syntax. STL <utility> and <functional> Templates. <utility> Template Syntax. <functional> Template Syntax. STL <algorithm> Template. Sample Code. STL <iterator> Template. Iterator Precedence. Iterator Range. Important Naming Conventions. The vectorit.cpp Application. The listit.cpp Application. Summary.

4. STL Containers.
Dynamic Arrays. Making Vectors Data Type-Specific. How to Instantiate a Vector. An Example Using Vector Template Functions. Referencing Single Elements. Adding and Deleting Elements. Determining the Size of a Vector Container. Using the <algorithm> Template with Vectors. <vector> Example Programs. Implementing Stacks with STL Technology. STL Defines Stacks, Queues, and Deques as Adaptors. <stack> Example Program. STL Queues and Double-ended Queues. The <deque> Template. <queue> and <deque> Example Programs. Summary.

5. Additional Containers.
Typedefs Used by the <list> Template. allocator_type. size_type. difference_type. reference. const_reference. value_type. const_iterator. reverse_iterator. const_reverse_iterator. <list> Example Programs. The initlist.cpp Application. The pushlist.cpp Application. The revrlist.cpp Application. The Map Container. Containers Revisited. <map> Example Program. The paircntnr.cpp Application. Summary.

6. The STL <numeric> Template.
<numeric> Example Programs. The addup.cpp Application. The multiply.cpp Application. The runtotl.cpp Application. The adjdiff.cpp Application. Combining Windows Coding with the STL <numeric> Template. Summary.

7. The Microsoft Foundation Class (MFC) Library.
Class Hierarchy. CObject. Arrays. CCmdTarget (Architecture). Control. Database. Drawing Objects. Exceptions. File. Graphics. Lists. Maps. Menus. Sockets. Synchronization. Classes Not Based On CObject. Automation. Object Model. Structures. Support. Synchronization. Typed Templates. Types. Wrappers. More On MFC Classes.

8. An Object-Oriented Approach.
9. Using the MFC AppWizard.
Code Generators. Remembering When. Picking Up the Pace of Life. Developing the NoWiz Project. The NoWiz.rc Resource File. The NoWiz.h Header File. The NoWiz.cpp Source Code File. Developing the YesWiz Project. Working with the AppWizard. Understanding the AppWizard's Code. What's the Difference?

10. Windows Resources.
The Microsoft Visual Studio's Bitmap Editors. Icons. Cursors. Bitmaps. Microsoft's Sound Recorder. Fonts. The TEXTMETRIC Structure. The LOGFONTA Structure. TrueType Fonts. CreateFont(). CreateFontIndirect(). Adding Resources To A Windows Project. Base Code. Modifications with the ClassWizard. The AppWizard Files. Building and Testing the PlusRes Application.

11. Menu and Keyboard Accelerator Resources.
Menu and Keyboard Accelerators. Menu Fundamentals. Keyboard Accelerator Fundamentals. Basic Project Code. Creative Designs. A Unique Menu. Unique Keyboard Accelerators. The ColorMenu Project Files. A look at the ColorMenu.h and ColorMenu.cpp Files. Changing to the ColorMenuView.cpp File. Running the ColorMenu Application. More Menus?

12. Dialog Box Resources.
Dialog Boxes as Resources. The Dialog Box Design Environment. The Button (Push Button) Control. The Check Box Control. The Combo Box Control. The Custom Control. The Date Time Picker Control. The Edit Box Control. The Group Box Control. The List Control. The List Box Control. The Month Calendar Control. The Progress Control. The Radio Button Control. The Scroll Bar Controls. The Slider Control. The Spin Control. The Static Text Control. The Tab Control. Basic Project Code. Creating A New About Dialog Box For The Project. Creating A Data Entry Dialog Box For The Project. A New Menu. A New Dialog Box. Using the ClassWizard. Editing the DataInput.cpp file. Editing the DataInputView.cpp file. Common Dialog Boxes. More Dialog Boxes?

13. Using STL with Graphics Primitives.
Graphics Device Interface. Windows Environments. The GetDeviceCaps() Function. Mapping Modes. Drawing Primitives. Arc() and ArcTo(). Chord(). Ellipse() (and Circle). LineTo(). MoveTo() and MoveToEx(). Pie(). Polygon(). Polyline() and PolylineTo(). Rectangle(). RoundRect(). SetPixel() and GetPixel(). Windows Graphics Tools. Pens. Brushes. Text Colors. Drawing Mode Selection. A Simple Application Using The STL and GDI Tools. The Basic Project Code. Adding Unique Project Code. Examining the Project Code. More GDI Primitives?

14. Vectors and Complex Numbers.
A Fourier Applicaton. The Basic Application Code. Fourier Code Modifications. A Closer Look at the Code. A Vector Application. The <complex> Template Syntax. The Basic Application Code. Modifications to the Basic Code. This Chapter.

15. Robust Windows Applications with the STL.
Common AppWizard Code. The Bar Chart Application. Modifying the String Table. Modifying the Menu. Creating a New Dialog Box. The BarChartView.cpp File. Coding in the View File. Running the BarChart Application. The Line Chart Application. Modifying the String Table. Modifying the Menu. Creating a New Dialog Box. The LineChartView.cpp File. Coding in the View File. Running theLineChart Application.

16. An MFC Screen Saver.
Screen Saver Files. The Saucer.h and Saucer.cpp Files. The Saucerwnd.h and Saucerwnd.cpp Files. The Drawwnd.h and Drawwnd.cpp Files. The Build Operation. Testing The Screen Saver. What's Next?


Customer Reviews

Average Review:

Post to your social network


Most Helpful Customer Reviews

See all customer reviews