CreatePenIndirect

Syntax

HPEN CreatePenIndirect(lpLogPen)

This function creates a logical pen that has the style, width, and color given in the data structure pointed to by the lpLogPen parameter.

Parameter Type/Description  
lpLogPen LOGPEN FAR * Points to the LOGPEN data structure that contains information about the logical pen.  

Return Value

The return value identifies a logical pen object if the function is successful. Otherwise, it is NULL.

Comments

Pens with a physical width greater than one pixel will always have either null or solid style or will be dithered if the pen style is PS_INSIDEFRAME.