[Top] [Prev] [Next]

Introduction to Tutorial

The ObjectWindows 2.5 tutorial teaches the fundamentals of programming for Windows using the ObjectWindows application framework. The tutorial is comprised of an application that is developed in twelve progressively more complicated steps. Each step up in the application represents a step up in the tutorial's lessons. After completing the tutorial, you'll have a full-featured Windows application, with items like menus, dialog boxes, graphical control bar, status bar, MDI windows, and more.

This tutorial assumes that you're familiar with C++ and have some prior Windows programming experience. Before beginning, it might be helpful to read Chapter 1 of the ObjectWindows Programmer's Guide, which presents a brief, nontechnical overview of the ObjectWindows 2.5 class hierarchy. This should help you become familiar with the principles behind the structure of the ObjectWindows class library.

For more detailed technical information on any subject discussed in this book, refer to the ObjectWindows Programmer's Guide and the ObjectWindows Reference Guide.

Getting started

Before you begin the tutorial, you should make a copy of the ObjectWindows tutorial files separate from the files in your compiler installation. Use the copied files when working on the tutorial steps. While working on the tutorial, you should try to make the changes in each step on your own. You can then compare the changes you make to the tutorial program.

Tutorial application

The tutorial application that you'll build when following the steps in this book is a line drawing application called Drawing Pad. While this application isn't very fancy, it does demonstrate many important ObjectWindows programming techniques that you'll use all the time in the course of your ObjectWindows development. Each step introduces a small increment in the application's features. You start with the most basic ObjectWindows application and, by the time you're finished with the last step, you'll have created a full-featured Windows application with a tool bar with bitmapped buttons on it, multiple document support, a status bar that displays menu and button hints, and even full OLE 2.0 server support.

Tutorial steps

Here's a summary of each step in the tutorial:

Files in the tutorial

The tutorial is composed of a number of different source files:

Typefaces and icons used in this book

The following table shows the special typographic conventions used in this book.

Typeface Meaning
Boldface Boldface type indicates language keywords (such as char, switch, and begin) and command-line options (such as -rn).
Italics Italic type indicates program variables and constants that appear in text. This typeface is also used to emphasize certain words, such as new terms.
Monospace Monospace type represents text as it appears on-screen or in a program. It is also used for anything you must type literally (such as TD32 to start up the 32-bit Turbo Debugger).
Menu|Command This command sequence represents a choice from the menu bar followed by a menu choice. For example, the command "File|Open" represents the Open command on the File menu.
Note: This indicates material of which you should take special notice.



[Top] [Prev] [Next]