LOGPEN
logpen
typedef struct tagLOGPEN /* lgpn */
结构体定义
LOGPEN;
结构体成员
lopnStyle
用于指定钢笔类型。
可取值为:(翻译不强大,还是看原文吧)
PS_SOLID Creates a solid pen.
PS_DASH Creates a dashed pen. (Valid only when the pen width is 1.)
PS_DOT Creates a dotted pen. (Valid only when the pen width is 1.)
PS_DASHDOT Creates a pen with alternating dashes and dots. (Valid only when the pen width is 1.)
PS_DASHDOTDOT Creates a pen with alternating dashes and double dots. (Valid only when the pen width is 1.)
PS_NULL Creates a null pen.
PS_INSIDEFRAME Creates a pen that draws a line inside the frame of closed shapes produced by GDI output functions that specify a bounding rectangle (for example, the Ellipse, Rectangle, RoundRect, Pie, and Chord member functions). When this style is used with GDI output functions that do not specify a bounding rectangle (for example, the LineTo member function), the drawing area of the pen is not limited by a frame.
If a pen has the PS_INSIDEFRAME style and a color that does not match a color in the logical color table, the pen is drawn with a dithered color. The PS_SOLID pen style cannot be used to create a pen with a dithered color. The PS_INSIDEFRAME style is identical to PS_SOLID if the pen width is less than or equal to 1.
When the PS_INSIDEFRAME style is used with GDI objects produced by functions other than Ellipse, Rectangle, and RoundRect, the line may not be completely inside the specified frame.
lopnWidth
指定钢笔像素宽度。
如果值为0,则默认设置为1像素。
lopnColor
指定颜色。
注意:COLORREF自低位往高位,每字节表示R、G、B、unused相关信息。
Remarks
The y value in the POINT structure for the lopnWidth member is not used.
参考资料
最新修订时间:2024-05-12 22:13
目录
概述
结构体定义
结构体成员
参考资料