OWLNext 7.0
Borland's Object Windows Library for the modern age
|
You can construct a TPen either directly, by specifying the color, width, and style of the pen, or indirectly, by specifying a TPen & or pointer to a LOGPEN structure.
Directly constructing a pen creates a new object with the specified attributes. Here is the constructor for directly constructing a pen:
The style parameter can be one of the following values: PS_SOLID, PS_DASH, PS_DOT, PS_DASHDOT, PS_DASHDOTDOT, PS_NULL, or PS_INSIDEFRAME.
Indirectly creating a pen creates a new object, but copies the attributes of the object passed to it into the new pen object. Here are the constructors for indirectly creating a pen:
You can also create a new TPen object from an existing HPEN handle:
This constructor is used to obtain an ObjectWindows object as an alias to a regular Windows handle received in a message.
Two other constructors are available only for 32-bit applications. You can use these constructors to create cosmetic or geometric pens:
where: