PacktLib: Microsoft Visual C++ Windows Applications by Example

Microsoft Visual C++ Windows Applications by Example

Credits

About the Author

About the Reviewer

Preface

Introduction to C++

The Compiler and the Linker

The First Program

Comments

Types and Variables

Expressions and Operators

Statements

Functions

The Preprocessor

The ASCII Table

Summary

Object-Oriented Programming in C++

The Object-Oriented Model

Classes

Inheritance

Dynamic Binding

Arrays of Objects

Pointers and Linked Lists

Operator Overloading

Exceptions

Templates

Namespaces

Streams and File Processing

Summary

Windows Development

Visual Studio

The Document/View Model

The Message System

The Coordinate System

The Device Context

The Registry

The Cursor

Serialization

Summary

Ring: A Demonstration Example

The Application Wizard

Colors and Arrays

Catching the Mouse

Drawing the Rings

Setting the Coordinate System and the Scroll Bars

Catching the Keyboard Input

Menus, Accelerators, and Toolbars

The Color Dialog

The Registry

Serialization

Summary

Utility Classes

The Point, Size, and Rectangle Classes

The Color Class

The Font Class

The Caret Class

The List Class

The Set Class

The Array Class

Error Handling

Summary

The Tetris Application

The Tetris Files

The Figure Class

The Figure Information

Summary

The Draw Application

Draw.cpp

The Resource

The Class Hierarchy

The Figure Class

The TwoDimensionalFigure Class

The LineFigure Class

The ArrowFigure Class

The RectangleFigure Class

The Ell ipseFigure Class

The TextFigure Class

The FigureFileManager Class

The Document Class

The View Class

Summary

The Calc Application

Calc.cpp

The Resource

Formula Interpretation

The Spreadsheet

The Document/View Model

Summary

The Word Application

Word.cpp

The Resource

The Page

The Document Class

The View Class

Summary

Index