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 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.