Jalaj

February 24, 2007

Pen Object in Device Context

Filed under: Visual Basic, WinAPI — Jalaj @ 7:43 am

We saw a lot of functions that draw geometrical shapes. But the problem is that you can’t change the color or width or the style of the pen. The exception to my previous statement is the SetDCPenColor function that can change the pen color associated with the device context, and which we already discussed it in one of previous post WinAPI : GetPixel Function. However, the function is supported only on Windows 200 and later so you cannot use the function if your intent is to develop supporting previous versions too. Is there any way out?
(more…)

Blog at WordPress.com.