LOGPEN

typedef struct tagLOGPEN { /* lgpn */

UINT lopnStyle;

POINT lopnWidth;

COLORREF lopnColor;

結構體定義,結構體成員,lopnStyle,lopnWidth,lopnColor,Remarks,

結構體定義

} 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.

相關詞條

熱門詞條

聯絡我們