1 #undef WIN32_LEAN_AND_MEAN
4 #include <win32k/pen.h>
7 #include <win32k/debug1.h>
11 W32kCreatePen(INT PenStyle, INT Width, COLORREF Color)
15 logpen.lopnStyle = PenStyle;
16 logpen.lopnWidth.x = Width;
17 logpen.lopnWidth.y = 0;
18 logpen.lopnColor = Color;
20 return W32kCreatePenIndirect(&logpen);
25 W32kCreatePenIndirect(CONST PLOGPEN lgpn)
30 if (lgpn->lopnStyle > PS_INSIDEFRAME) return 0;
32 hpen = PENOBJ_AllocPen();
35 penPtr = PENOBJ_LockPen( hpen );
38 penPtr->logpen.lopnStyle = lgpn->lopnStyle;
39 penPtr->logpen.lopnWidth = lgpn->lopnWidth;
40 penPtr->logpen.lopnColor = lgpn->lopnColor;
41 PENOBJ_UnlockPen( hpen );
47 W32kExtCreatePen(DWORD PenStyle,