Chapter 3. Numerical Interface Designs

  • 3.1 Microsoft Foundation Classes

  • 3.2 Graphics Device Interface

  • 3.3 Writing a Basic Windows Program

  • 3.4 Displaying Text and Graphics

  • 3.5 Events and Methods

  • 3.6 Standard Control Resources

  • 3.7 Menu and File I/O

  • 3.8 Keyboard Control

  • 3.9 MFC Compatibility with .Net

  • 3.10 Summary

MICROSOFT FOUNDATION CLASSES

Microsoft Corporation released its C++ compiler, bundled with a set of library functions called the Microsoft Foundation Classes (MFCs) in the late 1980s. The library functions are targeted to support program development using C++ on the Windows environment. Microsoft Foundation Classes consist of a set of more than 200 classes for exploring the resources on Windows. Class is a grouping whose members consist of functions and variables. Each class has several functions for things like displaying text and graphics, creating dialog windows, and managing the events in Windows. Prior to MFC, programming on Windows was a difficult task as calls to the application program interface (API) for the Windows resources involved many low-level routines using C. MFC simplified this process as it was designed to gain control over the routines using a high-level language approach.

A window is a rectangular region on the desktop that allows the user to view the data and to navigate using the mouse. A window on the Microsoft operating system is referred to as Windows (with the first letter in capital). There are three types of windows, namely, overlapped, pop-up, and child. ...

Get Computing for Numerical Methods Using Visual C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.