In Microsoft Windows, all output to a window is performed by the graphics
device interface (GDI).
This chapter covers the following topics:
How the painting and drawing process works in the Windows environment
The purpose of the display context and the WM_PAINT message
Using GDI functions to draw within the client area of a window
Drawing lines and figures, writing text, and creating pens and brushes
This chapter also explains how to build a sample application, Output, that illustrates some of these concepts.