术语 | createpenindirect |
释义 | CreatePenIndirect 语法: HPEN CreatePenIndirect( __in const LOGPEN *lplgpn ); CreatePenIndirect功能 该CreatePenIndirect函数创建一个合乎逻辑的化妆笔,其独特的造型,宽,而且在结构中指定的颜色。 参数 lplgpn [in] 指针LOGPEN结构,指定笔的样式,宽度和颜色。 返回值 如果函数成功,返回值是一个句柄,标识一个逻辑化妆品笔。 如果函数失败,返回值为NULL。 备注 之后,应用程序创建一个逻辑笔,可以选择该到设备上下文通过调用SelectObject函数笔。笔后选择到设备上下文,它可以用来绘制直线和曲线。 当您不再需要的笔,调用DeleteObject函数将其删除。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 笔概述 笔功能 CreatePen DeleteObject ExtCreatePen GetObject LOGPEN 的RGB SelectObject 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==CreatePenIndirect Function The CreatePenIndirect function creates a logical cosmetic pen that has the style, width, and color specified in a structure. Syntax HPEN CreatePenIndirect( __in const LOGPEN *lplgpn ); Parameters lplgpn [in] Pointer to a LOGPEN structure that specifies the pen's style, width, and color. Return Value If the function succeeds, the return value is a handle that identifies a logical cosmetic pen. If the function fails, the return value is NULL. Remarks After an application creates a logical pen, it can select that pen into a device context by calling the SelectObject function. After a pen is selected into a device context, it can be used to draw lines and curves. When you no longer need the pen, call the DeleteObject function to delete it. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWingdi.h (include Windows.h) LibraryGdi32.lib DLLGdi32.dll See Also Pens Overview Pen Functions CreatePen DeleteObject ExtCreatePen GetObject LOGPEN RGB SelectObject Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd183510(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。