Example: Creating a Picture Viewer

In this exercise you’ll create the Picture Viewer program shown in Figure 9-4. This program displays pictures in any of the standard bitmapped formats: BMP, GIF, JPEG, and so forth. However, its main purpose is to illustrate how to create and configure icons, menus, and toolbars, and how to control them once the program is running. You’ll probably be surprised at the number of things that go on behind the scenes of a Windows user interface.

This program displays pictures you open from a file or paste from the clipboard.

Figure 9-4. This program displays pictures you open from a file or paste from the clipboard.

Creating the Picture Viewer Form

To begin creating the Picture Viewer program, launch ...

Get Faster Smarter Beginning Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.