Programming Windows™ 3.1 3rd Ed.

The Microsoft® Guide to Writing Applications for Windows 3.1

Charles Petzold

Publisher: Microsoft Press, 1992, 981 pages

ISBN: 1-55615-395-3

Keywords: Programming

Last modified: April 9, 2021, 2:19 p.m.

This new edition of PROGRAMMING WINDOWS — completely updated and revised to highlight version 3.1 capabilities — is once again packed with keen insights, tried-and-true programming techniques, scores of complete sample programs written in C (on disk too!) and straightforward explanations of the Microsoft® Windows operating system.

New in this edition:

  • All programs are compatible with either Microsoft or Borland® C/C++ compilers and in both C and C++ mode.
  • Programs now take advantage of version 3.1 running in protected mode.
  • TrueType® scalable outline font technology is examined.
  • The DDE Management Library is discussed.

PROGRAMMING WINDOWS 3.1. The most authorative, example-packed, and thorough resources for programmers writing applications for the Microsoft Windows operating systems.

  • Section I: Getting Started
    1. Hello, Windows
      • A Brief History of Windows
      • The User's Perspective
      • The Programmer's Perspective
      • Your First Windows Program
      • The Windows Programming Hurdles
    2. Painting with Text
      • Painting and Repainting
      • An Introduction to GDI
      • Scroll Bars
  • Section II: Reading Input
    1. The Keyboard
      • Keyboard Basics
      • Keystroke Messages
      • Enhancing SYSMETS: Adding a Keyboard Interface
      • Character Messages
      • Looking at Keyboard Messages
      • The Caret (Not the Cursor)
      • The Windows Character Sets
      • Internationalization Concerns
    2. The Mouse
      • Mouse Basics
      • Client-Are Mouse Messages
      • Non-client-Area Mouse Messages
      • Hit-Testing in Your Program
      • Capturing the Mouse
    3. The Timer
      • Timer Basics
      • Using the Timer: Three Methods
      • Using the Timer for a Status Report
      • Using the Timer for a Clock
      • Windows Standard Time
    4. Child Window Controls
      • The Button Class
      • Controls and Colors
      • The Static Class
      • The Scroll Bar Class
      • The Edit Class
      • The Listbox Class
  • Section III: Using Resources
    1. Memory Management
      • Microprocessor and Memory
      • Memory Organization in Windows
      • Code and Data Segments
      • Allocating Memory Within a Program
    2. Icons, Cursors, Bitmaps, and Strings
      • Compiling Resources
      • Icons and Cursors
      • Resources and Memory
      • Character Strings
      • User-Defined Resources
    3. Menus and Accelerators
      • Menus
      • Using Bitmaps in Menus
      • Keyboard Accelerators
    4. Dialog Boxes
      • Modal Dialog Boxes
      • Message Boxes
      • Modeless Dialog Boxes
      • Working with Files: POPPAD Revisited
      • The One Function Call Windows Program
  • Section IV: The Graphic Device Interface
    1. An Introduction to GDI
      • The GDI Philosophy
      • The Mapping Mode
    2. Drawing Graphics
      • Drawing Points
      • Drawing Lines
      • Drawing Filled Areas
      • Rectangles, Regions, and Clipping
      • Some Miscellaneous GDI Functions
      • Programs That Draw Forever
    3. Bits, Bits, and Metafiles
      • Color and Bitmaps
      • The Device-Independent Bitmap (DIB)
      • The GDI Bitmap Object
      • The Memory Device Context
      • The Mighty BLT
      • Metafiles
    4. Text and Fonts
      • Simple Text Output
      • Background on Fonts
      • Creating, Selecting, and Deleting Logical Fonts
      • Enumerating the Fonts
      • Formatting Text
      • POPPAD with Fonts
    5. Using the Printer
      • Printing, Spooling, and Escapes
      • The Printer Device Context
      • Printing Fundamentals
      • Printing Graphics and Text
      • The Technique of Banding
      • The Printer and Fonts
  • Section V: Data Exchange and Links
    1. The Clipboard
      • Simple use of the Clipboard
      • Beyond Simple Clipboard Use
      • Becoming a Clipboard Viewer
    2. Dynamic Data Exchange (DDE)
      • Basic Concepts
      • A DDE Server Program
      • A DDE Client Program
      • The DDE Management Library
    3. The Multiple Document Interface (MDI)
      • The Elements of MDI
      • Windows 3 and MDI
      • The Sample Program
      • Creating the Children
      • More Frame Window Message Processing
      • The Child Docuemnt Windows
      • Cleaning Up
      • The Power of Windows Procedure
    4. Dynamic Link Libraries
      • Library Basics
      • STRPROG and STRLIB
      • The DS!= SS Issue
      • Other Library Restrictions
      • Different Methods for Specifying Links
      • Using Import Libraries
      • Dynamic Linking Without Imports
      • Resource-Only Libraries

Reviews

Programming Windows™ 3.1

Reviewed by Roland Buresund

Excrement * (1 out of 10)

Last modified: May 21, 2007, 3:20 a.m.

A totally worthless book. Today, it is also outdated, but it never was useful!

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required

captcha

required