In the Microsoft Windows 3.1 operating system, 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 Windows
The purpose of the device 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.