Pens, Brushes, and Other Logical Tools

Drawing on a device requires that the application specify information such as the width of lines, the colors of lines, the color and pattern of the background, and so on. All of these things must be specified in a device-independent manner, and Windows converts the information into data that is specific to the device. One way of implementing this would be to require the application to specify the information every time it wanted to draw to a device. This would require Windows to perform the conversion during every graphics request. A more practical approach, and a more efficient one, is to allow the application to specify common information and to then apply that common information to all subsequent graphics. ...

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.