2.1.3 Device-Context Functions
Device-context functions create, delete, and restore device contexts. Following are the GDI device-context functions:
In addition, applications can use the following functions in the USER API to retrieve and release device contexts:
BeginPaint |
Prepares a window for painting, fills a buffer with information about the painting, and retrieves a handle of a device context. |
GetDC |
Retrieves the handle of a device context for the client area of the given window. |
GetWindowDC |
Retrieves a device context for an entire window, including title bar, menus, and scroll bars. |
ReleaseDC |
Releases a device context, freeing it for use by other applications. |
For more information about these USER functions, see Chapter 1, “Window Management.”