Jalaj

February 28, 2007

Creating Solid and Hatch Brushes

Filed under: Visual Basic, WinAPI — Jalaj @ 4:15 am

The default brush associated with a device context is a hollow brush thus the Rectangle, Ellipse and similar function all tends to draw outlines only and doesn’t fill the shape. The current brush setting can be received in a LOGBRUSH structure (discussed in WinAPI: Using Brushes) using the GetCurrentObject and GetObject functions, already discussed in Modifying Existing Pen in DC
(more…)

Blog at WordPress.com.