A SERVICE OF

logo

GetHDC returns an HDC using Handle.
GetAttributeHDC, like GetHDC, returns an HDC using Handle; if you’re
creating an object with more than one device context, you should
override this function and not GetHDC to provide the proper return.
OWLFastWindowFrame draws a frame that is often used for window
borders. This function uses the undocumented Windows API function
FastWindowFrame if available, or PatBlt if not.
TP n classe
The TP n class encapsulates a logical pen. It contains a color for the pen’e s
“ink” (encapsulated in a TColor object), a pen width, and the pen style.
Y u can construct a TP n either directly specifying the color width, ando e , ,
Constructing
style of the pen, or indirectly by specifying a TP n & or pointer to a, e
TP ne
LOGPEN structure. Directly constructing a pen creates a new object with
the specified attributes. Here is the constructor for directly constructing a
pen:
TPen(TColor color, int width=1, int style=PS_SOLID);
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. These values are discussed in the ObjectWindows
Reference Guide.
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:
TPen(const LOGPEN far* logPen);
TPen(const TPen&);
Y u can also create a new TP n object from an existing HPEN handle:o e
TPen(HPEN handle, TAutoDelete autoDelete = NoAutoDelete);
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. Y u cano
use these constructors to create cosmetic or geometric pens:
32
TPen(DWORD penStyle,
DWORD width,
const TBrush& brush,
298
OWL P ogrammer’ Guider s