//声明:
CreatePen(
Style, Width: Integer; {样式与笔宽}
Color: COLORREF {颜色}
): HPEN; {返回笔句柄}
//Style 参数可选值:
PS_SOLID = 0; {实线}
PS_DASH = 1; {段线; 要求笔宽<=1}
PS_DOT = 2; {点线; 要求笔宽<=1}
PS_DASHDOT = 3; {线、点; 要求笔宽<=1}
PS_DASHDOTDOT = 4; {线、点、点; 要求笔宽<=1}
PS_NULL = 5; {不可见}
PS_INSIDEFRAME = 6; {实线; 但笔宽是向里扩展}