win32gui.ExtCreatePen

PyHANDLE = ExtCreatePen(PenStyle, Width , lb , Style )

Creates a GDI pen object

Parameters

PenStyle : int

Combination of win32con.PS_*. Must contain either PS_GEOMETRIC or PS_COSMETIC.

Width : int

Width of pen in logical units. Must be 1 for PS_COSMETIC.

lb : PyLOGBRUSH

Dict containing brush creation parameters

Style=None : (int, ...)

Sequence containing lengths of dashes and spaces Used only with PS_USERSTYLE, otherwise must be None.