Chapter 15. PAINTING AND DRAWING

Windows interacts with the user through a graphical user interface (GUI). There are many aspects involved in implementing a GUI, but the most obvious to the user is that information is presented graphically, in charts, pictures, and drawings. The Win32 API provides more than 120 functions to assist applications in presenting graphics to the user. In addition, Windows provides a device- independent analogy that hides the details of the presentation device from the application.

You have already been exposed to the concept of a device context. The device context is the basis for all graphics in the Windows environment—it is used by Windows to describe the physical aspects of a graphics device. By using a device ...

Get Microsoft Windows 2000 API SuperBible 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.